[SOLVED] Menu broken after upgrade to 1.11.2

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

[SOLVED] Menu broken after upgrade to 1.11.2

Post 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
Last edited by asdf on Tue Oct 16, 2012 1:43 pm, edited 2 times in total.
uniqu3

Re: Menu broken after upgrade to 1.11.2

Post 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.
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

Re: Menu broken after upgrade to 1.11.2

Post 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}
Post Reply

Return to “CMSMS Core”