Page 1 of 1

[SOLVED] Menu broken after upgrade to 1.11.2

Posted: Tue Oct 16, 2012 1:27 pm
by asdf
I upgraded from 1.10.3 to 1.11.2 using cmsmadesimple-1.11.2-english.tar.gz and ran install/upgrade.php afterwards. Checksums are fine and there is no files from the earlier version.

I have two menus, one on the top, {menu template="top-navi" number_of_levels="1"}, works as before. But the second one, on the side column, {menu template="right-navi" start_level="2"}, does not work anymore.

It produces an error page saying

Code: Select all

Syntax Error in template "module_db_tpl:MenuManager;right-navi"  on line 16 "<li><a class="active" href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>"  - Unexpected "active", expected one of: "}" , " " , ATTR
If class="active" is deleted from the menu template it says

Code: Select all

Syntax Error in template "module_db_tpl:MenuManager;right-navi"  on line 16 "<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>"  - Unexpected "{", expected one of: "}" , " " , ATTR
Only fix I found is to disable "show in menu" and add a link from the content which is not a proper solution. This is probably something that the new Smarty causes but I'm unable to figure it out.

CGExtensions 1.31.1
CGFeedMaker 1.0.17
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7
TinyMCE 2.9.11

Re: Menu broken after upgrade to 1.11.2

Posted: Tue Oct 16, 2012 1:37 pm
by uniqu3
Means that somewhere in your MenuManager Template you have { where it doesn't belong to or unclosed smarty tag, variable missing } where Smarty expects to be a valid tag, variable, function but it isn't.

Re: Menu broken after upgrade to 1.11.2

Posted: Tue Oct 16, 2012 1:43 pm
by asdf
Thanks, I had gone through them but everything was ok. But there was indeed a quote missing earlier in the template. Seems the previous version was more forgiving.

{repeat string="</li></ul> times=$node->prevdepth-$node->depth}