Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
OK let's get this working on IIS
I have a site running g1.19 on IIS that’s doing ok, but you know, it’s good to upgrade. So I got a sandbox database/site ready and boy am I glad I didn’t just do a cutover upgrade cause there are some issues.
Since this is not a time-critical upgrade, I am taking my time and documenting everything I can about txp on IIS, which won’t be a lot since I am not an IIS expert but I have a little experience.
Any input on these issues?
- Language updates aren’t working:
Warning: gzinflate(): data error in C:\Inetpub2\zeta\sporck\textpattern\lib\IXRClass.php on line 556
– but I suspect this is problem with the language server - All slashes and double quotes are escaped (in forms, pages, etc).
(folder names have been changed)
<pre><code>
Textpattern version: 4.0.1 (r888)
last_update: 2005-09-15 21:56:35/2005-09-15 21:50:22
Document root: C:\\Inetpub2\\zeta (C:\Inetpub2\zeta)
$path_to_site: C:\\Inetpub2\\zeta\\sporck
Textpattern path: C:\Inetpub2\zeta\sporck\textpattern
Permanent link mode: messy
upload_tmp_dir: C:\PHP_upload_tmp
Temp folder:
Site URL: www.zeta.com/sporck
PHP version: 4.3.2
Register globals: 1
Magic quotes: 1/1
MySQL: 3.23.49-nt
Locale: English_United States.1252
Server: Microsoft-IIS/6.0
Pre-flight check:
————————————
Temp folder is not writable:
C:\Inetpub2\zeta\sporck\textpattern\setup\ still exists
no_temp_dir
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule> ———————————— </pre></code>Offline
Re: OK let's get this working on IIS
Haven’t touched clean urls yet, but I’ll be looking at getting that working (with ISAPI Rewrite) & documenting it, after I get these showstoppers worked out.
Offline
#3 2005-09-17 04:17:42
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Re: OK let's get this working on IIS
I looked at it and tried to examine a var_dump…but my immediate problem is, something magical is happening with quotes. Every time I modify or save a page, for example, another level of slash-escaping is added.
So now my page code looks like:
<pre><code><html xmlns=\\\“http://www.w3.org/1999/xhtml\\\” xml:lang=\\\“en\\\” lang=\\\“en\\\”>
<head>
<meta http-equiv=\\\“content-type\\\” content=\\\“text/html; charset=utf-8\\\” />
<link rel=\\\“stylesheet\\\” href=\\\”<txp:css />\\\” type=\\\“text/css\\\” media=\\\“screen\\\” /></code></pre>
And my var_dump looks like:
<pre><code>
<pre>
<?php
var_dump($GLOBALS[\‘pretext\’]);
?>
</pre>
</code></pre>
So I need to get rid of those slashes some how.
Offline
Re: OK let's get this working on IIS
I wonder if the php/mysql versions on the server are just out of date.
Offline
Offline
#7 2005-09-27 02:35:20
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: OK let's get this working on IIS
Textpattern strips out slashes in the ps() and gps() functions in txplib_misc.php. Perhaps you can do some var_dump()s in that function and see why they’re not being stripped.
You’ll be able to stop it by changing the magic_quotes ini setting, but that won’t help others – it’d be much better to find out why it’s not working in the first place.
Alex
Offline
Re: OK let's get this working on IIS
I had some time to look at this today. I changed part of the gps() to look like this:
<pre><code>
} elseif (isset($_POST[$thing])) {
echo ‘<pre>magic quotes:’.get_magic_quotes_gpc().’</pre>’;
if (get_magic_quotes_gpc()) {
echo ‘<pre>back in gps():’.var_dump(doStrip($_POST[$thing])).’</pre>’;
return doStrip($_POST[$thing]);
} else {
return $_POST[$thing];
}
}
return ‘’;
}
</code></pre>
What I found is that A) my debug statements are reached, so get_magic_quotes is detecting properly, and B) doStrip($_POST[$thing]) does in fact return a stripslash()ed copy of the data as it should (I tested it on the presentation > pages tab in txp, saving a page).
So the problem is upstream from gps somewhere. …
Last edited by jdueck (2005-09-27 22:05:06)
Offline
#9 2005-09-27 23:05:11
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Re: OK let's get this working on IIS
I saw that…I wondered if it was just for me :)
Offline
#11 2005-09-28 01:51:11
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: OK let's get this working on IIS
We’ve had occasional reports of problems. Apparently it’s been overlooked until now – it’s rare for that to be on by default.
Alex
Offline
Re: OK let's get this working on IIS
you know what…that worked!
On to clean urls…as soon as I return from nothern michigan on sunday.
Offline