Search Results (Searched for: message)

Yesterday 20:12
Tested on Kunena 7.1.1 / Joomla 6.2.0 / PHP 8.5, site language en-GB, RSS enabled.

Before: the topics feed (/forum/topics/feed/mode-topics?format=feed&type=rss) and the recent feed had the title COM_KUNENA_VIEW_TOPICS_DEFAULT_MODE_DEFAULT - <board> Forum.
After applying the patch to components/com_kunena/src/Dispatcher/Dispatcher.php: the title is "Recent Discussions - <board> Forum" in both RSS feeds, and there are no untranslated COM_KUNENA_ keys in the RSS or Atom output. Normal HTML pages, and the 401 for guests on a registered-only category, are unchanged.

Works for me, thanks. (Not tested: the disabled-RSS message, as RSS is enabled on our site.)
21 Nov 2026 09:17
Environment: Kunena 7.1.1, Joomla 6.2.0, PHP 8.5.13 (Apache mod_php), MariaDB 12.3.4, Debian 12. Site language en-GB.

---

**1. Guests opening a category they can't read get "500 Internal Server Error" instead of 401/403**

Steps: create a category with access level Registered, log out, and open the category URL (e.g. `/forum/members-only`).

Expected: HTTP 401 with Kunena's "no access" message and the login form.
Actual: HTTP 500, with the page heading "500 Internal Server Error :" and an empty message. We saw this on Joomla 5 as well as Joomla 6.

Cause: `libraries/kunena/src/Forum/Category/KunenaCategory.php`, `tryAuthorise()`, line 841:

```php
if ($throw && $exception) {
throw new $exception();
}
```

`authoriseRead()` already returns an exception object, for example `new KunenaExceptionAuthorise(Text::_('COM_KUNENA_NO_ACCESS'), 401)`. `new $exception()` creates a new, empty instance of the same class, with no message and code 0. `KunenaExceptionAuthorise::getResponseCode()` then falls back to 500.

Fix: throw the object that `authoriseRead()` returned, as `KunenaTopic`, `KunenaMessage`, `KunenaUser`, `KunenaAttachment` and `KunenaAnnouncement` already do:

```php
if ($throw && $exception) {
throw $exception;
}
```

With this one-line change, guests get 401 "Unauthorized" plus the login form, and the rest of the forum is unaffected.

---

**2. When RSS is disabled, feed URLs return HTTP 500**

With "Enable RSS Feeds" set to No, any feed URL (e.g. `/forum/recent/feed?format=feed&type=rss` or `/forum/<category>/feed?format=feed&type=rss`) returns:

```xml
<error>
<code>500</code>
<message>COM_KUNENA_RSS_DISABLED</message>
</error>
```

The error is thrown with code 500 in:

- `components/com_kunena/src/Controller/Application/Category/Feed/CategoryDisplay.php` (line 68)
- `components/com_kunena/src/Controller/Application/Topics/Feed/TopicsDisplay.php` (line 75)
- `components/com_kunena/src/View/Category/HtmlViewFeed.php` (line 46)

A feed that the administrator has switched off isn't a server error. Search engines and feed readers keep requesting old feed links, so these 500s fill the server error statistics. A 404 (or 403) would be more appropriate. On our site, under Joomla 5, the same URLs were logged as 404s; after the upgrade to Joomla 6 they became 500s.

---

**3. Language strings are not translated in feed output**

In `format=feed` requests, strings from `components/com_kunena/language/en-GB/com_kunena.views.ini` are shown as raw keys:

- The disabled-feed error above shows `COM_KUNENA_RSS_DISABLED` rather than "Sorry, RSS feeds have been disabled by administrator."
- With RSS enabled, the topics feed title is `COM_KUNENA_VIEW_TOPICS_DEFAULT_MODE_DEFAULT - <site name> Forum` rather than "Recent Discussions - ...".

Both keys exist in `com_kunena.views.ini`, so it looks as if that language file is not loaded for the feed format.

---

Thanks for Kunena. Happy to test a fix or give more detail.
19 Nov 2026 22:07 - 19 Nov 2026 22:11
In System/Verwalten/Geplante Aufgaben fehlen deutsche Übersetzungen. Das ist der Fall bei: 
Kunena -  Remove Expired Bans     Kunena Remove Expired Bans
Kunena -  Remove Expired Bans      Kunena: Abgelaufene Sperren aufheben

Kunena - Trash Purge     Kunena Purge Trashbin 
Kunena - Trash Purge     Kunena-Papierkorb leeren 

