Inappropriate notices on viewing cart

  • Posts: 13
  • Thank you received: 0
9 years 1 month ago #217189

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6.13
-- Browser(s) name and version -- : safari
-- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in /sites/newps/components/com_hikashop/views/cart/view.html.php on line 119

Notice: Trying to get property of non-object in /sites/newps/components/com_hikashop/views/cart/view.html.php on line 122

Notice: Trying to get property of non-object in /sites/newps/components/com_hikashop/views/cart/view.html.php on line 123

When a user logs in from the front end I have them being sent to their cart. A newly created user results in the notices posted above.
Is there a fix?

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

  • Posts: 13
  • Thank you received: 0
9 years 1 month ago #217191

Okay, I spoke too soon.
The problem is with a Haikashop plugin to intercept with event onBeforeCartUpdate
I was using a "break" statement to interrupt program flow to examine var_dumps in developing the plugin... and before I started using a pop-up on an "add to cart" product button, it worked fine.
However, if you go of the pop-up, having a break in the plugin doesn't suspend program execution, it just seems to short-circuit the add-to-cart haikashop logic and leaves the system in a bad shape.
Sorry for the false alarm... but hopefully my experience will help others.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum