?
avatar ced1870
ced1870
24 Aug 2020

Steps to reproduce the issue

try to access the params of a menu item using $item->params->get(...)
the item is loaded using
$items = $menu->getItems('menutype', $params->get('menutype'));

Expected result

to get the param value

Actual result

site crash

System information (as much as possible)

it was working in joomla 3, does not work in joomla 4 beta 3

I see in the mod_menu that it uses that :
$itemParams = $item->getParams();

but doing this, it will break all existing layouts from extension where the $item->param is used to get the values.

This is a BIG problem and the $item->params->get('value') shall work in any cases as before

Additional comments

this problem totally crashes the page as soon as the module is published

avatar ced1870 ced1870 - open - 24 Aug 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Aug 2020
avatar chmst chmst - change - 24 Aug 2020
Priority Critical Medium
avatar SharkyKZ
SharkyKZ - comment - 24 Aug 2020

This has been deprecated since 3.7.0. The removal in 4.0 has been documented https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4#JMenuItem.

Closing as expected behavior.

avatar SharkyKZ SharkyKZ - close - 24 Aug 2020
avatar SharkyKZ SharkyKZ - change - 24 Aug 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-08-24 15:21:08
Closed_By SharkyKZ

Add a Comment

Login with GitHub to post a comment