Display / Content Menus - PHP error

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 3 months ago #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.

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

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
13 years 3 months ago #3863

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

$order = '';
, please add the 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.053 seconds
Powered by Kunena Forum