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

Hi,
I use Joomla 4 and I get this error when using the accodeon menu.:
Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

What can I do about it?

It happens with the cassiopeia template and also with a template with the Helix framework (2 and 3)
I updated the site from Joomla 3 to Joomla 4. I removed the accordeon menu in j3, and installed the newest version in the J4 .

Thanks!
by nanbdj

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

Hi
I have tested again the pro and the light version on the latest joomla 4, I don't have the issue
Please tell me if you are using a specific source for your menu, or "menu" (joomla menu) as source

CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by nanbdj on topic Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

Posted 2 years 5 months ago #62899
Hi,
I use a Joomla menu as source, but not the main menu. I used a another menu. I noticed, that if I choose the main menu it did work. How strange..
A second thing I noticed, is that when I want to asign it just to the homepage ( only the page selected) the check boxes are disappeared. See the attachment.
by nanbdj
Attachments:

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

interesting ...
what could be specific in your other menu ? can you try to disable each menu item one by one in this menu ? may be related to a menu item type, or a specific setting
for the checkboxes I have noted that, I will check

Joomlack Webmaster and Developer

by ced1870

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

Replied by nanbdj on topic Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

Posted 2 years 5 months ago #62904
Good tip.
I dicovered that the menu items to a menu item alias gave the problems.
Last Edit:2 years 5 months ago by nanbdj
Last edit: 2 years 5 months ago by nanbdj.

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

thanks, I will check that !

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: nanbdj

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

Time to create page: 0.784 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1356 guests and no members online