Report reply mrc 0 Posted December 16, 2020 When setting a menu to use a Pages as the target, if that Page is deleted, the entire menu system will no longer display - on the site or in the ACP. When you try to edit the menu item with the missing page, it give this error: OutOfRangeException: (0) #0 /home/mysite/www.mysite.com/applications/cms/extensions/core/FrontNavigation/Pages.php(156): IPS\Patterns\_ActiveRecord::load('210') #1 /home/mysite/www.mysite.com/applications/cjmg/sources/Group/Menu.php(1381): IPS\cms\extensions\core\FrontNavigation\_Pages->link() #2 /home/mysite/www.mysite.com/system/Patterns/ActiveRecord.php(335): IPS\cjmg\Group\_Menu->get_link() #3 /home/mysite/www.mysite.com/applications/cjmg/sources/Group/Menu.php(428): IPS\Patterns\_ActiveRecord->__get('link') #4 /home/mysite/www.mysite.com/applications/cjmg/sources/Group/Menu.php(362): IPS\cjmg\Group\_Menu->configTab() #5 /home/mysite/www.mysite.com/system/Node/Controller.php(489): IPS\cjmg\Group\_Menu->form(Object(IPS\Helpers\Form)) #6 /home/mysite/www.mysite.com/init.php(820) : eval()'d code(24): IPS\Node\_Controller->_addEditForm(Object(IPS\cjmg\Group\Menu)) #7 /home/mysite/www.mysite.com/system/Node/Controller.php(388): IPS\Node\radtags_hook_C_NodeController->_addEditForm(Object(IPS\cjmg\Group\Menu)) #8 /home/mysite/www.mysite.com/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form() #9 /home/mysite/www.mysite.com/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute() #10 /home/mysite/www.mysite.com/applications/cjmg/modules/admin/menus/menus.php(92): IPS\Node\_Controller->execute() #11 /home/mysite/www.mysite.com/system/Dispatcher/Dispatcher.php(152): IPS\cjmg\modules\admin\menus\_menus->execute() #12 /home/mysite/www.mysite.com/admin/index.php(14): IPS\_Dispatcher->run() #13 {main} Is it possible there is no error checking to see if the destination page (id) actually exists? I can see in my db that CMS Page ID210 no longer exists and that is the ID the menu item is looking for. How ever, I wouldn't think it would break the menu system. In order to fix, I can re-create the menu or get into the database to change it. Quote Share this comment Link to comment
Report reply Guest Posted December 30, 2020 Changed Status from Pending to Closed Quote Share this comment Link to comment
Report reply Michael 263 Posted January 2, 2021 Changed Status from Closed to Work in Progress Quote Share this comment Link to comment
Report reply Guest Posted January 15, 2021 Changed Status from Work in Progress to No Response Quote Share this comment Link to comment