Page 1 of 1

Template Problem after upgrade to 1.11 [SOLVED]

Posted: Sat Aug 11, 2012 4:02 pm
by kristy_lb
Hello,
This morning I upgraded an ancient version of CMSMS to 1.11 and I've been working through some bugs that just come from having older code. However, I'm having a problem with the global content block tag in my templates. I get this error on my main page:
OMG! You broke this page.
ERROR: at line 656 in file .../html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:

Message:

Syntax Error in template "tpl_body:31" on line 120 "{global_content name='footer'}" - Unexpected "'}



{global_content name='", expected one of: "}" , " " , ATTR
Here is my system information:
Cms Version: 1.11

Installed Modules:

CMSMailer: 5.2.1
FileManager: 1.4.0
MenuManager: 1.8.2
ModuleManager: 1.5.5
News: 2.12.7
Printing: 1.0.4
Search: 1.7.6
ThemeManager: 1.1.7
TinyMCE: 2.9.11
Captcha: 0.4.5
FrontEndUsers: 1.18.1
CustomContent: 1.8.3
SelfRegistration: 1.6.16
Jobs: 1.0
NMS: 1.0.3
FCKeditorX: 1.0.3
CGExtensions: 1.30
SiteMapMadeSimple: 1.2.1
MysqlDump: 1.2.4
FileBackup: 0.5
FormBuilder: 0.7.3
CGSimpleSmarty: 1.5.2
CMSPrinting: 1.0.2
MicroTiny: 1.2.3

Config Information:

php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 32000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.2.17
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 64M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 33M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.92
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages

Here is my template code:
*removed*

When I try to take out the global content block from the template, I hit submit to save it and then I get this error:

Code: Select all

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "template:appdata;tmp_template" on line 164 "$('#slider').nivoSlider({" - Unexpected "'} </div><!--news-sidebar--> </div><!--content-container--> <div class="clear"></div> </div><!--page-content--> </div><!--page-insideShadow-container-->	 </div><!--main-container--> <!-- ############################################ bottom shadow ################################################################ --> <div id="bottom-shadow"> <!-- image is assigned in CSS -->	 </div><!--bottom-shodow-->	 <div class="clear"></div> <!-- ################################################# footer ############################################################ --> <div id="footer-container"> <div id="footer"> </div> </div><!--footer-container--> <__script__ src="http://www.google-analytics.com/urchin.js" type="text/javasc in .../html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 656

If anyone has any ideas to try I would be glad to hear them!

Thank you.

Re: Template Problem after upgrade to 1.11

Posted: Sat Aug 11, 2012 4:11 pm
by calguy1000
As posted elsewhere... Smarty3 is much more fussy about syntax than smarty2 ever was.

Syntax Error in template "tpl_body:31" on line 120 "{global_content name='footer'}" - Unexpected "'}
On the template with id of 31... on the 120th line starting with </__body> there is a call to {global_content name='footer'}" with some quotes that don't match up or are extra.

Re: Template Problem after upgrade to 1.11

Posted: Sat Aug 11, 2012 4:22 pm
by kristy_lb
Thanks CalGuy.. but as far as I can tell I have the syntax exactly right in the template (that I posted above).
I have it like this:

Code: Select all

<div id="footer">
			{global_content name='footer'}
		</div>
Is there something I'm not seeing?

Re: Template Problem after upgrade to 1.11

Posted: Sat Aug 11, 2012 5:17 pm
by kristy_lb
Found the syntax problem here:

<h2>Events</h2>
{news number='3' summarytemplate='events-listings-sidebar' category='events*' detailtemplate='events-detail-template' detailpage="event-details"'}

Thanks!