Page 1 of 1

class.cms_tree_operations.php Error

Posted: Wed Dec 13, 2017 8:23 pm
by wms
Hi,

I have a site that is getting the following error message when trying to launch the site:
Error: at line 106 in file /home/kac/public_html/lib/classes/class.cms_tree_operations.php:
Below is the trace message:
#0 /home/kac/public_html/lib/classes/class.contentoperations.inc.php(104): cms_tree_operations::load_from_list(Array)
#1 /home/kac/public_html/lib/classes/internal/class.global_cachable.php(24): ContentOperations::{closure}()
#2 /home/kac/public_html/lib/classes/internal/class.global_cache.php(26): CMSMS\internal\global_cachable->fetch()
#3 /home/kac/public_html/lib/classes/class.CmsApp.php(462): CMSMS\internal\global_cache::get('content_tree')
#4 /home/kac/public_html/lib/classes/class.contentoperations.inc.php(242): CmsApp->GetHierarchyManager()
#5 /home/kac/public_html/index.php(81): ContentOperations->LoadContentFromAlias('1', true)
#6 {main}

In the Admin area, below is the error message while trying to access the Content Manager:
Problem with internal content organization... could not get a parent node for content with id 143

This site is running the latest version of CMSMS and all modules are upgraded to the latest version.

I've check the follow thread and tried this to no avail: http://dev.cmsmadesimple.org/bug/view/11612

The home page has a parent_id of -1

Any suggestions or help would be much appreciated.

Thanks,

Re: class.cms_tree_operations.php Error

Posted: Wed Dec 13, 2017 11:55 pm
by velden
I guess you should check the page with id = 143 in your case?

Re: class.cms_tree_operations.php Error

Posted: Thu Dec 14, 2017 1:05 pm
by wms
Thank you for the quick reply. It was that page id 143 with the issue. The client mixed up some navigation thing he was playing around with.

I haven't played much in phpMyAdmin so I wasn't too sure what to do, but your suggestion helped.

Here is how I fixed the issue:
1) I deleted the page id 143 entry in phpMyAdmin (the page the client created with the navigational issues)
2) logged into the admin area of the site
3) System Maintenance > Cache and Content (tab) > Update page hierarchy positions (button)

And volia, that did the trick.

Thanks for the suggestion about the page id.

Issue solved.