Page 1 of 1
Call to a member function get() on null error
Posted: 29 May 2024, 16:34
by geoffp
Hi Jan
New error since moving to Joomla 4 - now 4.4.4
Phoca Cart 4.0.10
pHp 8.1
An error has occurred.
0 Call to a member function get() on null
I see this in the Orders Section - when clicking on View Order, View Invoice or View Delivery Note icons
System is working overall however
What should I do?
Re: Call to a member function get() on null error
Posted: 29 May 2024, 18:30
by Jan
Hi, first, enable debug mode to see whole error message including the trace to know from which part this error comes.
Jan
Re: Call to a member function get() on null error
Posted: 30 May 2024, 15:03
by geoffp
An error has occurred.
0 Call to a member function get() on null
Call stack
# Function Location
1 () JROOT/plugins/content/mavikthumbnails/mavikthumbnails.php:126
2 plgContentMavikThumbnails->onContentPrepare() JROOT/libraries/src/Plugin/CMSPlugin.php:289
3 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
4 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
5 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/HTML/Helpers/Content.php:50
6 Joomla\CMS\HTML\Helpers\Content::prepare() JROOT/libraries/src/HTML/HTMLHelper.php:292
7 Joomla\CMS\HTML\HTMLHelper::call() JROOT/libraries/src/HTML/HTMLHelper.php:146
8 Joomla\CMS\HTML\HTMLHelper::_() JROOT/components/com_phocacart/layouts/order.php:1245
9 include() JROOT/libraries/src/Layout/FileLayout.php:128
10 Joomla\CMS\Layout\FileLayout->render() JROOT/administrator/components/com_phocacart/libraries/phocacart/order/render.php:183
11 PhocacartOrderRender->render() JROOT/administrator/components/com_phocacart/views/phocacartorderview/view.html.php:26
12 PhocaCartCpViewPhocacartOrderView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
13 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocacart/controller.php:92
14 phocaCartCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocacart/phocacart.php:28
16 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
17 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
18 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
23 require_once() JROOT/administrator/index.php:32
Re: Call to a member function get() on null error
Posted: 30 May 2024, 15:55
by Benno
Hi,
1 () JROOT/plugins/content/mavikthumbnails/mavikthumbnails.php:126
At first you should disable the Mavikthumbnails Plugin for testing because it's an J3 plugin.
See:
https://extensions.joomla.org/extension ... humbnails/
At second you should uninstall this Plugin if the error is gone due disableing.
Kind regards,
Benno
Re: Call to a member function get() on null error
Posted: 31 May 2024, 01:48
by geoffp
Brilliant - that kills the problem stone dead.
Will have to find an alternative for Mavikthumbnails
Thanks for your help
Geoff
Re: Call to a member function get() on null error
Posted: 31 May 2024, 06:31
by Benno
You're welcome!
Kind regards,
Benno