0 Call to a member function get() on null - Forum | JoomShaper
Solved Helix Framework

0 Call to a member function get() on null

Asked by Chris Ifeanyi Ezeh 3 years ago Last activity 3 years ago

i get this error with shaper_qubic template and helix 3 last version

Call stack

Function Location

1 () JROOT/modules/mod_menu/tmpl/default_url.php:51
2 require() JROOT/templates/shaper_qubic/html/mod_menu/default.php:83
3 require() JROOT/modules/mod_menu/mod_menu.php:30
4 include() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:52
5 Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:55
6 Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() JROOT/libraries/src/Helper/ModuleHelper.php:281
7 Joomla\CMS\Helper\ModuleHelper::renderRawModule() JROOT/libraries/src/Helper/ModuleHelper.php:161
8 Joomla\CMS\Helper\ModuleHelper::renderModule() JROOT/libraries/src/Cache/Controller/CallbackController.php:132
9 Joomla\CMS\Cache\Controller\CallbackController->get() JROOT/libraries/src/Helper/ModuleHelper.php:641
10 Joomla\CMS\Helper\ModuleHelper::moduleCache() JROOT/libraries/src/Document/Renderer/Html/ModuleRenderer.php:93
11 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() JROOT/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50
12 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() JROOT/libraries/src/Document/HtmlDocument.php:556
13 Joomla\CMS\Document\HtmlDocument->getBuffer() JROOT/libraries/src/Document/HtmlDocument.php:848
14 Joomla\CMS\Document\HtmlDocument->_renderTemplate() JROOT/libraries/src/Document/HtmlDocument.php:633
15 Joomla\CMS\Document\HtmlDocument->render() JROOT/libraries/src/Application/CMSApplication.php:1017
16 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:714
17 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:299
18 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
19 require_once() JROOT/index.php:32

and when i disable mod menu i get this error

Warning: Attempt to read property "layout" on null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 324

Warning: Trying to access array offset on value of type null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 326

Warning: Attempt to read property "attr" on null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 327

Warning: Trying to access array offset on value of type null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 327

Warning: Attempt to read property "moduleId" on null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 328

Warning: Attempt to read property "layout" on null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 324

Warning: Trying to access array offset on value of type null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 326

Warning: Attempt to read property "attr" on null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 327

Warning: Trying to access array offset on value of type null in /home/domain.com/domains/mydomain.com/public_html/eurode4/plugins/system/helix3/core/classes/menu.php on line 327

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Fixed.

It theory it should work also on PHP 8.0.x - if it will be, then you can check with PHP 8.1

10 more replies

Paul Frankowski Senior Staff

Hi Chris,

Is domain OK? I see Wordpress there, not Joomla.

120.jpg

BTW

What PHP version you have set?

Chris Ifeanyi Ezeh Asked this

we put the website on test domain for testing i sent all the details on private content sir .. thank you

Chris Ifeanyi Ezeh Asked this

What PHP version you have set? 8.1

Paul Frankowski Senior Staff

That template make not work with PHP 8.1 yet. Please by now switch to PHP 7.4 - then I will let you know.

Chris Ifeanyi Ezeh Asked this

switched with php 7.4 sir .done but still the same error

Paul Frankowski Senior Staff
3 years ago · edited

Thanks, but I have to ask our developer becuase you have weird message even after Helix3 plugin update.

Chris Ifeanyi Ezeh Asked this

... sure waiting :)

Chris Ifeanyi Ezeh Asked this

Yes it is working now in Php 8.1 thank you so much

Gianluca Pantaleo

Hello, same problem here, how was the fix for the other user who is working in php 8.1, please?Thans.

I get this error with shaper_qubic template and helix 3 last version on joomla 4 and PHP 8.1:

1 () JROOT/modules/mod_menu/tmpl/default_component.php:59
2 require() JROOT/templates/shaper_qubic/html/mod_menu/default.php:83
3 require() JROOT/modules/mod_menu/mod_menu.php:30
4 include() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:52
5 Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:55
6 Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() JROOT/libraries/src/Helper/ModuleHelper.php:281
7 Joomla\CMS\Helper\ModuleHelper::renderRawModule() JROOT/libraries/src/Helper/ModuleHelper.php:161
8 Joomla\CMS\Helper\ModuleHelper::renderModule() JROOT/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99
9 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() JROOT/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50
10 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() JROOT/libraries/src/Document/HtmlDocument.php:566
11 Joomla\CMS\Document\HtmlDocument->getBuffer() JROOT/libraries/src/Document/HtmlDocument.php:853
12 Joomla\CMS\Document\HtmlDocument->_renderTemplate() JROOT/libraries/src/Document/HtmlDocument.php:638
13 Joomla\CMS\Document\HtmlDocument->render() JROOT/libraries/src/Application/CMSApplication.php:1025
14 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:724
15 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:298
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
17 require_once() JROOT/index.php:32

Paul Frankowski Senior Staff
3 years ago · edited
  1. download Helix3 template or helix3 quickstart package
  2. copy this file: templates/shaper_helix3/html/mod_menu/default.php
  3. replace/override file inside: templates/shaper_qubic/html/mod_menu/
Gianluca Pantaleo

Hi, thank for your support. I tried to replace file but I got the same errore. Otherwise if I rename the folder "mod_menu" in "_mod_menu" it works.

Log in to reply.