Skip to main content

Display / Content Menus - PHP error

More
15 years 9 months ago #3862 by brainforge
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

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

More
15 years 9 months ago #3863 by nicolas
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>-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 or Create an account to join the conversation.

Time to create page: 0.160 seconds
Powered by Kunena Forum