Notice: Trying to get property of non-object in /home/enagi/public_html/temp/plu

  • Posts: 31
  • Thank you received: 0
7 years 3 months ago #275750

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.4.7
-- PHP version -- : 7.0.22
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in /home/enagi/public_html/temp/plugins/hikashopshipping/fedex/fedex.php on line 341

Hi
After logging on in the checkout I get this "Notice: Trying to get property of non-object in /home/enagi/public_html/temp/plugins/hikashopshipping/fedex/fedex.php on line 341"

So I cannot get a FedEX quote, please correct, see attachment also.

Thanks
Jesper

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
7 years 3 months ago #275757

Hello Jesper,

Can you give us the line 341 of the fedex.php file in which you are having your issue so that we can have more information about your issue ?

Thank you.

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

  • Posts: 31
  • Thank you received: 0
7 years 3 months ago #275790

Hi
Here, see attchment..
Thanks
Jesper

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
7 years 3 months ago #275888

Hello,

To fix that issue you'll just have to replace that line :

	elseif(strlen($state->zone_code_3) == 2)
By :
	elseif(isset($state->zone_code_3) && strlen($state->zone_code_3) == 2)

Also, Notice messages won't affect your shop.
Note that when your shop is in production mode you should :
- Disable the Joomla debug mode ("Administration->Global configuration->System->Debug System/Language")
- Set the "error reporting" option of the Joomla configuration to "none"

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

Time to create page: 0.070 seconds
Powered by Kunena Forum