Attempt to modify property "values" on null

  • Posts: 42
  • Thank you received: 5
1 year 2 weeks ago #356384

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 5.0.0
-- PHP version -- : 8.2.9
-- Browser(s) name and version -- : Firefox 119

-- Error-message(debug-mod must be tuned on) -- : ERROR 0 - Attempt to modify property "values" on null in /www/htdocs/w01e74ed/steelumo.de/administrator/components/com_hikashop/classes/cart.php:3957

As soon as I publish the cart modul I got this error:

Last edit: 1 year 2 weeks ago by Volker Epting.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 2 weeks ago #356391

Hi,

Can you try adding the code:

				if(!isset($product->characteristics[$characteristic->characteristic_parent_id])) {
					$product->characteristics[$characteristic->characteristic_parent_id] = new stdClass();
					$product->characteristics[$characteristic->characteristic_parent_id]->values = array();
				}
before the line:
$product->characteristics[$characteristic->characteristic_parent_id]->values[$characteristic->characteristic_id] = $characteristic;
in the file administrator/components/com_hikashop/classes/cart.php ?
It should hopefully fix the problem.

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

Time to create page: 0.046 seconds
Powered by Kunena Forum