Cancel cart item results in Notice and Fatal Error

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

-- 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: Undefined variable: class in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

Fatal error: Call to a member function getParents() on null in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

If I press the "x" (cancel) button to cancel a cart item, the system responds with the following two messages:

Notice: Undefined variable: class in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

Fatal error: Call to a member function getParents() on null in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 1 month ago #217074

Hi,

Add the line:

$class = hikashop_get('class.category');
before the line:
$categories = $class->getParents(reset($pageInfo->filter->cid));
in the file components/com_hikashop/views/product/view.html.php and that will fix the problem.

The following user(s) said Thank You: boxcarmib

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

Time to create page: 0.057 seconds
Powered by Kunena Forum