Subject: Educon 4.0.3 – Legacy Joomla classes cause fatal errors on Joomla 6 (JHtml / JFactory not found)
Hello,
I'm using the Educon template version 4.0.3 on a fresh Joomla 6 installation. According to the product page, this version is listed as compatible with Joomla 6, but I'm getting fatal errors caused by legacy (non-namespaced) Joomla classes that were removed in Joomla 6.
Original error:
Class "JHtml" not found
in templates/shaper_educon/html/com_content/featured/default.php (line 12)
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
This triggers Joomla's error page, but the template's own error handler also fails for the same reason, producing a second fatal error:
Attempted to load class "JFactory" from the global namespace.
in templates/shaper_educon/error.php (line 12)
$doc = JFactory::getDocument();
$params = JFactory::getApplication()->getTemplate('true')->params;
...
$logo = JURI::root() . '/' . $logo_image;
It looks like these two files were not updated to the new namespaced Joomla API (Joomla\CMS\HTML\HTMLHelper, Joomla\CMS\Factory, Joomla\CMS\Uri\Uri), unlike the rest of the template.
Could you please provide an updated version of these two files, or confirm if there's a patch available for full Joomla 6 compatibility?
Thank you for your support.