Page 1 of 1

[solved] error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 8:14 pm
by ODF
The upgrade went good but after a refresh I get this error:
Error: at line 702 in file /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Full trace:

Code: Select all

#0 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error()
#1 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '%')
#2 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '%')
#3 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('&nbsp;??<div st...')
#4 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#5 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#6 /www/htdocs/***/cmsms/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('globalcontent:f...', 'p15', NULL, NULL, false, false, false)
#7 /www/htdocs/***/cmsms/plugins/function.global_content.php(23): Smarty_CMS->fetch('globalcontent:f...')
#8 /www/htdocs/***/cmsms/tmp/templates_c/05f8bb99cae7f5f57f0441f1c827811819047666.tpl_body.15.php(100): smarty_function_global_content(Array, Object(Smarty_Internal_Template))
#9 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_50d0cbc0e521b8_41993057(Object(Smarty_Internal_Template))
#10 /www/htdocs/***/cmsms/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('tpl_body:15', 'p15', NULL, NULL, false, false, false)
#11 /www/htdocs/***/cmsms/index.php(236): Smarty_CMS->fetch('tpl_body:15')
#12 {main}#0 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error()
#1 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '%')
#2 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '%')
#3 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('&nbsp;??<div st...')
#4 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#5 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#6 /www/htdocs/***/cmsms/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('globalcontent:f...', 'p15', NULL, NULL, false, false, false)
#7 /www/htdocs/***/cmsms/plugins/function.global_content.php(23): Smarty_CMS->fetch('globalcontent:f...')
#8 /www/htdocs/***/cmsms/tmp/templates_c/05f8bb99cae7f5f57f0441f1c827811819047666.tpl_body.15.php(100): smarty_function_global_content(Array, Object(Smarty_Internal_Template))
#9 /www/htdocs/***/cmsms/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_50d0cbc0e521b8_41993057(Object(Smarty_Internal_Template))
#10 /www/htdocs/***/cmsms/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('tpl_body:15', 'p15', NULL, NULL, false, false, false)
#11 /www/htdocs/***/cmsms/index.php(236): Smarty_CMS->fetch('tpl_body:15')
#12 {main}

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 8:22 pm
by calguy1000
One of your GCB's has an error.

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 9:11 pm
by ODF
But what is a GCB?!

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 9:13 pm
by Jo Morg
It's a Global Content Block.

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 9:34 pm
by ODF
This is the error message from my footer content block:
Syntax Error in template "globalcontent:footer" on line 2 "<div style="text-align: center;"><font face="Verdana"><font size="1"> <span style="font-weight: bold; color: rgb(57, 123, 148);">-= *** &copy;1985 - {current_date format=%Y} / KvK <a href="https://server.db.kvk.nl/TST-BIN/FU/TSWS001@?BUTT=***" target="_blank">***</a> / <a href="http://www.cmsmadesimple.org" target="_blank">CMSMS v{cms_version}</a> =-<br />" - Unexpected "%"
And this is the footer html code:

Code: Select all

&nbsp;
<div style="text-align: center;"><font face="Verdana"><font size="1"> <span style="font-weight: bold; color: rgb(57, 123, 148);">-= ***  &copy;1985 - {current_date format=%Y} / KvK <a href="https://server.db.kvk.nl/TST-BIN/FU/TSWS001@?BUTT=***" target="_blank">***</a> / <a href="http://www.cmsmadesimple.org" target="_blank">CMSMS v{cms_version}</a> =-<br />
<br />
</span>
</font>
<object width="600" height="25" align="middle" id="footer_runner">
<param name="movie" value="uploads/Flash/footer_runner.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<div style="text-align: center;"><object width="600" height="25" align="middle" id="footer_runner"> <embed width="725" height="25" align="middle" src="uploads/Flash/footer_runner.swf" quality="high" wmode="transparent" name="footer_runner" type="application/x-shockwave-flash" play="true" loop="true" menu="true"></embed>
</object></div>
&nbsp;
It worked fine in 1.10.x, so what is the difference in 1.11.x?!

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 9:42 pm
by Jo Morg
Help for the current_date tag wrote:Help for the current_date tag
Deprecated

use {$smarty.now|cms_date_format}
I believe that should be the issue...

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 10:14 pm
by ODF
It works again, thank you.

Re: An error message after upgrade to 1.11.4 from 1.10.3

Posted: Tue Dec 18, 2012 11:36 pm
by Jo Morg
You are welcome.
Please mark as [solved].