User tests: Successful: Unsuccessful:
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']);
Add a line at the beginning of the php file to import the MenusHelper.
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.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_menus |
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?
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?
I also cannot replicate the reported issue. Please can you recheck that the issue exists in a clean install of the current release
Status | Pending | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed - Unconfirmed Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-16 03:47:00 |
Closed_By | ⇒ | franz-wohlkoenig |
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 |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20343
Closed as "Unconfirmed Report". It will be reopened if needed.
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.