Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2005-12-28 20:45:50
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
could I edit comment.php to use SCRIPT_NAME instead?
Offline
#17 2005-12-28 20:52:59
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
i saw on another forum that IIS does not support request_uri and they recommened this:
<code>
if (!isset($_SERVER[‘REQUEST_URI’])) {
$_SERVER[‘REQUEST_URI’] = $_SERVER[“SCRIPT_NAME”] .
$_SERVER[‘QUERY_STRING’];
}
</code>
i guess i’d have to do that in pretext but i’m not sure where that is yet….
Last edited by bruno1378 (2005-12-28 21:17:35)
Offline
#18 2005-12-28 21:06:49
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
Ok I played around a bit and added this to the top of publish.php
<code>
if (!isset($_SERVER[‘REQUEST_URI’])) {
$_SERVER[‘REQUEST_URI’] = $_SERVER[“SCRIPT_NAME”];
if (isset($_SERVER[‘QUERY_STRING’])) {
$_SERVER[‘REQUEST_URI’] = $_SERVER[‘REQUEST_URI’].”?”.$_SERVER[‘QUERY_STRING’];
}
}
</code>
and now all seems to be working ok for the moment. does anyone know of any reason this would be bad to do? this is something that should go into the product itself and it would certainly help all future IIS users, how can I make that recommendation?
Last edited by bruno1378 (2005-12-28 21:07:06)
Offline
Re: Commenting not working properly - URL is broken
Are you using clean or messy urls? Which method of clean urls are you running? Are you running IIS with php as module, or as CGI? Which version of IIS are you using? Thanks for your cooperation. :)
Offline
#20 2005-12-28 21:39:18
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
messy URLs for the moment, as I don’t have anything installed to rewrite the URL’s on IIS, and I don’t really care too much about the URLs – google and other SE’s index dynamic pages just fine.
>>Are you running IIS with php as module, or as CGI?
How do I tell? I just did the basic PHP install…
IIS version is v5.1 I believe, I’m on WinXP Pro – not even Windows Server. :-)
Offline
Re: Commenting not working properly - URL is broken
What is a basic php-install? Do you remember reading or configuring anything about php5isapi.dll or php-cgi.exe somewhere along the way? You may also just look into diagnostics which may tell you the answer.
Out of curiosity: Why are you trying to make it run on such a system, when that’s hardly the envirnoment where a site is going to be in production, when it is so much easier and more reliable to use Apache for local-hosted experimenting?
Offline
#22 2005-12-28 21:59:23
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
Sencer,
I work at a company that is pretty standarized on MS, and they are looking into implementing a blog for discussion points during webinars. We will likely start out with something hosted like blogger to see if it’s worth pursuing, but if so, we’ll probably want to host it ourselves. I’m personally somewhat familiar with PHP, and can kinda muck my way through MySQL as I’m familiar with SQL Server, but have no knowledge of Apache. I tried installing it locally to see if I could run it and IIS together, and things did not go smoothly.
Also, for my own personal use, I’d like to host a blog from my home computer which is connected to the internet with a static IP, and now, a domain pointing to it as well. Home computer is also XP Pro, so would like to find a solution that will work for both these situations. Currently torn between Textpattern and Nucleus CMS.
So in other words, this is almost exactly the environment it’ll be on in production. :-)
A basic PHP install means I downloaded the Windows installed and ran it. I didn’t configure anything special, just let it do it’s thing. If I had to guess I’d say it’s running as a CGI….but I’m not entirely sure how to verify.
Offline
Re: Commenting not working properly - URL is broken
Yeah, sounds like plenty of good reasons. :)
When you run a php file with <?php phpinfo() ?> it should mention the Server API somewhere right along the first block or so.
Offline
#24 2005-12-28 22:45:11
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
indeed it does:
CGI/FastCGI
(btw is it just me or did the forums lose their nice yellow glow?)
Offline
#25 2005-12-29 06:33:11
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Commenting not working properly - URL is broken
(bruno, read this. :) )
Offline
#26 2005-12-29 15:00:42
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
thanks mary. i thought it had fixed itself until i logged in and still saw the blue. :-)
Sencer,
were your questions just curiosity, or related to the issue at hand?
Offline
Re: Commenting not working properly - URL is broken
I am trying to understand if there is kind of system to IIS madness, or if it just changes randomly. So far I have come across at least 3 “fixes” each of which only works in some circumstances. THe temporary fix we have in place, is already meant to work CGI environments, so I was expecting you were running ISAPI. But given that you’re not, it maybe related to the version of IIS.
Offline
#28 2005-12-30 16:28:52
- bruno1378
- Member
- Registered: 2005-12-22
- Posts: 22
Re: Commenting not working properly - URL is broken
So there is something in the product already that should have stopped this from happening?
If I can be of any help in any sort of testing just let me know…
Offline
Re: Commenting not working properly - URL is broken
Yes, there is. I quotes the code above in my post:
http://forum.textpattern.com/viewtopic.php?pid=92102#p92102
I added your suggestion as well, it’s in the current release 4.0.3 for those people where the other workaround doesn’t help.
Offline
Re: Commenting not working properly - URL is broken
Thank you! Solved my problem… =) (added the code string in publish.php)
Offline