Dear Sir,
I am the author or Joomla Multi Sites (
www.jms2win.com
) and I have identified a bug in Kunena that does not allow to install it when you have several websites that share the same DB with other websites using other table prefix.
This is not related to Joomla Multi Sites but just be highlighted as this is a functionality proposed by JMS.
Here it is the problem.
Suppose that you have several websites that use the same DB connection with different table prefix to separated the content of each websites.
In this case, it is NOT possible to install Kunena because during the install there are check if "%fb_version" exists.
As you can see, you have used the wildcard "%" and not the table prefix marker "#__".
When you have some websites that exists with Fireboard or Kunena with other table prefix it is simply impossible to install the new instance of Kunena in the same DB.
This is a problem as you recommend to upgrade Fireboard or Kunena with latest version 1.5.5 for security reason.
Here it is the files concerned and that we have patched to fix the problem.
We hope that you will include those fix in a next release of Kunena
This has been tested with Kunena 1.5.5
/lib/fx.upgrade.class.php
Line 162
replace
$kunena_db->setQuery( "SHOW TABLES LIKE '%".$versionTableNoPrefix."'" );
by
$kunena_db->setQuery( "SHOW TABLES LIKE '#__".$versionTableNoPrefix."'" );
/install/kunena.install.php
line 94
replace
$kunena_db->setQuery( "SHOW TABLES LIKE '%fb_messages'" );
by
$kunena_db->setQuery( "SHOW TABLES LIKE '#__fb_messages'" );
and line 99
replace
$kunena_db->setQuery( "SHOW TABLES LIKE '%fb_version'" );
by
$kunena_db->setQuery( "SHOW TABLES LIKE '#__fb_version'" );
Perhaps there are other place where you have this problem but when fixing those lines we were able to install Kunena on a website that does not have previously Fireboard of Kunena present but that share the same DB that contain fireboard installed with another table prefix.
I hope this post will contribute to this wonderfull Kunena component that we appreciate