0 Call To A Member Function Get() On Bool When Trying To Edit Template - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

0 Call To A Member Function Get() On Bool When Trying To Edit Template

G

Gareth

Template 2 months 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}
0
9 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 2 months ago #201346

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,

0
G
Gareth
Accepted Answer
2 months ago #201373

added

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 2 months ago #201377

Please, allow me super admin access.

Thanks

0
G
Gareth
Accepted Answer
2 months ago #201379

done

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 2 months ago #201453

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,

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 months ago #201455

Tip! If you want to add custom CSS please follow Helix Guide >> https://www.joomshaper.com/documentation/helix-framework/custom-code-css-js-meta#documentation-heading-3

please do not edit template core files. It's much better to create your own custom.css etc.

0
G
Gareth
Accepted Answer
2 months ago #201477

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?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 months ago #201482

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)

0
G
Gareth
Accepted Answer
2 months ago #201534

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

0