Page 1 of 1

[fixed] Fatal Error after deleting pages

Posted: Tue May 27, 2014 12:16 pm
by milehigh
Fatal error: Call to a member function get_parent() on a non-object in /home/m6digita/public_html/modules/CMSContentManager/lib/class.ContentListBuilder.php on line 452

It looks like when the page was deleted, the parent page wasn't deleted out of the cms_userprefs table so when the list is reloaded after deleting it it doesn't exist and $parent is empty.

To duplicate, I was deleting a page that had one child page. I selected the Parent page and Deleted it. It prompted me to delete the parent and the child page, I confirmed and hit submit. The pages did delete but then I couldn't get back into the CMSContentManager without that fatal error.

To duplicate the error, you must have the pages expanded before deleting the parent.


Line 452
$parent = $node->get_parent();
Line 453
$parent_id = $parent->get_tag('id');

Re: Fatal Error after deleting pages

Posted: Tue May 27, 2014 4:06 pm
by calguy1000
fixed in svn, thanks.