Themler version 570
Message 0 - Class "Uri" not found, appears on new template after adding few elements and saving. Same result with versions 564 and newer...
Hello,
With a little workaround I found that; (it's OK on my side)
Open your the page home_1.php in /templates/name-of-your-template/templates/
At line 5 between PHP tags copy :
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
Save it and it's done.
Do the same thing with other page like default, page# and blog.
Be carefull you have to add this each time you save the template.
I'm still working how to add this in the template
> Themler version 570
>
> Message 0 - Class "Uri" not found, appears on new template after adding few elements and saving. Same result with versions 564 and newer...
Hello,
With a little workaround I found that; (it's OK on my side)
Open your the page home_1.php in /templates/name-of-your-template/templates/
At line 5 between PHP tags copy :
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
Save it and it's done.
Do the same thing with other page like default, page# and blog.
Be carefull you have to add this each time you save the template.
I'm still working how to add this in the template
Last edited 29 December 2023 by jeanmarcvieux