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.
Question Queued notifications fail from CLI
Thanks, PR #10326 works for me. I applied it on top of #10320 to 7.1.0 (aurelia and system layouts), queued a notification and ran the task with scheduler:run. The header image now points to the real site (https://<my-site>/media/kunena/email/hero-wide.png) and loads correctly, and the message links are still correct. There is no more joomla.invalid anywhere in the HTML or plain-text parts.
One small remark: when messageUrl is set, $headerBase only keeps scheme, host and port, so a Joomla site installed in a subfolder (e.g. example.com/joomla/ ) would get example.com/media/kunena/ ... and lose the /joomla path, which Uri::base() used to include. Maybe use Uri::root() when not running from CLI, and in CLI use live_site if it is set, otherwise scheme and host from messageUrl? Escaping the src value with htmlspecialchars() would also be nice.
Thanks again for the quick fixes!
Jose
Please Log in or Create an account to join the conversation.
Tell-me if it work for you ?
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
I've installed Kunena 7.1.1 on my test copy of the site (Joomla 6.2, PHP 8.5) and tested it with the original setup. The Kunena template is still set to crypsis, and notifications are sent by the "Send the mail notifications queued" scheduled task from cli/joomla.php scheduler:run.
Both issues are fixed:
- Issue 1: the task no longer fails with the getTemplate() error. The queued notification is processed, the row is marked as sent, and the subscribers receive the emails.
- Issue 2: all links in the emails, both HTML and plain text, now point to the correct topic URL. The header image (hero-wide.png) is loaded from the real site host. There's no trace of joomla.invalid anymore.
One small detail, in case it's useful: the header image URL keeps only the scheme and host from messageUrl. If Joomla were installed in a subfolder (e.g. example.com/site/ ), the image would point to example.com/media/ ... and break. This doesn't affect my site, so it's just for your information.
Thanks a lot for the quick fixes and the new release!
Jose
Please Log in or Create an account to join the conversation.
Hello,
One small detail, in case it's useful: the header image URL keeps only the scheme and host from messageUrl. If Joomla were installed in a subfolder (e.g. example.com/site/ ), the image would point to example.com/media/ ... and break. This doesn't affect my site, so it's just for your information.
Thanks a lot for the quick fixes and the new release!
Jose
Thanks for following this topic
The K7.1.1 release doesn't include the changes in this PR : github.com/Kunena/Kunena-Forum/pull/10327 because i was wating your feedback on this
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
Thanks for clarifying, I hadn't realised PR #10327 wasn't part of 7.1.1. I've tested it now on top of 7.1.1 on my test copy (Joomla 6.2, PHP 8.5), sending the queued notifications from cli/joomla.php scheduler:run:
- Without $live_site (my site's setting): the header image uses the real host (https://<my-site>/media/kunena/email/hero-wide.png), the same as in 7.1.1. The links are correct.
- With $live_site set: the header image uses $live_site.
- With $live_site pointing to a subfolder (e.g. https://<my-site>/sub/): the header image is https://<my-site>/sub/media/kunena/email/hero-wide.png, so the subfolder case works.
The src is now escaped as well. So the PR works for me, thanks!
Just one note: when the mails are sent from the CLI on a site in a subfolder without $live_site, the subfolder is still lost, because it falls back to the scheme and host of messageUrl. I don't think there's a reliable way to know the subfolder from the CLI, so maybe a short mention in the docs ("set $live_site if your site is in a subfolder and you send the notifications from the CLI") would be enough.
Jose
Please Log in or Create an account to join the conversation.