#1282 Posted in ‘CommentBox’

Latest post by Lefteris Kavadas on Wednesday, 11 December 2024 15:03 EET

Denise
Hi, I'm checking out your CommentBox extension for the first time and am seeing a site-breaking problem.
Steps to reproduce:

Create a fresh install of Joomla 5.2.2 on a temporary domain, using PHP 8.2.24
Create two test articles
Mark the articles as Featured so they appear on the default home page
Verify articles are shown on home page
Install CommentBox 1.0.0 via System > Install > Extensions > Upload Package File
Refresh the home page

Expected result: Home page same as before, with CommentBox enabled on the two article pages.
Actual result: The home page, as well as both article pages, now return 404 errors. Disabling the 7 components of CommentBox restores site functionality.
 
Any idea what's wrong here? Is this affecting other users, or does it seem limited to me and/or my hosting provider? (hostinger.com) Does CommentBox perhaps use some unusual function of MySQL that isn't available in MariaDB 10.11.10? (My hosting provider controls the DB software, I can't change it to test that hypothesis.)
Thank you!

Lefteris Kavadas

Hi Denise,

No, we are not using any MySQL specific function in CommentBox. Since this is a test site, can you please set the "

Regards

Denise
Hi Lefteris, thank you for looking into this! Here is the additional information provided by the debug mode:
Call Stack



#
Function
Location




1
()
JROOT/libraries/src/Router/Router.php:155


2
Joomla\CMS\Router\Router->parse()
JROOT/administrator/components/com_commentbox/src/Helper/UrlHelper.php:25


3
Firecoders\Component\CommentBox\Administrator\Helper\UrlHelper::parse()
JROOT/plugins/content/commentbox/src/Extension/CommentBox.php:163


4
Firecoders\Plugin\Content\CommentBox\Extension\CommentBox->onContentBeforeDisplay()
JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454


5
Joomla\Event\Dispatcher->dispatch()
JROOT/libraries/src/Application/EventAware.php:111


6
Joomla\CMS\Application\WebApplication->triggerEvent()
JROOT/components/com_content/src/View/Featured/HtmlView.php:167


7
Joomla\Component\Content\Site\View\Featured\HtmlView->display()
JROOT/libraries/src/MVC/Controller/BaseController.php:697


8
Joomla\CMS\MVC\Controller\BaseController->display()
JROOT/components/com_content/src/Controller/DisplayController.php:122


9
Joomla\Component\Content\Site\Controller\DisplayController->display()
JROOT/libraries/src/MVC/Controller/BaseController.php:730


10
Joomla\CMS\MVC\Controller\BaseController->execute()
JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143


11
Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
JROOT/components/com_content/src/Dispatcher/Dispatcher.php:56


12
Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
JROOT/libraries/src/Component/ComponentHelper.php:361


13
Joomla\CMS\Component\ComponentHelper::renderComponent()
JROOT/libraries/src/Application/SiteApplication.php:218


14
Joomla\CMS\Application\SiteApplication->dispatch()
JROOT/libraries/src/Application/SiteApplication.php:261


15
Joomla\CMS\Application\SiteApplication->doExecute()
JROOT/libraries/src/Application/CMSApplication.php:306


16
Joomla\CMS\Application\CMSApplication->execute()
JROOT/includes/app.php:58


17
require_once()
JROOT/index.php:32


Denise
P.S. I just noticed that I provided an incorrect title for this ticket, I was able to rule out article categorization as a cause while writing the steps to reproduce but forgot to change the title. My apologies for any confusion that caused.

Lefteris Kavadas

Hi Denise,

Thank you for your valuable feedback! After several hours of testing, I believe this might be a Joomla core issue. Here’s a quick fix you can try:

Locate the plugin named "System - SEF" and set the "Strict Routing" option to "No". This should restore your site to its previous behavior.

Additional Notes:

  • The issue appears to affect articles that belong to a category without a corresponding menu item.
  • Instead of disabling "Strict Routing", you can create a menu item for the category in question. This acts as a workaround rather than a permanent solution.

I will continue investigating this and will work towards finding a proper resolution.

Best regards

Lefteris Kavadas

Update: It seems that the "Strict Routing" option does not affect the issue at all, I was wrong. But if you do create a menu item the site should work as before. This is indeed a Joomla API issue but we will release an update with a workaround in the following days.

Denise
Ah ha, I see — thank you for all your efforts on this problem! I'll look forward to trying the update when it's ready.  :)
You may already know about this, but just in case it's helpful: While testing the suggested workaround, I notice that even though I'm on the Home Page (the default Featured Articles) menu item, the Joomla Breadcrumbs module thinks I'm in "Home / test menu item" ("test menu item" is of type Articles >> Category Blog). That menu item maps to the category of the final article in the Featured Articles list.

Lefteris Kavadas

Hi Denise,

Thank you once again for bringing the breadcrumbs issue to our attention. Your detailed report was invaluable in helping us identify and resolve the problem.

We’re pleased to let you know that the issue has been fixed, and an update will be released shortly.

If you have any further questions or encounter other issues, please don’t hesitate to reach out.

Best regards

Denise
I confirm v1.0.2 fixes the issue for me, this ticket can be marked as resolved.  :)  Thank you again for your work and assistance!

Lefteris Kavadas

Hi Denise,

Thank you for confirming that v1.0.2 resolves the issue. I’m glad we could address it successfully!

If you have any other questions or need assistance in the future, don’t hesitate to reach out. Your feedback is always appreciated. 😊

Best regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review