Smarty error

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.
Locked
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Smarty error

Post by tonypb »

string(137) "Smarty error: [in template:20 line 90]: syntax error: expecting '=' after attribute name 'content' (Smarty_Compiler.class.php, line 1555)"

i get this message sometimes when i go to the site and sometimes i dont.... ive tried recreating the page and tried to make sure i kept every piece of code needed but still... any ideas

the site is http://www.homesourcemonthly.com/ (still being developed)

here is the code for the homepage template


{* Change lang="en" to the language of your site *}

{sitename} - {title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}


{literal}


=b){nw=b+"px";}if(w



#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}


{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}



{* The above JavaScript is required for CSSMenu to work in IE *}



  {* start accessibility skip links *}
   
      {anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
      {anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
   
    {* end accessibility skip links *}
   
    {* Horizontal ruler that is hidden for visual browsers by CSS *}
   
   
    {* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column" *}
     
      Home Source Monthly
      {* Start Search *}
      {search}
      {* End Search *}
    {* End Header *}
   
   
    {* Start Navigation *}
   
     
       
          Navigation
          {menu template='cssmenu.tpl'}
         
       
     
             
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... s/flash/ad' ); //end AC code

         
         
         
       
     
   
    {* End Navigation *}
   
      {* Start Sidebar *}
        {content block='Sidebar'}
        {* End Sidebar *}
        {cms_module module='Banners' category="test"}
        {NMS content name='newsletter' archivemsg_template="e-newsletter" }
     
     
        {* Start Content (Navigation and Content columns) *}
        {* Start Content Area *}
          {print showbutton=false script=true}
          {title}
          {content}

          {* Start relational links *}
         
         
            {anchor anchor='pagewrapper' text='^ Top'}
         


          {* End relational links *}
         
          {* End Content Area *}
        {* End Content *}
   
    {* Start Footer. Edit the footer in the Global Content Block called "footer" *}
   
      {global_content name='footer'}
      {global_content name='Designed'}
   
    {* End Footer  *}

{* end pagewrapper *}

Last edited by tonypb on Sun Mar 09, 2008 12:44 am, edited 1 time in total.
patino-burch design
Anthony Patino-Burch
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Smarty error HELP

Post by Nullig »

You javascript should be enclosed in {literal} tags, like...

Code: Select all

{literal}
<__script__ type="text/javascript">

down to...

</noscript>
{/literal}
Nullig
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: Smarty error HELP

Post by tonypb »

oh... yeah... in the flash right? duhh!
patino-burch design
Anthony Patino-Burch
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Smarty error HELP

Post by calguy1000 »

Although this help request worked, please read the sticky posts in the various forums about 'HOW TO ASK FOR HELP AND ACTUALLY GET AN ANSWER'....

Normally, if I see somebody says HELP or URGENT or something like that in their forum posts, I just ignore them.

If they don't have that, and the subject indicates that they the question is possibly posted in a reasonably correct forum, then I may actually read them.... if they are well researched, well worded, and knowledge based questions I may actually respond.

On the other hand.... if they are dumb, one or two sentence questions with no additional information, I may just delete them.  If they are posted in the wrong forum, I may just move them.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: Smarty error HELP

Post by tonypb »

my putting HELP didnt mean to insult or be rude or anything... i just needed help

i did try the info given to me and i'm still getting the error, even though i do realised i needed to do that anyway
patino-burch design
Anthony Patino-Burch
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Smarty error HELP

Post by calguy1000 »

Your needing help doesn't mean anything 95% or more of the posts on the forum are from people needing help.

Please read the rules and the various sticky posts before posting.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: Smarty error HELP

Post by tonypb »

my apologies
patino-burch design
Anthony Patino-Burch
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Smarty error

Post by calguy1000 »

Please start a new thread with a subject, and body providing information enough for knowledged people to a) be interested in reading it, and b) have enough information to respond to it.

This thread is locked.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”