Display / Content Menus - PHP error
- brainforge
-
Topic Author
- Offline
Less
More
15 years 9 months ago #3862
by brainforge
Display / Content Menus - PHP error was created 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.
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.
15 years 9 months ago #3863
by nicolas
Replied by nicolas on topic Re: Display / Content Menus - PHP error
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
, please add the code
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.
Just edit the file administrator/components/com_hikashop/views/menus/view.html.php near line 160 and just before the line
Code:
$order = '';
Code:
$filters[] = 'published>-2';
Please Log in or Create an account to join the conversation.
Time to create page: 0.275 seconds