Bug in 4.4.0 [2010091523]

  • Posts: 2143
  • Thank you received: 747
4 years 1 month ago #324620

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3.23
-- Error-message(debug-mod must be tuned on) -- : Call to a member function setUserState() on null

Hi,

After installing the build mentioned in the subject line over an earlier 4.4.0, I got the fatal "Call to a member function setUserState() on null" error when removing an item from a cart by clicking the trash bin icon -- at least with a menu item for cart (wishlist and/or cart module I didn't try) and as guest.

I figured that the cause could be the line 196

$app->setUserState('com_hikashop.cart_empty_redirect', 0);
you've added in /components/com_hikashop/controllers/cart.php must be the problem. Indeed, after commenting it out, there's no more error.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 4 years 1 month ago by lousyfool. Reason: Solved

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 1 month ago #324621

Hello,

Indeed you can enter in a specific context and not have the application initialized.
Please re-download the package in order to get the fix.

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.
The following user(s) said Thank You: lousyfool, oxido

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

  • Posts: 2143
  • Thank you received: 747
4 years 1 month ago #324626

Hi Jerome,

Yup, now this way it's working. Thanks!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: oxido

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

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
3 years 11 months ago #327194

This also fix the the same error for the wishlist.
Tank you guys!

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

Time to create page: 0.076 seconds
Powered by Kunena Forum