Skip to main content

Warning: "Creating default object from empty value ..."

More
5 years 10 months ago #326439 by seoaktok
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.3.2
-- Browser(s) name and version -- : Google Chrome 86.0.4240.198
-- Error-message(debug-mod must be tuned on) -- : Warning: Creating default object from empty value in /home/user******/www/domain./administrator/components/com_hikashop/classes/currency.php on line 2459

Hello!
After updating Hikshop, I started getting a error message:
"Warning: Creating default object from empty value in /home/user******/www/domain./administrator/components/com_hikashop/classes/currency.php on line 2459"
This happens when I go from the checkout to the page of the product that has been added to the cart. This message appears in place of the cart icon.
This message also appears in the HikaShop admin panel in the section "Customers - Cart".
Please help me to solve this problem.
My domain - evastyle.by.
Thank You!

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

More
5 years 10 months ago #326455 by nicolas
Hi,

Try to add the code:
Code:
else $shipping->taxes[$tax->tax_namekey] = new stdClass();
after the line:
Code:
$shipping->taxes[$tax->tax_namekey] = clone($tax);
in the file administrator/components/com_hikashop/classes/currency.php
That should hopefully remove the warning message.
The following user(s) said Thank You: SEKME

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

More
5 years 10 months ago #326612 by SEKME
YES, THANK YOU! IT SOLVED :)

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

Time to create page: 0.256 seconds
Powered by Kunena Forum