Die deutschen Sprachdateien dazu findet man in:
/plugins/task/kunena/language/de-DE/plg-task_kunena.ini

Dabei ist mir auch aufgefallen, daß im Vergleich der englischen Sprachdatei zur deutschen Sprachdatei einige englische Texte fehlen:
Bei ;  Scheduler Tile fehlen zwei englische PLG TASK  (?Schreibfehler? Scheduler Title)
Bei ;  Configuration fehlen vier englische PLG TASK
Bei ;  Messages fehlen zwei englische PLG TASK
Bei ;  Mailsqueues fehlen drei englische PLG TASK

Diese englischen PLG TASK fehlen auch in der französischen Sprachdatei und in der Niederländischen Sprachdatei.
 
17 Nov 2026 20:02
Thanks.Em

The new log did eventually show up, but only with the minimal information showed elsewhere: "Planned execution of Scheduled Task#7, Kunena - Send the mail notifications queued, has failed with exit code 5"

However the good news is that Pinkeltje was right: the email address wasn't specified properly. I had the correct email address but in the wrong field - Sender Email Address and Sender Name were the wrong way round! Must have been like that for years, possibly since the difficult transition from J2.5 to J3.0.

Thanks for your help.
17 Nov 2026 07:13
I could reproduce this: an invalid forum e-mail address in Kunena config → E-mail gives exactly this, exit code 5 on every run and nothing in the log. Please check that address, it must be a complete and valid address (and preferably one on your own domain).
And you should see your log file in administrator/logs. But every task is also logged in joomla_scheduler.php. 
17 Nov 2026 00:04
Thanks for the advice and sorry for the delay - I've been too busy to pursue this until now.

I've followed the instructions (I wasn't previously aware of the Scheduled Tasks menu) and was expecting a file to appear in administrator/logs but this hasn't happened, so I still don't know why the email notification is not being sent. Should there be a file in this folder with the title that I specified?

However, it may be relevant that on this website email notifications ceased to be sent several years ago and all my attempts to get them working have failed. The only notifications that are sent are to the administrator, subscribed users don't receive anything.

But during all those years I have never been sent a failure message by the back end. Perhaps this is something new in K7.1.1?
14 Nov 2026 21:55
If you click on ‘Scheduled tasks’ under ‘Manage’ in the backend, you will see the title ‘Kunena – Send the queued email notifications’.
 If you click on this title, you can configure the scheduled task.
 
14 Nov 2026 16:21
Thanks, but I don't understand the instructions.

Please enable logging in the task “Kunena - Send the mail notifications queued” (Advanced tab, set a log filename), run the task once manually and post what the log says.

Which advanced tab?  I can't find a tab anywhere called Advanced

Can you explain step by step?

Thanks
14 Nov 2026 14:13
Please enable logging in the task “Kunena - Send the mail notifications queued” (Advanced tab, set a log filename), run the task once manually and post what the log says.
14 Nov 2026 12:52
I upgraded to K7.1.1 and am being bombarded by the following email, every six or seven minutes:"Planned execution of Scheduled Task#7, Kunena - Send the mail notifications queued, has failed with exit code 5 at Friday, 13 November 2026 23:19. Please visit the Joomla! backend for more information."
What's causing this and how do I stop it? 
11 Nov 2026 10:01
Hi xillibit,

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
11 Nov 2026 09:11


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
 
Hello,

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
11 Nov 2026 06:58
Hi xillibit,

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
10 Nov 2026 12:45
Hello,

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
08 Nov 2026 19:00
Hi xillibit,

Thanks, PR #10320 works for the links. I applied it to 7.1.0 (aurelia and system layouts), queued a notification and ran the task from `cli/joomla.php scheduler:run`. Every link in the email (HTML and plain-text parts) now uses the correct permalink from the queue.

One thing is still left: the header image. In `subscription/default.php` (line 162 in 7.1.0) the src is built with `Uri::base() . $config->emailHeader`. From CLI that gives:
joomla.invalid/set/by/console/applicatio.../email/hero-wide.png
(there is also a double slash). One way to fix it would be to take the scheme and host from `$this->messageUrl` when it is set, the same way the links now work, and fall back to `Uri::root()` otherwise. `TopicItemDisplay.php` (line 530) uses the same `Uri::base() . '/media/kunena/email/hero-wide.png'` pattern, but that one only runs on the site.

Thanks again for the quick fixes!

Jose
Displaying 1 - 15 out of 297 results.
Time to create page: 0.153 seconds