Editing Prd0 Call to a member function get() on null

  • Posts: 21
  • Thank you received: 7
1 year 1 month ago #350056

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0.25
-- Browser(s) name and version -- : Chrome 111.0.5563.64
-- Error-message(debug-mod must be tuned on) -- : 0 Call to a member function get() on null

When editing products after hitting save getting the following error:
0 Call to a member function get() on null

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 1 month ago #350058

Hi,

Please activate the "debug" setting of the Joomla configuration and try again. It will display an error message with more information about the problem and this will allow us to tell you what to do.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 7
1 year 1 month ago #350101

An error has occurred.
0 Call to a member function get() on null
C:\inetpub\wwwroot\weldonflavorings.com\administrator\components\com_finder\helpers\indexer\adapter.php:151
Call stack
# Function Location
1 () JROOT\administrator\components\com_finder\helpers\indexer\adapter.php:151
2 FinderIndexerAdapter->__construct() JROOT\plugins\finder\hikashop\hikashop.php:27
3 plgFinderHikashopBridge->__construct() JROOT\libraries\src\Plugin\PluginHelper.php:280
4 Joomla\CMS\Plugin\PluginHelper::import() JROOT\libraries\src\Plugin\PluginHelper.php:182
5 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT\plugins\system\hikashopuser\hikashopuser.php:64
6 plgSystemHikashopuser->onBeforeProductUpdate() JROOT\libraries\joomla\event\event.php:70
7 JEvent->update() JROOT\libraries\joomla\event\dispatcher.php:160
8 JEventDispatcher->trigger() JROOT\libraries\src\Application\BaseApplication.php:108
9 Joomla\CMS\Application\BaseApplication->triggerEvent() JROOT\administrator\components\com_hikashop\classes\product.php:2772
10 hikashopProductClass->save() JROOT\administrator\components\com_hikashop\classes\product.php:684
11 hikashopProductClass->backSaveForm() JROOT\administrator\components\com_hikashop\classes\product.php:50
12 hikashopProductClass->saveForm() JROOT\administrator\components\com_hikashop\helpers\helper.php:2249
13 hikashopController->store() JROOT\administrator\components\com_hikashop\helpers\helper.php:2189
14 hikashopController->apply() JROOT\libraries\src\MVC\Controller\BaseController.php:702
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\administrator\components\com_hikashop\helpers\helper.php:2436
16 hikashopController->execute() JROOT\administrator\components\com_hikashop\hikashop.php:73
17 require_once() JROOT\libraries\src\Component\ComponentHelper.php:402
18 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT\libraries\src\Component\ComponentHelper.php:377
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:101
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:159
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:225
22 Joomla\CMS\Application\CMSApplication->execute() JROOT\administrator\index.php:51

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 1 month ago #350103

Hi,

Please edit the file plugins/finder/hikashop/hikashop.php and change the code:

		parent::__construct($subject, $config);
		if(isset($this->params))
			return;

		$plugin = JPluginHelper::getPlugin('finder', 'hikashop');
		$this->params = new JRegistry(@$plugin->params);
to:
		if(!isset($this->params)) {
			$plugin = JPluginHelper::getPlugin('finder', 'hikashop');
			$this->params = new JRegistry(@$plugin->params);
		}

		parent::__construct($subject, $config);
This should fix the problem.
Please let us know how it goes so that we can include the modification on our end.

The following user(s) said Thank You: cboyd213

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 7
1 year 1 month ago #350172

That fixed it, thanks!

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum