Page 1 of 1

[SOLVED] Error in smarty_internal_templatecompilerbase.php

Posted: Wed Jan 29, 2014 12:37 pm
by rfuste
Hello,

My client, running cmsmadesimple 1.11, recently made an update to her homepage and it gave her an OMG error message page (I had never seen that OMG syntax in the error page before). So the first thing I did just now is upgrade her CMS to the latest 1.11.9, after having upgraded all modules and backing up.

The homepage continues giving me the same error message, here it is in its entirity:

Code: Select all

ERROR: at line 709 in file /homepages/18/d241907796/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:

Message:

Syntax Error in template "content:Services"  on line 3 "v\:* {behavior:url(#default#VML);}"  - Unexpected ":", expected one of: "}" , " " , ATTR
I haven't looked at the client's template in a while, so I'm wondering if it's related to a deprecated tag of some sort? Here's the template running the homepage:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Adams Therapeutic Massage :: {title}</title>
{metadata}
{cms_stylesheet}
</head>

</__body>
 	<div id="container">
		<div id="header">
    		<div id="logo"><a href="/"><img src="/uploads/images/logo.gif" alt="Home" border="0" /></a> 
    		</div>
			<div id="search">
				<span>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td valign="top">{global_content name="search_left"}</td>
							<td valign="top">{global_content name="search_right"}</td>
						</tr>
					</table>
				</span>
			</div>
		</div>
		<div id="body">
			<div id="nav">
				{cms_module module='menu' template="adams"}
				<div id="logos" align="center">
					<img src="/uploads/images/american_massage_ther_assn.gif" border="0" /><br/><br />
					<img src="/uploads/images/ncbtmb.gif" border="0" /><br />
				</div>
			</div>
			<div id="content"><div id="homepage">
				<!-- <table width="99%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="left" class="body"><h1>{title}</h1>
						</td>
						<td align="right" valign="top">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td align="right" style="text-align:right;" valign="middle"><div class="print">{print popup="true" script="true" showbutton="false" text="Print page"} &nbsp;{print popup="true" script="true" showbutton="true"}</div></td>
									<td align="right" valign="top"></td>
								</tr>
							</table>
						</td>
					</tr>
				</table> -->
				<h1>{content}</h1>
				<img src="/uploads/images/banner_homepage.jpg" border="0" /><br />
				<div id="services">
					{content block="Services"}
				</div>
				<div id="testimonies">
					{content block="Testimonies"}
				</div>
				<br clear="all">
				<!-- <div id="top"><span class="print">{print popup="true" script="true" showbutton="true"}</span>
			 	</div> -->
			</div></div>
		</div>
		<div id="footer">
			<div id="footer_left">
				{global_content name='footer_left'}
			</div>
			<div id="footer_right">
				{global_content name='footer_right'}
			</div>
		</div>
	</div>
<!-- (global_content name='google_analytics') -->
<__body>
</__html>
Again, the CMS version is the latest 1.11.9, running on php5.4 and mySQL5.

Where should I begin in my troubleshooting? I don't have programming skills, so any help would be appreciated.

Thanks so much!
Robert

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Posted: Wed Jan 29, 2014 12:39 pm
by rfuste
Looking at the code I just inserted above, I'm not sure why it's displaying the funky extra underscores before the opening and closing </__body> and <__html> tags... it is properly written in the actual CMS template interface.

Thanks again for your help!
Robert

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Posted: Wed Jan 29, 2014 1:25 pm
by Jo Morg
rfuste wrote:Looking at the code I just inserted above, I'm not sure why it's displaying the funky extra underscores before the opening and closing </__body> and <__html> tags... it is properly written in the actual CMS template interface.
It's a forum script function to avoid weird formatting of the forum pages.
rfuste wrote:Syntax Error in template "content:Services" on line 3 "v\:* {behavior:url(#default#VML);}" - Unexpected ":", expected one of: "}" , " " , ATTR
This may be in a template or in a GCB named content:Services on line 3?

PS: Yes there is a {content block="Services"}... check it's contents, particularly line 3 syntax.

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Posted: Wed Jan 29, 2014 1:32 pm
by Rolf
Check page content with wysiwyg off

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Posted: Wed Jan 29, 2014 1:55 pm
by rfuste
Thank you both for your very quick reply - I have always found the CMSMadeSimple community so helpful!

@Jo Morg: that did it - I truly do need to learn how to better read error messages and guess from there. It seems the client did some lovely copy-paste work that imported a bunch of extra MS word junk, and the rich text editor somehow didn't strip it out.

Thanks again - site is now backup!

Regards,
Robert