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

invalid attribute name: in using with an IIS Server

 
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
mvarga
Smarty Rookie


Joined: 25 Mar 2004
Posts: 7

PostPosted: Thu Mar 25, 2004 4:33 pm    Post subject: invalid attribute name: in using with an IIS Server Reply with quote

Confused:Hi there,

I got a problem regaring this error message i received if copy my scripts to an iis server. On a Linux system it works pretty good but in using an IIS I receive this message:

Smarty error: [in ausgabe.html line 72]: syntax error: invalid attribute name: 'ausgabe\' (Smarty_Compiler.class.php, line 1497) in E:\IISROOT2\classes\Smarty\Smarty.class.php on line 1102

I don't have an idea why i doesn't work?

Does have anybody a hint for me?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
messju
Administrator


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

PostPosted: Thu Mar 25, 2004 6:22 pm    Post subject: Reply with quote

maybe you have magic_quotes_runtime enabled in php.ini . smarty needs magic_quotes_runtime to be turned off.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mvarga
Smarty Rookie


Joined: 25 Mar 2004
Posts: 7

PostPosted: Fri Mar 26, 2004 9:03 am    Post subject: Reply with quote

magic_quotes_runtime is off.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
messju
Administrator


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

PostPosted: Fri Mar 26, 2004 9:40 am    Post subject: Reply with quote

what does the template look like?
do you have any prefilters applied?
is the template stored on the filesystem or elsewhere via a resource?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mvarga
Smarty Rookie


Joined: 25 Mar 2004
Posts: 7

PostPosted: Fri Mar 26, 2004 10:05 am    Post subject: Reply with quote

In the follow the template ("ausgabe"):

(pure HTML)...
<form name="formular" action="news.php" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="37">
<img src="img/gifs/b_banner.gif" width="609">
</td>
</tr>
<!-- LINE 72 --> {foreach name="ausgabe" from="$news" key=key item=item}
<tr>
<td width="20">
<img src="img/gifs/onegif.gif" width="20" height="1">
</td>
<td valign="top" width="588">
<table width="588" border="0" cellspacing="0" cellpadding="0">
{if $id==$item.id}
<tr>
<td width="588" height="20" valign="top" class="bodytext">
<font color="#009999">{$item.created} - <i>{$item.headline}</i></font></td>
</tr>
<tr>
...

I do not use any prefilters.

All scripts, inclusive the templates, are stored on the local filesystem of the iis (cluster) server.

Thank you for you assistant!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
messju
Administrator


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

PostPosted: Fri Mar 26, 2004 10:15 am    Post subject: Reply with quote

I doubt that magic_quotes_runtime is off in your environment.
I get exact the same error that you posted:

syntax error: invalid attribute name: 'ausgabe\' (Smarty_Compiler.class.php, line 1497) in /web/httpd/messju/Smarty-2.6.2/libs/Smarty.class.php on line 1102

only when i turn them on.
and i don't get any errors when i turn them off.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mvarga
Smarty Rookie


Joined: 25 Mar 2004
Posts: 7

PostPosted: Fri Mar 26, 2004 10:25 am    Post subject: Reply with quote

PERFECT ...it works if I set the ini magical_quotes_runtime as off.

Very Happy

Thank you very much
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
dthought
Smarty Regular


Joined: 21 Apr 2003
Posts: 55
Location: Melbourne, Australia

PostPosted: Mon Mar 29, 2004 12:55 am    Post subject: Reply with quote

*sigh*
If only people were more willing to actually check if magic quotes runtime is off, rather than just pretending it is (-;

Maybe I should write a small script to detect if the magic quotes config option is set, so people can actually tell if PHP is not going to play well with Smarty... hmm...
Back to top
View user's profile Send private message Visit poster's website
messju
Administrator


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

PostPosted: Mon Mar 29, 2004 9:23 am    Post subject: Reply with quote

@dthought: Don't waste your time trying to script against the stupidity of people. I think it's a race you cannot win. Smile
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 -> 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