View previous topic :: View next topic |
Author |
Message |
mvarga Smarty Rookie
Joined: 25 Mar 2004 Posts: 7
|
Posted: Thu Mar 25, 2004 4:33 pm Post subject: invalid attribute name: in using with an IIS Server |
|
|
: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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Mar 25, 2004 6:22 pm Post subject: |
|
|
maybe you have magic_quotes_runtime enabled in php.ini . smarty needs magic_quotes_runtime to be turned off. |
|
Back to top |
|
mvarga Smarty Rookie
Joined: 25 Mar 2004 Posts: 7
|
Posted: Fri Mar 26, 2004 9:03 am Post subject: |
|
|
magic_quotes_runtime is off. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Mar 26, 2004 9:40 am Post subject: |
|
|
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 |
|
mvarga Smarty Rookie
Joined: 25 Mar 2004 Posts: 7
|
Posted: Fri Mar 26, 2004 10:05 am Post subject: |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Mar 26, 2004 10:15 am Post subject: |
|
|
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 |
|
mvarga Smarty Rookie
Joined: 25 Mar 2004 Posts: 7
|
Posted: Fri Mar 26, 2004 10:25 am Post subject: |
|
|
PERFECT ...it works if I set the ini magical_quotes_runtime as off.
Thank you very much |
|
Back to top |
|
dthought Smarty Regular
Joined: 21 Apr 2003 Posts: 55 Location: Melbourne, Australia
|
Posted: Mon Mar 29, 2004 12:55 am Post subject: |
|
|
*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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Mar 29, 2004 9:23 am Post subject: |
|
|
@dthought: Don't waste your time trying to script against the stupidity of people. I think it's a race you cannot win. |
|
Back to top |
|
|