Menu Manager Problem?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
richard_olivey

Menu Manager Problem?

Post by richard_olivey »

I wonder if any one can help me here.

Editing content on a page and after clicking on submit the browser just sat there doing nothing until PHP timed out, after 30 secs.

Now when I try and access the site I get the following erros

Code: Select all

Fatal error: Call to a member function on a non-object in /home/sites/fcactivity/www/modules/MenuManager/MenuManager.module.php on line 166
This happens on the front end of the site and I get the following error on the backend when trying to edit pages.

Code: Select all

Fatal error: Call to a member function on a non-object in /home/sites/fcactivity/www/admin/listcontent.php on line 585
php.ini settings

max_execution_time = 30    ; Maximum execution time of each script, in seconds
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M      ; Maximum amount of memory a script may consume (8MB)

I've now increased these to 45,60,24 but this has made no difference.

The site is running one 1.0-beta4.

Has any one any ideas as to whats going on here? I'm not really sure of the best place to look.

Many Thanks

Richard
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Menu Manager Problem?

Post by tsw »

First try clearing the cache, it might solve your problem.

there might have been some network glitch just when you pressed submit...
richard_olivey

Re: Menu Manager Problem?

Post by richard_olivey »

Wierd on this,

We've now fixed this. What looked to happen was the while the CMS is building a tree of page/child relationship, ready for the Menu, it was failing to find a parent page.

Looking to this it looked like a page had been removed from the content table which had children attached to it. This then failed when building the menu. To fix this I created copied an existing page and renamed the ID to be the missing parent. This then allowed us to edit the page. In this case delete it from the site

This might not have been the best way to get it back up and running but it now works. Just hope this might help someone if this happens to them.

Rich
Post Reply

Return to “Developers Discussion”