Page 1 of 1

[SOLVED] Aftre upgrading to 1.10.2 problem with menu

Posted: Wed Nov 23, 2011 11:44 am
by bobonov
so it seem there is some kind of bug as after upgrading to 1.10.2 (is possible that is present since 1.10 series but I find it now) I started to have problem in menu printout during the construction of some pages.

The error I get is
Fatal error: Call to a member function Active() on a non-object in /var/clients/client1/web2/web/modules/MenuManager/MenuManager.module.php on line 254

--

How to reproduce the issue
Doing a deeper investigation the issue is related to the position of deactivated menu entry. When before or after the page that is loaded there is a deactivate page you get the error.
The strange think is that in the preview (admin page editing) the page works, it is like if preview and website uses two different approach to printout menu entries.

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Fri Nov 25, 2011 7:30 am
by carasmo
Is there a way to fix this now without waiting for a 1.11 or 1.10.3?

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Fri Nov 25, 2011 9:06 am
by uniqu3
On a fresh 1.10.2 install i can not reproduce this.

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Sat Nov 26, 2011 7:42 pm
by meisterflexer
I can see the same thing - but interestingly only for some of my pages...

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Mon Nov 28, 2011 10:24 am
by bobonov
Yes is easy to fix, I posted the solution, a modification in the module code, but the admin deleted it as it is considered an hacks.

I opened a bug
http://dev.cmsmadesimple.org/bug/view/7238

the following solution is not tested but should work
If you can't delet the inactive pages (that was my case) you can try to create a dummy menu entry and uncheck the "Show in Menu:" in option tab, then move all the inactive pages under the dummy page.
As I wrote I didn't test it, I modified the module code, but I hope it works.

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Mon Nov 28, 2011 8:54 pm
by meisterflexer
Excellent, bobonov, works for me!

Re: Aftre upgrading to 1.10.2 problem with menu

Posted: Tue Nov 29, 2011 7:18 pm
by gianpiero
for deleting inactive pages make them active, then clean cache, then delete them
worked for me

gp

Re: [SOLVED] Aftre upgrading to 1.10.2 problem with menu

Posted: Thu Mar 01, 2012 7:57 pm
by Rolf
I am trying to reproduce this error on a new install 1.10.3 but I can't get it to fail ;)
The problem itself is valid because I have seen it on a website of mine...

Trying to narrow it down I need some info of you.

Please let me know the place of the deactived child page
What menu template do you use?
Upgraded website? Or new install?
perhaps anything else which could be related...

Thanks for your help

grtz. Rolf

Re: [SOLVED] Aftre upgrading to 1.10.2 problem with menu

Posted: Tue Mar 27, 2012 5:17 pm
by cvogt
I added reproduce steps and a patch to http://dev.cmsmadesimple.org/bug/view/7238 .

Re: [SOLVED] Aftre upgrading to 1.10.2 problem with menu

Posted: Tue Mar 27, 2012 5:21 pm
by calguy1000
This issue is already fixed for 1.11