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

#   Display / Content Menus - PHP error

##

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 10 months ago [\#3862](#3862) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Display / Content Menus - PHP error](/forum/3-bug-report/3862-display-content-menus-php-error#3862 "Hikashop v1.4.1  Created Joomla menu item pointing to product category. Then deleted the Joomla menu item. Went back into Display / Content Menus and got this error. Deleted the Hikashop menu item and error went away.")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

Hikashop v1.4.1

Created Joomla menu item pointing to product category.
Then deleted the Joomla menu item.
Went back into Display / Content Menus and got this error.
Deleted the Hikashop menu item and error went away.

> Notice: Undefined index: -2 in W:\\htdocs\\Jonathan\\Joomla\\administrator\\components\\com\_hikashop\\helpers\\toggle.php on line 33

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/error.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/error.jpg "&#91;img")

- [ ![error.jpg](/forum/attachment/253) ](/forum/attachment/253 "error.jpg") [ ](/forum/attachment/253?download=1 "error.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zODYyLWRpc3BsYXktY29udGVudC1tZW51cy1waHAtZXJyb3I/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: 86541
- Thank you received: 14304
-
-

15 years 10 months ago [\#3863](#3863) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display / Content Menus - PHP error](/forum/3-bug-report/3862-display-content-menus-php-error#3863 "Hikashop v1.4.1  Created Joomla menu item pointing to product category. Then deleted the Joomla menu item. Went back into Display / Content Menus and got this error. Deleted the Hikashop menu item and error went away.")*

Hi, the problème is that when you delete the menu item via joomla it's not really deleted but the published state go from 1 or 0 to -2 and is not displaye don the menus listing of joomla. So we will do the same.

Just edit the file administrator/components/com_hikashop/views/menus/view.html.php near line 160 and just before the line Code:

$order = '';

, please add the code Code:

$filters[] = 'published&gt;-2';

to fix the problem. It fixed the notice on our end and we have the same behavior as joomla which is to not display menu items which are trashed but not deleted.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zODYyLWRpc3BsYXktY29udGVudC1tZW51cy1waHAtZXJyb3I/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.049 seconds

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