Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Template Compiler Bug

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
EderBaum
Smarty n00b


Joined: 04 Jan 2004
Posts: 4
Location: Brazil

PostPosted: Sun Jan 04, 2004 4:15 pm    Post subject: Template Compiler Bug Reply with quote

Since Today I'm receiving this message:

Quote:
Parse error: parse error, unexpected T_ELSEIF in c:\arquivos de programas\easyphp\www\sites\basesite\system\templates_c\%%868\%%86865064\admin.tpl.php on line 77


I reinstalled Smarty and the problem persists. So i went to the file "templates_c\%%868\%%86865064\admin.tpl.php" and see this code:

Quote:
76 <?php endif; ?>
77 <?php elseif ($this->_tpl_vars['include'] == 'admin_config'): ?>


I modified the code on line 77 to this:
Quote:
<?php if ($this->_tpl_vars['include'] == 'admin_config'): ?>


And Fine, the problem was solved. But Why is it Happening??
I'm using PHP 4.3.3 under Windows XP
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sun Jan 04, 2004 7:16 pm    Post subject: Reply with quote

what does your admin.tpl look like? do you have an {elseif} where you should have an {if} ?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP