Call to a member function get() on null error

Phoca Cart - complex e-commerce extension
geoffp
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Dec 2022, 10:56

Call to a member function get() on null error

Post 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?

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Call to a member function get() on null error

Post by Jan »

Hi, first, enable debug mode to see whole error message including the trace to know from which part this error comes.

Jan
If you find Phoca extensions useful, please support the project
geoffp
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Dec 2022, 10:56

Re: Call to a member function get() on null error

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Call to a member function get() on null error

Post 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
geoffp
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Dec 2022, 10:56

Re: Call to a member function get() on null error

Post by geoffp »

Brilliant - that kills the problem stone dead.

Will have to find an alternative for Mavikthumbnails

Thanks for your help

Geoff
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Call to a member function get() on null error

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply