[Skip to main content](#vessel-content)

#   Cancel cart item results in Notice and Fatal Error

##

- **[boxcarmib](/forum/user/39131-boxcarmib "View boxcarmib's Profile")**
- [![boxcarmib's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39131-boxcarmib "View boxcarmib's Profile") Topic Author
- [ Offline](/forum/user/39131-boxcarmib)

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 1 month ago [\#217068](#217068) by [boxcarmib](/forum/user/39131-boxcarmib "View boxcarmib's Profile")  *[Cancel cart item results in Notice and Fatal Error](/forum/3-bug-report/879818-cancel-cart-item-results-in-notice-and-fatal-error#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&#95;hikashop/views/product/view.html.php on line 894  Fatal error: Call to a member function getParents() on null in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894  If I press the &quot;x&quot; (cancel) button to cancel a cart item, the system responds with the following two messages:  Notice: Undefined variable: class in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894  Fatal error: Call to a member function getParents() on null in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894")* was created by *[boxcarmib](/forum/user/39131-boxcarmib "View boxcarmib's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Nzk4MTgtY2FuY2VsLWNhcnQtaXRlbS1yZXN1bHRzLWluLW5vdGljZS1hbmQtZmF0YWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

11 years 1 month ago [\#217074](#217074) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cancel cart item results in Notice and Fatal Error](/forum/3-bug-report/879818-cancel-cart-item-results-in-notice-and-fatal-error#217074 "-- 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&#95;hikashop/views/product/view.html.php on line 894  Fatal error: Call to a member function getParents() on null in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894  If I press the &quot;x&quot; (cancel) button to cancel a cart item, the system responds with the following two messages:  Notice: Undefined variable: class in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894  Fatal error: Call to a member function getParents() on null in /sites/newps/components/com&#95;hikashop/views/product/view.html.php on line 894")*

Hi,

Add the line: Code:

$class = hikashop_get('class.category');

before the line: Code:

$categories = $class-&gt;getParents(reset($pageInfo-&gt;filter-&gt;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](/forum/user/39131-boxcarmib "View boxcarmib's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Nzk4MTgtY2FuY2VsLWNhcnQtaXRlbS1yZXN1bHRzLWluLW5vdGljZS1hbmQtZmF0YWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.043 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
