-- 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.