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

unknow tag assign

 
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
scdgro
Smarty Regular


Joined: 24 May 2003
Posts: 39
Location: Netherlands

PostPosted: Fri Apr 30, 2004 9:19 pm    Post subject: unknow tag assign Reply with quote

This is the error i get in 2.6.2. 2.6.0 works fine.

Fatal error: Smarty error: [in accountticket_admin.tpl line 2]: [plugin] unknown tag - 'assign' (core.load_plugins.php, line 118) in /usr/lib/php/Smarty/Smarty.class.php on line 1102

In accountticket_admin.tpl :

{if !$write_access}
{assign var="readonly" value="readonly"} <----- this is line 2
{assign var="disabled" value="disabled"}
{/if}

In de tarball i cant find the file function.assign.phpn and the tarball is checked.
the file which matches nearly is compiler.assign.php, but this one can never be resolved bij de plugin loader i think.
Back to top
View user's profile Send private message Send e-mail
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Apr 30, 2004 9:38 pm    Post subject: Re: unknow tag assign Reply with quote

scdgro wrote:
In de tarball i cant find the file function.assign.phpn and the tarball is checked.
the file which matches nearly is compiler.assign.php, but this one can never be resolved bij de plugin loader i think.


It can. Did you remove all files from templates_c and from cache after upgrade?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scdgro
Smarty Regular


Joined: 24 May 2003
Posts: 39
Location: Netherlands

PostPosted: Fri Apr 30, 2004 9:47 pm    Post subject: Reply with quote

standard procedure, to remove the compiled stuff after upgrade. never came to my mind but now i know.
shame on me. Embarassed
its working now. thanks.
Back to top
View user's profile Send private message Send e-mail
cairol
Smarty n00b


Joined: 06 May 2004
Posts: 2

PostPosted: Thu May 06, 2004 8:45 am    Post subject: Reply with quote

Hi,
I get the same error:
Code:
Fatal error: Smarty error: [in Standard/index.tpl line 17]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 551) in /usr/lib/php/Smarty/Smarty.class.php on line 1102


I use smarty 2.6.2 in safe mode. It works if safe mode is disabled.
Why doesn't recognize smarty 'assign' when it's running in safe mode?
Back to top
View user's profile Send private message
scdgro
Smarty Regular


Joined: 24 May 2003
Posts: 39
Location: Netherlands

PostPosted: Thu May 06, 2004 5:53 pm    Post subject: Reply with quote

Have you done the same as me ?
Cleared all compile dirs ?

It's clear to me now, that once you change a setting or upgrade from another smarty version, the compiled files usually don't fit the job anymore.
Back to top
View user's profile Send private message Send e-mail
cairol
Smarty n00b


Joined: 06 May 2004
Posts: 2

PostPosted: Sat May 08, 2004 5:22 pm    Post subject: Reply with quote

yep, i cleared all compile and cache dirs
Back to top
View user's profile Send private message
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