Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Bug when installing Kunena when DB has fireboard/kunena already present with other table prefix

More
17 years 2 months ago #27726 by www.jms2win.com
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

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #27883 by Matias

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds