Staff replied Templates

0 Call to undefined method Joomla\CMS\Uri\Uri::_()

Asked by cppleal 3 years ago Last activity 2 years ago

Hello.
I have a problem migrating from Joomla 3 to 4 with the "Ensure" template.

I have checked all the extensions and I can't find the solution to the problem. I correctly display the articles from the main page, but when I go to menu options that show articles in blog format, it gives me this error.

If you could help me with this?

At the moment I am working on localhost... This is the detail of the error:

Call stack Function Location
1 () JROOT\templates\ensure\html\com_content\category\blog_item.php:93
2 include() JROOT\libraries\src\MVC\View\HtmlView.php:410
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT\templates\ensure\html\com_content\category\blog.php:88
4 include() JROOT\libraries\src\MVC\View\HtmlView.php:410

Greetings.

4 replies

Ofi Khan Staff

Hello cppleal

Please take a full site backup with Akeeba Backup in ZIP format and share here. Follow this tutorial

Best regards

cppleal Asked this

Attached backup.

Thanks

Ofi Khan Staff

Apology for the delayed response. Please go to this location: templates/ensure/html/com_content/category and replace blog_item.php file with the attached file. You need to unzip the file and then replace.

blog_item.php.zip

Peter Dowse

Thanks - also had this issue and this fix was just what was needed.

Ofi Khan Staff

Hello Peter Dowse

You are welcome 😊

Best regards

Log in to reply.