- Posts: 44
- Thank you received: 5
Attempt to modify property "values" on null
- Volker Epting
-
Topic Author
- Offline
Less
More
3 years 3 weeks ago - 3 years 3 weeks ago #356384
by Volker Epting
Attempt to modify property "values" on null was created 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:
-- 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
Replied by nicolas on topic Attempt to modify property "values" on null
Hi,
Can you try adding the code:
before the line:
in the file administrator/components/com_hikashop/classes/cart.php ?
It should hopefully fix the problem.
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();
}
Code:
$product->characteristics[$characteristic->characteristic_parent_id]->values[$characteristic->characteristic_id] = $characteristic;
It should hopefully fix the problem.
Please Log in or Create an account to join the conversation.
Time to create page: 0.040 seconds