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.

Solved Kunena Latest 6.2.1 - KPATH_SITE error after upgrading to Kunena 7.1.1

More
1 week 1 day ago #235675 by guidocx84
Hello,After upgrading Kunena from version 6.4.18 to 7.1.1, I started experiencing a fatal error on my Joomla website's homepage, where I use the Kunena Latest module (
Code:
mod_kunenalatest
) to display the most recent forum topics.The error displayed was:
Code:
Undefined constant "Kunena\Forum\Libraries\Factory\KPATH_SITE"
The stack trace pointed to the following execution flow:
Code:
KunenaFactory::loadLanguage() KunenaLatest::_display() KunenaModule->display()
To investigate the issue, I disabled the existing module and installed a fresh copy of Kunena Latest 6.2.1, which was the latest version available on the official Kunena download page at the time.However, the same error occurred, even with a completely new module installation.I also noticed another issue: Joomla's backend Extension Update section now reports that an update for Kunena Latest is available, from version 6.2.1 to 6.2.2. However, when I click on Update, Joomla displays the following error:
Code:
Invalid extension update
Therefore, I have not been able to install version 6.2.2 through Joomla's update mechanism.After investigating the original KPATH_SITE issue, I found PR #328 , which addresses the missing Kunena component initialization.I applied the proposed fix to
Code:
ModuleKunenaLatest.php
, adding:
Code:
use Joomla\CMS\Factory;
and, at the beginning of the
Code:
_display()
method, before loading the language files:
Code:
$this->application = Factory::getApplication(); if (!$this->application->bootComponent('com_kunena')) { return; }
After uploading the modified file, the module started working correctly and the homepage loaded without any errors.Environment:
  • Joomla: 5.4.10
  • Kunena: 7.1.1
  • Kunena Latest: 6.2.1
Could you please clarify:
  1. Is the KPATH_SITE fix from PR #328 included in Kunena Latest 6.2.2?
  2. Is the 6.2.2 update package correctly configured for Joomla's update mechanism? I currently receive an "Invalid extension update" error when trying to install it.
  3. Can this fix be officially included in the next release, if it has not already been integrated?
Thank you for your work and support!

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

More
1 week 1 day ago #235677 by guidocx84
Regarding the update, I suppose the issue is that in:

update.kunena.org/addons/mod_kunenalatest.xml
update.kunena.org/addons/plg_content_kunenadiscuss.xml
update.kunena.org/addons/mod_kunenalogin.xml
update.kunena.org/addons/mod_kunenasearch.xml
update.kunena.org/addons/mod_kunenastats.xml

the joomla version 5.4.x doesn't match with the targetplatform because this is the actual targetplatform:

<targetplatform name="joomla" version="5.3|6.(0|1)"/>

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

More
1 week 1 day ago - 6 days 23 hours ago #235678 by Pinkeltje
I can't reproduce the KPATH_SITE error with Kunena 7.1.1 and Kunena Latest 6.2.1.

code you're suggesting to add is already in Kunena Latest 6.2.1. PR #328 was merged in February and 6.2.1 was released in April, and its ModuleKunenaLatest.php already contains the bootComponent('com_kunena') check. So if you still got the error, the module file on your site was most likely an older one and not the 6.2.1 code.

Old files left behind or OPcache would be my first guess.You're right about the update though. The targetplatform in the update XML doesn't match Joomla 5.4 or 6.2, so the update to 6.2.2 is shown but can't be installed. I've passed that on to the developer. Until it's fixed, you can install 6.2.2 manually from GitHub.

Did you use an AI tool to analyse this? If so, be careful with that. These tools sound very convincing, but here it had you "fix" something that was already fixed. Please always check against the real source on GitHub before patching module or core files, because otherwise you end up with modified files that break or get overwritten on the next update.
Last edit: 6 days 23 hours ago by Pinkeltje.
The following user(s) said Thank You: guidocx84

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

More
1 week 12 hours ago - 6 days 23 hours ago #235680 by guidocx84
You're absolutely right, and I apologize for the misleading report.

I should have checked the actual 6.2.1 source code on GitHub before suggesting a fix. The fact that the change appeared to solve the issue was not enough to conclude that it was the root cause.

I have tried to empty the OpCache but the problem remained. I have fixed it only updating the module with 6.2.2 version (throught Joomla Update process because now it's possibile to download the updates).

Thank you for pointing this out and for taking the time to clarify both issues. I appreciate your feedback and will be more careful when reporting issues in the future.
Last edit: 6 days 23 hours ago by Pinkeltje.

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

Time to create page: 0.113 seconds