After updating a 3.4.8 site to 3.6.5 that uses mod_articles_categories I am getting a Fatal Error on the pages the module appears.
Class 'ContentHelperRoute' not found in modules/mod_articles_categories/tmpl/default_items.php on line 14
Just create a module instance to display the list of categories from one parent category and the error will occur.
The module should display a list of categories from one parent category.
Fatal Error
J 3.6.5
The problem is that the default_items.php is calling the ContentHelperRoute, which is not available.
The module has changed at some point from using require_once to load its helper.php and require_once to load the ContentHelperRoute Class inside the helper.php file, but now it loads the said Classes with JLoader::register();
But this way the ContentHelperRoute Class isn't available anymore in the template file.
The fix is to move the call
JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');
away from the helper.php
and put it in the mod_articles_categories.php
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-15 16:09:01 |
Closed_By | ⇒ | infograf768 |
Closing as the patch https://issues.joomla.org/tracker/joomla-cms/13590 is already RTC
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/13588