Category Listing with nested Categories in menu bug in Joomla 4

  • Posts: 43
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #335412

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 4
-- PHP version -- : 4.0.2
-- Browser(s) name and version -- : Firefox 84.0.2
-- Error-message(debug-mod must be tuned on) -- : Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

Hi there,

I'm getting this error

Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

This started to happening after I created sub menu items of child category of hikashop.

Thanks,
Tiago

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

  • Posts: 83894
  • Thank you received: 13581
  • MODERATOR
3 years 8 months ago #335414

Hi,

Please activate the "debug system" setting of the Joomla configuration and try again.
You should then get an error message which more information on what's going on. That will help us find the issue and provide a fix.

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

  • Posts: 43
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #335436

Hi Nicolas,

I activated. To replicate this bug, install a fresh Joomla 4, install hikashop. Create a menu Category Listing, then create a sub category menu item for a child category and you will get this error.

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

  • Posts: 43
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #335437

If I unpublish the sub menu items the main Category Listing will work again.
Maybe this helps

issues.joomla.org/tracker/joomla-cms/26537

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

  • Posts: 83894
  • Thank you received: 13581
  • MODERATOR
3 years 8 months ago #335439

Hi,

Thanks for activating the debug mode on your test website. I just needed that. The issue on the joomla tracker is not relevant.
The error is caused by the support of Joomla 2.5. I just had to make a condition based on the Joomla version to access the menu item parameters where the problem is, like we already have in other places.
I've added the patch on our end.
Just download the install package of HikaShop 4.4.3 on our website and install it on yours and you'll have the patch added automatically and it will then work fine.

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

  • Posts: 43
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #335446

Perfect Nicolas, thanks for your help

The following user(s) said Thank You: Philip

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

Time to create page: 0.058 seconds
Powered by Kunena Forum