CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6515] Menu Manager throws a Fatal Error

avatar
Created By: Joeri (joeri210)
Date Submitted: Wed May 25 02:32:59 -0400 2011

Assigned To:
Version: 1.9.4.1
CMSMS Version: None
Severity: Minor
Resolution: Awaiting Response
State: Closed
Summary:
Menu Manager throws a Fatal Error
Detailed Description:
Error thrown:
"Fatal error: Call to a member function Active() on a non-object in D:\My
Webs\www\modules\MenuManager\MenuManager.module.php on line 261"

This happened after creating a new page, first time I have seen this.

Solved it by replacing in MenuManager.module.php (line 261):
if( $tmpc->Active() && $tmpc->ShowInMenu() )

with:
if( isset($tmpc) && $tmpc->Active() && $tmpc->ShowInMenu() )


History

Comments
avatar
Date: 2011-06-15 16:01
Posted By: Robert Campbell (calguy1000)

The problem is not menu manager, it was that you were able to create a page that
it could not detect when it needed to query the menu.

Pleaee provide concise instructions to reliably reproduce this error because it
probably means something more serious is happening that we should address.
      
avatar
Date: 2011-07-07 01:47
Posted By: Joeri (joeri210)

Hey Robert,

I have no idea either. I was not able to reproduce it. It was suddenly there,
and I have never seen it before. So guess something went wrong with writing
values. Keep you posted if I find a way to reproduce it.
      
avatar
Date: 2011-08-14 04:46
Posted By: delaunay (pierrepercee)

Same issue for me, very strange. I work on the same site on two PC. I restore my
database (i have done this many times on the same sites without any problems) an
then the error occures. (1.9.4.2). But i do not create a new page... Simply
after restoring my database...
      
avatar
Date: 2011-10-12 04:37
Posted By: jeroen (earth)

Happened to me aswell, after restoring database. I didnt create any new pages,
however, the solution for me was the fact that I didnt install the content
aliases module. I had redirect pages, which didnt show up in my content
overview. They showed up after installing the module and the frontend worked. No
need to edit the php for me.
      
avatar
Date: 2011-10-29 14:31
Posted By: Robert Campbell (calguy1000)

no response in ~5 months.
      
avatar
Date: 2012-03-02 08:39
Posted By: nic mare (nicmare)

same problem here with 1.10 and 1.10.3. nothing changed. suddenly on one day,
the error appeared. just changed the line as described above and now it works.
thanks!
      
avatar
Date: 2012-06-18 10:35
Posted By: Alex Dittrich (faglork)

1.10.3 - Problem appeared when setting a page to "not active". The parent page
produced the error as described above.

Fixed it as described above. Thanks!
Alex
      
Updates

Updated: 2011-10-29 14:31
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-06-15 16:01
resolution_id: 5 => 10

Updated: 2011-05-25 02:33
version_id: 28822 => 28949
resolution_id: => 5