Pending

User tests: Successful: Unsuccessful:

avatar Sophist-UK
Sophist-UK
10 May 2018

Attempt to install presets to (Admin) menu and get fatal error: "Class 'MenusHelper' not found" in /administrator/components/com_menus/controllers/menu.php at line 136:

MenusHelper::installPreset($preset, $data['menutype']);

Summary of Changes

Add a line at the beginning of the php file to import the MenusHelper.

Testing Instructions

Attempt to install presets without this fix, get fatal error, presets not installed.

Attempt to install presets with this fix, no fatal error, presets are installed.

Documentation Changes Required

None.

avatar Sophist-UK Sophist-UK - open - 10 May 2018
avatar Sophist-UK Sophist-UK - change - 10 May 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2018
Category Administration com_menus
avatar ReLater
ReLater - comment - 10 May 2018

I cannot confirm this issue with Nightly Build of 3.8.8-dev, 2018-05-09. No problems to import presets "Joomla" or "Modern" in new administrator menus.

avatar Sophist-UK
Sophist-UK - comment - 11 May 2018

I can only say that on my test Joomla instance I had the problem and this fixed it.

It is possible that I have disabled some extensions, one of which would have already loaded the helper if it was enabled. I note that it is loaded in MenuItemField.php and I have Fields disabled both in global settings and by disabling the extensions.

I also note that the Hathor admin template might be loading this. If you tested it using Hathor, can you try it under Isis?

avatar Sophist-UK
Sophist-UK - comment - 11 May 2018

Besides which, isn't it good style to include the helper file in every php file that uses it so that you can be sure that it has been loaded and avoid these sorts of issues?

avatar brianteeman
brianteeman - comment - 22 May 2018

I also cannot replicate the reported issue. Please can you recheck that the issue exists in a clean install of the current release

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 May 2018
Status Pending Information Required
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Jun 2018
Status Information Required Closed - Unconfirmed Report
Closed_Date 0000-00-00 00:00:00 2018-06-16 03:47:00
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jun 2018
Status Closed - Unconfirmed Report Closed
Closed_Date 2018-06-16 03:47:00 2018-06-16 03:47:01
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 16 Jun 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 16 Jun 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

Closed as "Unconfirmed Report". It will be reopened if needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20343.

Add a Comment

Login with GitHub to post a comment