Attempt to modify property "values" on null

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
5 months 4 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: 5 months 4 weeks ago by Volker Epting.

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
5 months 4 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.053 seconds
Powered by Kunena Forum