Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
syntax error: invalid attribute name: 'index.tpl\'

 
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 -> FAQ (Frequently Asked Questions)
View previous topic :: View next topic  
Author Message
messju
Administrator


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

PostPosted: Tue Mar 29, 2005 2:09 pm    Post subject: syntax error: invalid attribute name: 'index.tpl\' Reply with quote

Smarty error: [in file:xx.tpl line 1]: syntax error: invalid attribute name: 'index.tpl\' (Smarty_Compiler.class.php, line 1521)

If you encounter an error like this, then you have magic_quotes_runtime turned on in you php.ini. Smarty needs this value to be turned off to operate properly. Don't mix magic_quotes_runtime up with magic_quotes_gpc. Smarty only needs the former to be off.

If you don't have access to your php.ini or to your webserver-configuration, then you can turn magic_quotes_runtime off at runtime with

[php:1:b7ea9ca818]ini_set('magic_quotes_runtime', false);[/php:1:b7ea9ca818]

But it's best to simply bother your system-administrator to turn it off globally.
Back to top
View user's profile Send private message Send e-mail 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 -> FAQ (Frequently Asked Questions) All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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