Skip to main content

Attempt to modify property "values" on null

3 years 3 weeks ago - 3 years 3 weeks ago #356384 by Volker Epting
-- 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: 3 years 3 weeks ago by Volker Epting.

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

3 years 2 weeks ago #356391 by nicolas
Hi,

Can you try adding the code:
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:
Code:
$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.040 seconds
Powered by Kunena Forum