title: Smarty gives Fatal error on editing .tpl file
body: <p>I am facing a problem whenever I edit my <code>header-home.tpl</code> file (even space or comment line) it says</p>
  
  <pre><code>Fatal error: Smarty error: [in header-home.tpl.html line 114]: syntax error: unrecognized tag: i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments) (Smarty_Compiler.class.php, line 415) in D:\xampplite\TFS-WorkSpace\EventCompany\lib\modules\Smarty\libs\Smarty.class.php on line 999
  </code></pre>
  
  <p>but when I edit any other file like <code>contact.tpl.html</code> it works fine.</p>
  
  <p>I tried disabling <code>$smarty-&gt;compile_check = false;</code> but no success. Help me</p>
  
  <p><strong>Header.tpl.html code</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  
      &lt;title&gt;Event Planning Agency, Event Manager Services, Corporate Event Management, Exhibition, Conference, Party Organiser in Dubai, UAE | The Event Company&lt;/title&gt;
      &lt;meta name="description" content="The-Event-Company.com offers Event Management, Conference Management, Sponsorship Activation, Promotional Events, Event Furniture/Prop Hire, Launch Events, Mall Events, Exhibition Stand Design, Exhibition Management, Catering Service, RSVP Management and Wedding Planning in Dubai. Call us at +971 4 304 2468 and we will plan a personalized agenda for your event today." /&gt;
      &lt;meta name="keywords" content="Event Planning, Event manager, Event Services, Corporate Events, Party Event Planning, Corporate Event Planning, Event Planning Services, Event Management Services, Corporate Event Management, Exhibition Management, The Event Company, Event Management Dubai, Dubai Event Management, Event Planning Service, Event Management Agency, Corporate Event Services, Event Company Dubai, Event Company Dubai, UAE event management, Furniture Hire Dubai, Conference Management Agency, Event organiser Dubai, Party Planning Dubai, Promotional Staff Dubai, Event Planning UAE, Event manager UAE, Event Services UAE, Corporate Events UAE, Party Event Planning UAE, Corporate Event Planning UAE, Exhibition Management UAE, Event Planning Service UAE, Event Management Agency UAE, Corporate Event Services UAE, Furniture Hire Dubai UAE, Conference Management Agency UAE, Event organiser Dubai UAE, Party Planning Dubai UAE, Promotional Staff Dubai UAE, Event Planning Dubai, Event manager Dubai, Event Services Dubai, Corporate Events Dubai, Party Event Planning Dubai, Corporate Event Planning Dubai, Corporate Event Management Dubai, Exhibition Management Dubai, Event Management Agency Dubai, Corporate Event Services Dubai, UAE event management Dubai, Furniture Hire Dubai " /&gt;
  
      &lt;link type="text/css" rel="stylesheet" href="css/style.css"/&gt;   
      &lt;link rel="stylesheet" type="text/css" href="script/jqueryslidemenu.css" /&gt;
  
      {literal}
          &lt;!--[if lte IE 7]&gt;
          &lt;style type="text/css"&gt;
              html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
  
              div#prevBtn {
              height:22px;
              float:left;
              width:15px;
              margin-top:-45px;
              padding:2px 0 0 10px;
              margin-left:320px;
              color:#b7b6a0;
          }
          div#nextBtn{ 
              height:22px;
              float:left;
              width:17px;
              padding:2px 0 0 8px;
              margin-top:-45px;
              margin-left:360px;
              color:#b7b6a0 !important;
          }   
  
          .staff-detail   {
              width:600px;
              padding:0px 10px 0px 10px;
              color:#000000;
              line-height:16px;
              margin-top:-75px;
              float:left;
          }
  
          #image-form-container .forms span   {
  
              font-size:13px;
  
          }
  
          &lt;/style&gt;
          &lt;![endif]--&gt;
      {/literal}
  
      &lt;!--&lt;script type="text/javascript" src="script/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="script/jqueryslidemenu.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="script/jquery.js"&gt;&lt;/script&gt;
      &lt;script src="script/easySlider.packed.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="script/easySlider.packed_news.js" type="text/javascript"&gt;&lt;/script&gt;--&gt;
  
      &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/easySlider.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/fadeSlideShow.js"&gt;&lt;/script&gt;
  
  
      {literal}
  
  
  
          &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  
      var imgArray = [ 'homeimg1', 'homeimg2', 'homeimg3', 'homeimg4', 'homeimg5' ];
      imgArray.sort(function () { return 0.5 - Math.random(); }); // shuffle the array
      for(var i = 0; i &lt; 5; i++) {
          $('#slideshow').prepend('&lt;li&gt;&lt;img src="img/'+ imgArray[i] +'.jpg" alt="" /&gt;&lt;/li&gt;');
      }
  
      $('#slideshow').fadeSlideShow({
          width: 980,
          height: 386,
          speed: 600, //'slow'
          interval: 6000,
          PlayPauseElement: false,
          NextElement: false,
          PrevElement: false,
          addListToId: false
      });
  
      $("#slider").easySlider({
          speed: 800,
          auto: true,
          pause: 5000,
          continuous: true
      });
  });
  &lt;/script&gt;
  
  
  
      {/literal}
  
  
  
      &lt;link type="text/css" rel="stylesheet" href="css/main.css"/&gt;
      &lt;link type="text/css" rel="stylesheet" href="highslide/highslide.css"/&gt;
      &lt;script type="text/javascript" src="highslide/highslide.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="script/validation.js"&gt;&lt;/script&gt;
      &lt;script src="script/AC_RunActiveContent.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
      ga('create', 'UA-57139118-1', 'auto');
      ga('send', 'pageview');
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id="wrapper"&gt;
  
  
      &lt;div id="top"&gt;
  
          &lt;a href="/" title="Back to Homepage" id="logo"&gt;&lt;img src="img/logo.gif" alt="Back to Homepage" /&gt;&lt;/a&gt;
  
          &lt;ul id="topMenu"&gt;
              &lt;li&gt;&lt;a href="/" class="act"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="main.php?pg=hwdi"&gt;About Us&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="event.php?arch=no&amp;nid=4&amp;fs=7" {if $article eq 'service'} class=act {/if}&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="clients.php"&gt;Clients&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="regional-coverage.php"&gt;Regional Coverage&lt;/a&gt;&lt;/li&gt;
              &lt;li class="last"&gt;&lt;a href="contact.php"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
  
          &lt;div class="cleaner"&gt;&lt;/div&gt;
      &lt;/div&gt;  
  
  
  
  
      &lt;div id="content"&gt;&lt;div class="content"&gt;
  
          &lt;div id="homeImg"&gt;
              &lt;div class="overlay"&gt;&lt;/div&gt;
              &lt;ul id="slideshow"&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  
          &lt;div id="ourClients"&gt;
              &lt;h3&gt;Our Satisfied Clients&lt;/h3&gt;
  
              &lt;div id="sliderHolder"&gt;&lt;div id="slider"&gt;&lt;ul&gt;    
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients1.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients2.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients3.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients4.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients5.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients6.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="clients.php"&gt;&lt;img src="img/clients/our-clients7.jpg" alt="Our Satisfied Clients" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;
  
          &lt;/div&gt;
  
          &lt;div id="aboutCompany"&gt;
              &lt;h3&gt;{$title}&lt;/h3&gt;
  
              &lt;div class="l"&gt;{$CONTENT[0]|sslash}&lt;/div&gt;
  
              &lt;div class="r" style="margin-top:-30px;"&gt;{$CONTENT[1]|sslash}&lt;/div&gt;
  
              &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>