Kunena Forum Plugin for Xmap
6 posts
• Page 1 of 1
Kunena Forum Plugin for Xmap
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:
Why might that be?
Please help.
Greetings
TeCoTech
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

- Posts: 2
- Joined: Fri Nov 19, 2010 6:35 pm
Re: Kunena Forum Plugin for Xmap
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:
Alternatively you can simply hardcode the getTablePrefix() function starting on line 150.
If you are running Kunena 1.6:
and if Kunena 1.5:
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

- Posts: 23
- Joined: Sun Apr 13, 2008 11:26 pm
Re: Kunena Forum Plugin for Xmap
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 }
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
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

- Posts: 5
- Joined: Fri Dec 31, 2010 2:21 am
- Location: mybestforexforum.com
Re: Kunena Forum Plugin for Xmap
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!
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

- Posts: 5
- Joined: Fri Dec 31, 2010 2:21 am
- Location: mybestforexforum.com
Re: Kunena Forum Plugin for Xmap
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

- Posts: 1
- Joined: Wed Jan 26, 2011 8:19 am
Re: Kunena Forum Plugin for Xmap
That worked perfect for me bazza14. TYVM
- JulesM
- Fresh Boarder

- Posts: 5
- Joined: Mon Dec 27, 2010 8:12 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 2 guests