?
avatar ReLater
ReLater
29 Jul 2021

Steps to reproduce the issue

  • Issue should be fixed before test: #34964
  • Current nightly.
  • Activate error reporting in Joomla configuration: Maximum
  • Go to Menus > Manage.
  • Set filter on Administrator to create a backend menu.
  • Click button New.
  • Enter Title and Unique name.
  • Field Import a preset: Select Preset Alternative Main Menu.
  • Save & Close
  • Put a tick in front of the new menu to activate button Download as Preset and click on button.
  • Save XML file.
  • Open the exported XML file in an text editor

Expected result

  • No PHP warnings.

Actual result

First lines of exported file:

Warning</b>:  Undefined property: Joomla\CMS\Menu\AdministratorMenuItem::$class in /administrator/components/com_menus/src/View/Menu/XmlView.php on line 137

Warning:  Undefined property: Joomla\CMS\Menu\AdministratorMenuItem::$submenu in /administrator/components/com_menus/src/View/Menu/XmlView.php on line 175

Warning:  foreach() argument must be of type array|object, null given in /administrator/components/com_menus/src/View/Menu/XmlView.php on line 175
  • PHP 8.0.6 (Linux dd51328 5.4.0-80-generic # 90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 )
avatar ReLater ReLater - open - 29 Jul 2021
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jul 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Jul 2021
avatar alikon alikon - change - 30 Jul 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-07-30 13:19:44
Closed_By alikon
avatar alikon alikon - close - 30 Jul 2021
avatar alikon
alikon - comment - 30 Jul 2021

please test #34990

Add a Comment

Login with GitHub to post a comment