[SOLVED]Notice: Trying to get property of non-object in in cart after upgrade

  • Posts: 155
  • Thank you received: 4
7 years 9 months ago #262430

-- HikaShop version -- : 3.0.0 business
-- Joomla version -- : 3.6.5
-- PHP version -- : .6.23-1
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in

After updating to version 3.0.0 i get Notice: Trying to get property of non-object in in the cart module

please give advice

thanks in advance

Attachments:
Last edit: 7 years 9 months ago by Cattelan.

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

  • Posts: 1
  • Thank you received: 0
7 years 9 months ago #262456

Could this be due to the bug in the administrator code?

There is a bug in the administrator code file types/delay.php line 120, the variable name is given as "$return" when it should be "$ret".

When I fixed this not only did the error message in the admin advanced settings go away, but the problem that Cattelan is reporting also disappeared.

Seems odd, but there y'go...

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262439

Hi,

Can you please provide the context when that message is displayed exactly ?
The warning indicates that there is no "hikashop_cart" module loaded by Joomla and the "module_id" parameter is not related to a valid module.

Afterwards, it is just a notice, so there is nothing problematic because such kind of PHP notice should not be displayed in a website in production.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 155
  • Thank you received: 4
7 years 9 months ago #262535

it appears when you add a product to the cart. You can try it by yourself www.ilmondodiwit.com/shop/gioielli.html

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

  • Posts: 155
  • Thank you received: 4
7 years 9 months ago #262536

Solved. It was due to multilanguage and the module was signed only for one language. i added the modules for other languages and now it works. Thanks

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

Time to create page: 0.080 seconds
Powered by Kunena Forum