User tests: Successful: Unsuccessful:
The include helper path in com_menus item, com_users debuguser and com_users debuggroup is not correct and when loading the model will generate a php fatal error.
JLoader::register('MenusModelItem', JPATH_ADMINISTRATOR . '/components/com_menus/models/item.php');
$model = JModelLegacy::getInstance('Item', 'MenusModel', array('ignore_request' => true));
JLoader::register('UsersModelDebugUser', JPATH_ADMINISTRATOR . '/components/com_users/models/debuguser.php');
$model = JModelLegacy::getInstance('DebugUser', 'UsersModel', array('ignore_request' => true));
JLoader::register('UsersModelDebuggroup', JPATH_ADMINISTRATOR . '/components/com_users/models/debuggroup.php');
$model = JModelLegacy::getInstance('Debuggroup', 'UsersModel', array('ignore_request' => true));
Warning: require_once(/path/to/joomla-staging/administrator/components/com_xxxxxx/helpers/menus.php): failed to open stream: No such file or directory in /path/to/joomla-staging/administrator/components/com_menus/models/item.php on line 15
Fatal error: require_once(): Failed opening required '/path/to/joomla-staging/administrator/components/com_xxxxxx/helpers/menus.php' (include_path='/path/to/joomla-staging/') in /path/to/joomla-staging/administrator/components/com_menus/models/item.php on line 15
This problem was discovered when trying to load the menu items model in the GsoC 2016 Improved Multi-lingual Content Management
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-17 17:05:19 |
Closed_By | ⇒ | andrepereiradasilva |
@infograf768 @jreys @alikon please test