Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 01h 08m 56s
Claim 50% off
Solved Templates

0 Call to a member function get() on bool when trying to edit template

Asked by Gareth 1 year ago Last activity 1 year ago

When I try to open the template it just returns this error. Enabling debug returns the stack below:

#   Function    Location
1   ()  JROOT/administrator/components/com_templates/tmpl/templates/default.php:101
2   include()   JROOT/libraries/src/MVC/View/HtmlView.php:416
3   Joomla\CMS\MVC\View\HtmlView->loadTemplate()    JROOT/libraries/src/MVC/View/HtmlView.php:204
4   Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_templates/src/View/Templates/HtmlView.php:128
5   Joomla\Component\Templates\Administrator\View\Templates\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
6   Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_templates/src/Controller/DisplayController.php:68
7   Joomla\Component\Templates\Administrator\Controller\DisplayController->display()    JROOT/libraries/src/MVC/Controller/BaseController.php:730
8   Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
9   Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()   JROOT/libraries/src/Component/ComponentHelper.php:361
10  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
11  Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:205
12  Joomla\CMS\Application\AdministratorApplication->doExecute()    JROOT/libraries/src/Application/CMSApplication.php:304
13  Joomla\CMS\Application\CMSApplication->execute()    JROOT/administrator/includes/app.php:58
14  require_once()  JROOT/administrator/index.php:32

From admin logs:

2025-08-13T17:51:45+00:00   CRITICAL 81.133.167.145 error   Uncaught Throwable of type Error thrown with message "Call to a member function get() on bool". Stack trace: #0 [ROOT]/libraries/src/MVC/View/HtmlView.php(416): include()
#1 [ROOT]/libraries/src/MVC/View/HtmlView.php(204): Joomla\CMS\MVC\View\HtmlView->loadTemplate()
#2 [ROOT]/administrator/components/com_templates/src/View/Templates/HtmlView.php(128): Joomla\CMS\MVC\View\HtmlView->display()
#3 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): Joomla\Component\Templates\Administrator\View\Templates\HtmlView->display()
#4 [ROOT]/administrator/components/com_templates/src/Controller/DisplayController.php(68): Joomla\CMS\MVC\Controller\BaseController->display()
#5 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): Joomla\Component\Templates\Administrator\Controller\DisplayController->display()
#6 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute()
#7 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#8 [ROOT]/libraries/src/Application/AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent()
#9 [ROOT]/libraries/src/Application/AdministratorApplication.php(205): Joomla\CMS\Application\AdministratorApplication->dispatch()
#10 [ROOT]/libraries/src/Application/CMSApplication.php(304): Joomla\CMS\Application\AdministratorApplication->doExecute()
#11 [ROOT]/administrator/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#12 [ROOT]/administrator/index.php(32): require_once('/home/xxxxxxxx...')
#13 {main}
2025-08-13T17:52:01+00:00   CRITICAL xxx.xxx.xxx.xxx    error   Uncaught Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException thrown with message "Page not found". Stack trace: #0 [ROOT]/libraries/src/Application/SiteApplication.php(767): Joomla\CMS\Router\Router->parse()
#1 [ROOT]/libraries/src/Application/SiteApplication.php(243): Joomla\CMS\Application\SiteApplication->route()
#2 [ROOT]/libraries/src/Application/CMSApplication.php(304): Joomla\CMS\Application\SiteApplication->doExecute()
#3 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#4 [ROOT]/index.php(32): require_once('/home/xxxxxxxx...')
#5 {main}

Accepted answer

Marked as the solution
Ziaul Kabir Staff

The issue has been resolved. The problem was caused by unnecessary CSS code that had been inadvertently placed in the following file:

JROOT/templates/shaper_fusion/templateDetails.xml

This invalid XML was preventing Joomla from loading the template style form. After removing the extra CSS, the template is now functioning correctly.

Best regards,

7 more replies

Ziaul Kabir Staff

Hello,

Thanks for reaching out to us. Could you please share temporary administrator access to your Joomla backend? You can provide the credentials securely in the hidden content section. Also, please take a full backup of your site before we make any changes.

Once I have access, I’ll investigate further and see what’s causing the issue. Let me know once you’ve shared the details!

Best regards,

Gareth Asked this

added

Ziaul Kabir Staff

Please, allow me super admin access.

Thanks

Gareth Asked this

done

Gareth Asked this

There was no deliberate intention to add CSS to XML. It must have been an accident. Thank you for fixing. For future reference, may I ask how you were able to get in and edit that file because I couldn't access the template in any way?

Paul Frankowski Senior Staff

In Joomla you can edit template files by:

  1. Using System Dashboard > Templates (box) > Site Templates > click on template name > then you have sort of template file manager with edit option
  2. Using File Manager component (Phoca Commander or similar)
  3. Using FTP tool
  4. Using File Manager from cPanel

Probably @Ziaul used (1)

Gareth Asked this

1 is the normal way, yes. That isn't what I was asking but it seems like the agent installed Phoca Commander. Thanks again.

Log in to reply.