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

geri108
11 Posts
geri108 posted this 18 April 2022

Hi!
I'm getting the following error message all the time.
"0 - Cannot access protected property joomla\CMS\Menu\MenuItem::$params"
The latest Joomla 4 is up. I tried to reinstall the template extension. I tried to create a new menu, a new module, but always the same result.
What can I do to fix the problem?

Hi! I'm getting the following error message all the time. "0 - Cannot access protected property joomla\CMS\Menu\MenuItem::$params" The latest Joomla 4 is up. I tried to reinstall the template extension. I tried to create a new menu, a new module, but always the same result. What can I do to fix the problem?
Vote to pay developers attention to this features or issue.
6 Comments
Order By: Standard | Newest
geri108
11 Posts
geri108 posted this 18 April 2022

I realized that if I turn off the menu module (vmenu), the template will appear.
However, if I turn off the module, there is no menu.

I realized that if I turn off the menu module (vmenu), the template will appear. However, if I turn off the module, there is no menu.
Support Team
Support Team posted this 19 April 2022

Hello,

You use a separate Joomla 4 Beta theme, right? Unfortunately, there are still several known issues that are not fixed in this theme version. For production websites we recommend to use temporarily Joomla 4 and PHP 7.x.

Sincerely,
Nettie

Hello, You use a separate Joomla 4 Beta theme, right? Unfortunately, there are still several known issues that are not fixed in this theme version. For production websites we recommend to use temporarily Joomla 4 and PHP 7.x. Sincerely, Nettie
tamas
29 Posts
tamas posted this 4 weeks ago

Hello

that's my problem too. If I activate a hmenu position or any new position. then the page will not work. I didn't buy it so it couldn't be used. please help

Hello that's my problem too. If I activate a hmenu position or any new position. then the page will not work. I didn't buy it so it couldn't be used. please help

Last edited 4 weeks ago by tamas

Support Team
Support Team posted this 4 weeks ago

Hello,

The issue with Joomla 4 and menus will be fixed in the future and included into the updated theme for Joomla 4. We will let you know when there are any news about it.

Sincerely,
Nettie

Hello, The issue with Joomla 4 and menus will be fixed in the future and included into the updated theme for Joomla 4. We will let you know when there are any news about it. Sincerely, Nettie
tamas
29 Posts
tamas posted this 3 weeks ago

Hello

I see. but it is already out of the compatibility list that works with it. I bought it for that. How long to wait? i can't work until then. will my license be extended?

Thanks

Hello I see. but it is already out of the compatibility list that works with it. I bought it for that. How long to wait? i can't work until then. will my license be extended? Thanks

Last edited 3 weeks ago by tamas

celinem
9 Posts
celinem posted this yesterday

Impossible d'accéder à la propriété protégée Joomla\CMS\Menu\MenuItem::$params

Ce bogue est basé sur le passage à l'utilisation de objet protégées (params:protected). Le problème est connu depuis un certain temps et il y a également eu des demandes pour sécuriser la mise à jour de l'ancienne procédure : https://issues.joomla.org/tracker/joomla-cms/30463

Par conséquent, ceux-ci ne sont plus accessibles comme d'habitude. La variante bien connue ressemble à ceci :

$item->params->get('aliasoptions');

Modifiez les codes comme suit :

(int) $item->getParams()->get('aliasoptions');

Mais où modifier cette variable !?????

Merci pour la réponse

Impossible d'accéder à la propriété protégée Joomla\CMS\Menu\MenuItem::$params Ce bogue est basé sur le passage à l'utilisation de objet protégées (params:protected). Le problème est connu depuis un certain temps et il y a également eu des demandes pour sécuriser la mise à jour de l'ancienne procédure : https://issues.joomla.org/tracker/joomla-cms/30463 Par conséquent, ceux-ci ne sont plus accessibles comme d'habitude. La variante bien connue ressemble à ceci : $item->params->get('aliasoptions'); Modifiez les codes comme suit : (int) $item->getParams()->get('aliasoptions'); Mais où modifier cette variable !????? Merci pour la réponse ----
You must log in or register to leave comments