Bug in 4.4.0 [2010091523]
5 years 11 months ago - 5 years 11 months ago #324620
by lousyfool
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" )
Bug in 4.4.0 [2010091523] was created by lousyfool
-- 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
you've added in /components/com_hikashop/controllers/cart.php must be the problem. Indeed, after commenting it out, there's no more error.
-- 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
Code:
$app->setUserState('com_hikashop.cart_empty_redirect', 0);
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: 5 years 11 months ago by lousyfool. Reason: Solved
Please Log in or Create an account to join the conversation.
5 years 11 months ago #324621
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Bug in 4.4.0 [2010091523]
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,
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.
Please Log in or Create an account to join the conversation.
5 years 11 months ago #324626
by lousyfool
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" )
Replied by lousyfool on topic Bug in 4.4.0 [2010091523]
Hi Jerome,
Yup, now this way it's working. Thanks!
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.
5 years 9 months ago #327194
by oxido
Replied by oxido on topic Bug in 4.4.0 [2010091523]
This also fix the the same error for the wishlist.
Tank you guys!
Tank you guys!
Please Log in or Create an account to join the conversation.
Time to create page: 0.210 seconds