Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 811 forks source link

Announcement not displayed #8996

Closed Ruud68 closed 2 years ago

Ruud68 commented 2 years ago

Describe the bug Announcements not displayed

To Reproduce create an anouncement, publish it and make sure all display options are correct also check if show announcements in config is set to yes

Expected behavior announcement displayed on forum pages

Actual result announcement not displayed on any forum page

System information (please complete the following information)

Joomla version: 4.1.3 Kunena version: K6.0.0 RC3

rich20 commented 2 years ago

I cannot reproduce this problem, the announcement is displayed. But I get an error when I delete an announcement. Maybe this is related?

404 View not found [name, type, prefix]: announcement, html, site

Call stack

| Function | Location

1 | () | JROOT/libraries/src/MVC/Controller/BaseController.php:903 2 | Joomla\CMS\MVC\Controller\BaseController->getView() | JROOT/libraries/kunena/src/Controller/KunenaController.php:413 3 | Kunena\Forum\Libraries\Controller\KunenaController->display() | JROOT/libraries/kunena/src/Controller/KunenaController.php:348 4 | Kunena\Forum\Libraries\Controller\KunenaController->executeTask() | JROOT/libraries/kunena/src/Controller/KunenaController.php:239 5 | Kunena\Forum\Libraries\Controller\KunenaController->execute() | JROOT/components/com_kunena/src/Dispatcher/Dispatcher.php:113 6 | Kunena\Forum\Site\Dispatcher\Dispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:389 7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:204 8 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:243 9 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:278 10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:63 11 | require_once()

Ruud68 commented 2 years ago

I cannot reproduce this problem, the announcement is displayed. But I get an error when I delete an announcement. Maybe this is related?

Where is it displayed? Also e.g. for visitors on the recent topics page or category index page? That is the issue for me. When going to /announcement/listings I see the announcements and I can open them there, but that is not where i am missing them.

in the below gif you see the announcement as item, but not on the recent topics page (or any other page) announcements

rich20 commented 2 years ago

What view is that? I don't see buttons or the title in your .gif
Bildschirmfoto vom 2022-05-18 18-07-58

Ruud68 commented 2 years ago

There are no buttons because I am not logged in, so it just shows the message. The buttons are shown when logged in.

I am not logged in to show that the message is available for the visitor: it is only not showing on e.g. recent topics view

rich20 commented 2 years ago

I found this error message in this context. If you unpublish the announcement and you call as guest this address .../forum/announcement/id-xx you get the error message below instead of 403 Forbidden:

Error in layout Widget/Error: Property "message" is not defined in ..:/components/com_kunena/template/aurelia/layouts/widget/error/default.php on line 20 Layout was rendered in .../components/com_kunena/template/aurelia/layouts/page/default.php on line 48

Ruud68 commented 2 years ago

okay, now I feel stupid :S, for some reason everytime I build my changes it resets the showannouncement back to no.... Closing this one, sorry for the false alarm :)