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

  • Posts: 2
  • Thank you received: 0
3 years 5 months ago #326439

-- 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!

Attachments:

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

  • Posts: 81598
  • Thank you received: 13082
  • MODERATOR
3 years 5 months ago #326455

Hi,

Try to add the code:

					else
						$shipping->taxes[$tax->tax_namekey] = new stdClass();
after the line:
$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.

  • Posts: 84
  • Thank you received: 2
3 years 5 months ago #326612

YES, THANK YOU! IT SOLVED :)

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

Time to create page: 0.066 seconds
Powered by Kunena Forum