[4.0] Remove deprecated code in Joomla\CMS\Menu\MenuItem#26537
[4.0] Remove deprecated code in Joomla\CMS\Menu\MenuItem#26537wilsonge merged 33 commits intojoomla:4.0-devfrom SharkyKZ:j4/deprecated/MenuItem
Conversation
|
I have tested this item 🔴 unsuccessfully on 9137ad0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26537. |
|
On which page are you getting this? |
I was testing this on cloudaccess. And applied the patch. Once applied site became black. |
|
Do you have any 3rd party extensions installed? Maybe using Cloudbase template? |
No pure joomla 4 nightly build |
|
Should work now but don't test yet. Performance could be bad at the moment. |
|
OK, this can be tested now. |
|
Go to Components Dashboard.
|
|
Though maybe there's a better way to do this. In frontend it's much simpler. Only |
|
I have tested this item ✅ successfully on 0460dd6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26537. |
1 similar comment
|
I have tested this item ✅ successfully on 0460dd6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26537. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26537. |
If that works - and they are exactly the same thing (struggling to tell from a quick code review - I'd probably go down that route. Maybe revert the rename here https://github.com/joomla/joomla-cms/pull/26537/files#diff-1b5557519e9638a5bde91cf3432456dfR403 and then make that change in a separate PR? |
|
I think it's best to subclass |
|
Thanks! |
|
I have this kind of call in my component : Can-i call instead |
|
Yes, use |
|
Error: Cannot access protected property Joomla\CMS\Menu\MenuItem::$params: Cannot access protected property Joomla\CMS\Menu\MenuItem::$params Are these changes due to a bug on the frontend? |
|
@bugsmafia Are you using any 3rd party extensions? |
no, clean joomla 4 dev. |
|
On which pages does this error occur? |
|
|
/index.php?option=com_content&view=article&id=2&Itemid=103 |
|
I can't replicate this issue on current nightly (https://developer.joomla.org/nightly-builds.html) and on my git clone. If you upload a zip of your installation (only files, no database), I could take a look. |
write me bugsmafia@gmai.com or Telegram @bugsm yep, update only file (full pack), |
|
I Found the source of the problem in my template. |
Pull Request for Issue # .
Summary of Changes
Removes deprecated code from
Joomla\CMS\Menu\MenuItem.Testing Instructions
Install sample data or create some menu items.
Navigate frontend and backend.
Inspect menu items.
Expected result
Works like before.
Documentation Changes Required
Some methods removed.
Added
Joomla\CMS\Menu\AdministratorMenuItemclass.