[SOLVED] Error in smarty_internal_templatecompilerbase.php

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rfuste
Forum Members
Forum Members
Posts: 50
Joined: Wed Jun 07, 2006 7:56 pm

[SOLVED] Error in smarty_internal_templatecompilerbase.php

Post 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
Last edited by rfuste on Wed Jan 29, 2014 1:56 pm, edited 1 time in total.
rfuste
Forum Members
Forum Members
Posts: 50
Joined: Wed Jun 07, 2006 7:56 pm

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Post by Rolf »

Check page content with wysiwyg off
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rfuste
Forum Members
Forum Members
Posts: 50
Joined: Wed Jun 07, 2006 7:56 pm

Re: Error line 709 in smarty_internal_templatecompilerbase.p

Post 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
Post Reply

Return to “CMSMS Core”