Page 1 of 1

GBC with {menu} and {search} calls = error when editing page

Posted: Tue Jul 02, 2013 7:15 pm
by Evoken
First here is the complete error I am given whenever i click on a page to edit it on the backend:
"Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "globalcontent:header_navigation" on line 29 "{menu childrenof=socios}" unknown tag "menu"' in /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:702 Stack trace: #0 /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(488): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "me...', 29) #1 /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('menu', Array) #2 /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #3 /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #4 /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smart in /home/jcpdr/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 702"

While I am given this error on the backend, the page works without problems on the frontend. The cause of the error as far as I can tell is related to both the {menu} and {search} module calls in my header_navigation GBC. If I remove the calls to {menu}, it throws the same error due to the {search} tag, but if I remove both, it doesn't throws the error and I can edit pages. But then again, it won't show items on the front end. Here is the code in said content block:

Code: Select all

<!--  ========== Header & Navigation ==========  -->
<header>
  <div class="content">
    <h1>
      {if $page_lang == 'es'}
      {cms_selflink page='espanol' text='JCP'}
      {else}
      {cms_selflink page='english' text='JCP'}
      {/if}
    </h1>

    <nav>

      {global_content name='mobile_nav'}

      <!-- Nav -->

      <ul class="nav">

        {* SPANISH NAV *}

        {if $page_lang == 'es'}
        <li>{cms_selflink page='la-firma'}</li>
        <li>
          {cms_selflink page='abogados'}
          <div class="navsub partners">
            <div class="block">
              <p>Socios</p>
              {menu childrenof=socios}
            </div>

            <div class="block">
              <p>Asociados</p>
              {menu childrenof=asociados}
            </div>
          </div>
        </li>
        <li>
          {cms_selflink page='industrias-y-practica'}
          <div class="navsub areaspractica">
            <div class="block">
              <p>Industrias y Areas de Práctica</p>
              {menu start_element="2.4"}
            </div>
          </div>
        </li>
        <li>{cms_selflink page='noticias'}</li>
        <li>{cms_selflink page='contacto'}</li>

        {else}

        {* ENGLISH NAV *}

        <li>{cms_selflink page='the-firm'}</li>
        <li>
          {cms_selflink page='lawyers'}
          <div class="navsub">
            <div class="block partners">
              <p>Partners</p>
              {menu childrenof=partners}
            </div>

            <div class="block">
              <p>Associates</p>
              {menu childrenof=associates}
            </div>
          </div>
        </li>
        <li>
          {cms_selflink page='industries-practice'}
          <div class="navsub areaspractica">
            <div class="block">
              <p>Industries & Practice Areas</p>
              {menu start_element="3.4"}
            </div>
          </div>
        </li>
        <li>{cms_selflink page='news'}</li>
        <li>{cms_selflink page='contact-us'}</li>
        {/if}

        {if $page_lang == 'es'}
          <li class="lang"><a href="{cms_selflink href=$en_alias}"><i class="icon-flag"></i> English</a></li>
        {else}
          <li class="lang"><a href="{cms_selflink href=$es_alias}"><i class="icon-flag"></i> Español</a></li>
        {/if}
      </ul>

    </nav><!-- /nav  -->

    {global_content name='search_webmail'}
    
  </div>
</header><!-- /header -->
Any help is appreciated! I am using CMS Made Simple v1.11.7 under PHP 5.3.14. Here is a list of the modules I have installed:

AdvancedContent 0.9.4.3
CGBlog 1.9.12
CGExtensions 1.35
CGSimpleSmarty 1.6.2
CGSmartImage 1.10.10
CMSMailer 5.2.1
CMSPrinting 1.0.4
FileManager 1.4.3
FormBuilder 0.7.3
Gallery 1.6.1
ListIt2 1.4
MenuManager 1.8.5
MicroTiny 1.2.5
ModuleManager 1.5.5
News 2.12.12
Search 1.7.8
ThemeManager 1.1.8

Re: GBC with {menu} and {search} calls = error when editing

Posted: Tue Jul 02, 2013 7:22 pm
by calguy1000
Is this in a regular content page or in advanced content. Please eliminate the obvious question.

Re: GBC with {menu} and {search} calls = error when editing

Posted: Tue Jul 02, 2013 7:32 pm
by Evoken
calguy1000 wrote:Is this in a regular content page or in advanced content. Please eliminate the obvious question.
I get the error with both, Content and Advanced Content pages. I tried changing them back and forth thinking this was the issue. But nope.

I can't even create a new page (Add New Content) or duplicate a page as it throws the same error.

However, if the page I am trying to edit is an Internal Page Link or a Section Header, it opens without problems.

Re: GBC with {menu} and {search} calls = error when editing

Posted: Tue Jul 02, 2013 8:06 pm
by Evoken
Solved the issue by downgrading the AdvancedContent module from 0.9.4.3 to 0.9.4 BETA.

Thanks for the help!