TaxCloud Warning on checkout step 2

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
6 years 1 month ago #298964

-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Warning: Creating default object from empty value in /home/devidall/public_html/plugins/hikashop/taxcloud/taxcloud.phhp on line 468

I am getting a TaxCloud Warning on my website after updating Hikashop and Joomla

After a user pays on my site and on the checkout step 2, I am getting a TaxCloud Warning:
Warning: Creating default object from empty value in /home/devidall/public_html/plugins/hikashop/taxcloud/taxcloud.phhp on line 468.

I turned on taxcloud debug and other information is shown along with the warning. See attached pics.

Please advise.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 1 month ago #298969

Hi,

Add the code:

			if(!isset($product->order_product_params))
				$product->order_product_params = new stdClass();
			if(!isset($product->order_product_params->taxcloud))
				$product->order_product_params->taxcloud = new stdClass();
before the code:
$product->order_product_params->taxcloud->taxcloud_id = $id;
in that file and that will remove the message.
We'll add the change on our end too.

The following user(s) said Thank You: dbarnhart863

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

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
6 years 1 month ago #299018

Great. Thank you that fixed it.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum