Viernes, 01 Agosto 2014 05:56
beggarly

Kunena Forum Plugin for Xmap

Suggest/Comment/Post new extensions for Xmap!

Kunena Forum Plugin for Xmap

Postby TeCoTech » Fri Nov 19, 2010 6:46 pm

Hi,
use long Xmap. Now I've installed the Kunena forum and wanted to activate the appropriate plugin. Unfortunately, I get the front end but the following error message:

Fatal error: Class 'JFile' not found in /xxx/xxx/xxx/xxx/xxxxx/administrator/components/com_xmap/extensions/com_kunena.php on line 157


Why might that be?
Please help.

Greetings
TeCoTech
TeCoTech
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Fri Nov 19, 2010 6:35 pm

Re: Kunena Forum Plugin for Xmap

Postby csommer » Tue Nov 23, 2010 10:16 am

I had the same problem after upgrading to Xmap 1.2.10.

The Kunena plugin has been updated to handle both Kunena 1.5 and 1.6 since the database tables, which this plugin has to access, have been renamed in Kunena 1.6. It has to run a check to see which version is installed and it cannot access the version file.

I am no expert, and guilleva will have to confirm this, but including this line above line 157 in /administrator/components/com_xmap/extensions/com_kunena.php seems to have solved the problem for me:

Code: Select all
jimport('joomla.filesystem.file')


Alternatively you can simply hardcode the getTablePrefix() function starting on line 150.
If you are running Kunena 1.6:
Code: Select all
        function getTablePrefix()
        {
                return '#__kunena'
        }


and if Kunena 1.5:
Code: Select all
        function getTablePrefix()
        {
                return '#__fb'
        }
csommer
Junior Boarder
Junior Boarder
 
Posts: 23
Joined: Sun Apr 13, 2008 11:26 pm

Re: Kunena Forum Plugin for Xmap

Postby AVY » Fri Dec 31, 2010 2:41 am

I'm also not the most important Guru. In general, I could not figure out how he had the previous post and made it even easier way:

150 function getTablePrefix()
151 {
152 static $prefix = '#__kunena';
153 }
154 }

Code: Select all
function getTablePrefix()
{
static $prefix = '#__kunena';
}
}


The result is as follows: http://mybestforexforum.com/index.php?option=com_xmap&sitemap=1&view=xml

J1.5.xx , K 1.6.x , Xmap 1.2.x
AVY
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Dec 31, 2010 2:21 am
Location: mybestforexforum.com

Re: Kunena Forum Plugin for Xmap

Postby AVY » Fri Dec 31, 2010 2:56 am

But there are still bugs to which I can not understand. Help please. When loading html site map "yoursite/index.php?option=com_xmap&sitemap=1" is as follows:

Warning: Invalid argument supplied for foreach() in xxxxxxxxxxxxxxx/administrator/components/com_xmap/extensions/com_kunena.php on line 105

Warning: Invalid argument supplied for foreach() in xxxxxxxxxxxxxxx/administrator/components/com_xmap/extensions/com_kunena.php on line 133

What to do? What should I do? Please help! Why in such a nice component of so many bugs? I do not believe it! ;)
AVY
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Dec 31, 2010 2:21 am
Location: mybestforexforum.com

Re: Kunena Forum Plugin for Xmap

Postby bazza14 » Wed Jan 26, 2011 8:25 am

AVY this code as described above fixes the error on line 157 and does not cause the errors on on lines 105 and 103. Remove your hard coded database name and use this

Code: Select all
jimport('joomla.filesystem.file');
bazza14
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Wed Jan 26, 2011 8:19 am

Re: Kunena Forum Plugin for Xmap

Postby JulesM » Thu Feb 24, 2011 5:23 am

That worked perfect for me bazza14. TYVM
JulesM
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Mon Dec 27, 2010 8:12 pm


Return to Plugins



Who is online

Users browsing this forum: No registered users and 3 guests

cron