Page 1 of 1

[Solved] Pages suddenly stopped generating menu links

Posted: Wed Oct 03, 2012 8:38 pm
by russellmasters
I have taken over hosting for a site running CMS Version
1.6.6 and as of yesterday the main menu links disappeared leaving only a link to the domain root url. I haven't included the actual domain name but happy to do so.

I have never used CMS made simple so am floundering a bit here but this is what I have so far.

Add to menu is enabled site wide and per page. Unchecking that does remove the menu item, checking it adds the menu item back but the url is for the domain not domain.co.nz/thepageitshouldbe

If however I type the actual url of any of the pages ie mydomain.co.nz/index.php?page=applications the url works and the page loads fine.

A quick debug reveals the following errors.
***************Start**************
string(186) "Smarty error: [in module_db_tpl:MenuManager;videokiosk line 14]: syntax error: unrecognized tag: $node-?phpMyAdmin=jMd7Y8Z4d-lZlDhUU%2CiEbldjrbc>url (Smarty_Compiler.class.php, line 446)"
Notice: Undefined offset: 1 in /var/www/vhosts/mydomain.co.nz/httpdocs/lib/smarty/Smarty_Compiler.class.php on line 449
string(136) "Smarty error: [in module_db_tpl:MenuManager;videokiosk line 14]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(186) "Smarty error: [in module_db_tpl:MenuManager;videokiosk line 20]: syntax error: unrecognized tag: $node-?phpMyAdmin=jMd7Y8Z4d-lZlDhUU%2CiEbldjrbc>url (Smarty_Compiler.class.php, line 446)"
Notice: Undefined offset: 1 in /var/www/vhosts/mydomain.co.nz/httpdocs/lib/smarty/Smarty_Compiler.class.php on line 449
string(136) "Smarty error: [in module_db_tpl:MenuManager;videokiosk line 20]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php,
***************End**************


The menu Template is
***************Start**************
{if $count > 0}
<ul>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}


{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="{$node->extra1}"><a href="{$node-?phpMyAdmin=jMd7Y8Z4d-lZlDhUU%2CiEbldjrbc>url}"><span class="hide">{$node->menutext}</span></a>

{* elseif $node->current == true}
<li class="{$node->extra1}">{$node->menutext *}

{else}
<li class="{$node->extra1}"><a href="{$node-?phpMyAdmin=jMd7Y8Z4d-lZlDhUU%2CiEbldjrbc>url}"><span class="hide">{$node->menutext}</span></a>

{/if}

{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
***************End**************

And here are the modules the site is currently using:

Installed Modules
CMSMailer
1.73.14
FileManager
1.0.1
MenuManager
1.6.2
ModuleManager
1.3.1
News
2.10.3
nuSOAP
1.0.1
Printing
1.0.4
Search
1.6.1
ThemeManager
1.1.1
TinyMCE
2.5.5
FrontEndUsers
1.6.11
CGExtensions
1.17.6
FormBuilder
0.6
CustomContent
1.5.3
Skeleton
1.7
StockOrders
1.7


I am on a fast learning curve as their developer is no longer available so look forward to learning more about CMS made Simple :)

Re: Pages suddenly stopped generating menu links

Posted: Thu Oct 04, 2012 3:26 am
by Dr.CSS
You really need to upgrade that site, all older versions have vulnerabilities in them...

Have no idea where this crap came from but it is why you have a problem...

?phpMyAdmin=jMd7Y8Z4d-lZlDhUU%2CiEbldjrbc

It should be...

href="{$node->url}"

Re: Pages suddenly stopped generating menu links

Posted: Thu Oct 04, 2012 8:57 pm
by russellmasters
Ok thanks, you've put me on the right track, much appreciated.