Error using User Control Panel menu item

  • Posts: 199
  • Thank you received: 12
  • Hikashop Business
9 years 4 months ago #235221

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.6
-- Browser(s) name and version -- : FF

I created a menu item of the type: User Control Panel. When I click the item I get an error: Notice: Trying to get property of non-object in C:\xampp\htdocs\stofnodigdev2\components\com_hikashop\views\product\tmpl\filter.php on line 32

Also the URL is not sef friendly: http://localhost/index.php/component/users/?view=login&Itemid=104&return=aHR0cDovL2xvY2FsaG9zdC9zdG9mbm9kaWdkZXYyL2luZGV4LnBocC91c2VyLWNvbnRyb2wtcGFuZWw=

Hope you can help me with this error message...

Thanks!

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

  • Posts: 199
  • Thank you received: 12
  • Hikashop Business
9 years 4 months ago #235222

I did some testing and I noticed that I have a filter module active on that page. Disabling the filter module removes the error. In the filter module the menu item id is link to the product display menu item as was created during the install. The menu item is active and shows all the products. I also got the same error when I create a menu type of View Shopping cart.

Hope this helps you investigating the error...

Last edit: 9 years 4 months ago by Rixters.

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 4 months ago #235226

Hi,

That's just a warning. Turn off the "error reporting" setting of the Joomla configuration and you won't see it.
We'll remove it with next version of HikaShop.
You can also change the line:
$app->getMenu()->setActive($oldActiveMenu->id);
to:
$app->getMenu()->setActive(@$oldActiveMenu->id);
in that file if you want to remove it.

For the URL, we can't do much. That's the URL of the Joomla user login page because you're trying to access a menu item which is only available to logged in users.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum