Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-11-22 09:57:37

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 500 Internal Error on First try for comments w/ 4.0.2

This is just an idea, but maybe wort trying. In textpattern/publish/comment.php

Find:
txp_status_header('302 Found');

and replace it with:
txp_status_header('301 Moved Permanently');

Offline

#14 2005-11-22 10:38:49

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

After the replacement the problem remains the same. I still end up with a 302 Found-page that is telling me:

“Found
The document has moved here.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”

Offline

#15 2005-11-22 22:38:35

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 500 Internal Error on First try for comments w/ 4.0.2

Does it help if you comment out this line:

txp_status_header('200 OK');

in publish.php, line 43? (Add a ‘#’ at the start of the line to comment it out)


Alex

Offline

#16 2005-11-23 00:33:47

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

No, I’m afraid it didn’t help…

Offline

#17 2005-11-23 00:46:59

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 500 Internal Error on First try for comments w/ 4.0.2

All signs are pointing to something external to Textpattern: the web server config, some kind of global mod_rewrite settings, special error page configuration, etc.

That’s about all I can tell you given the information we have, I’m afraid. Perhaps your web host’s tech support can help – if it is a server configuration thing, the same problem might occur in other PHP or CGI applications.


Alex

Offline

#18 2005-11-23 00:48:54

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

Thanks for your help anyway!
I’ll submit the solution later, if there is one and if I can fint it!

Offline

#19 2005-11-23 01:00:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 500 Internal Error on First try for comments w/ 4.0.2

Thanks. If there’s something we can fix, we will; it’s just a matter of finding it.


Alex

Offline

#20 2005-11-29 20:40:34

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

I just commented out this line from comment.php:
<pre>
<code>
header(‘Location: ‘.$backpage.’#c’.sprintf(“%06s”,$rs));
</code>
</pre>
Now it seems to work… So, I guess the problem is to find somewhere around that line!

Offline

#21 2005-11-29 21:15:38

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 500 Internal Error on First try for comments w/ 4.0.2

Does it help if you uncomment that line, and change it to this:

header('Location: '.$backpage);

Alex

Offline

#22 2005-11-29 21:48:51

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

It also seems to work if I comment this row out instead:
<pre> <code>
txp_status_header(‘302 Found’); </code>
</pre>
What does that row actually do?

This did not work:
<pre> <code>
header(‘Location: ‘.$backpage); </code>
</pre>

Offline

#23 2005-11-29 22:07:25

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 500 Internal Error on First try for comments w/ 4.0.2

What does that row actually do?

It sends the 302 status message that tells the browser to redirect to a new page after the POST.

BTW: do you happen to know whether you’re running PHP in CGI or mod_php mode?


Alex

Offline

#24 2005-11-30 11:17:05

lyriclace
Member
Registered: 2005-08-07
Posts: 13

Re: 500 Internal Error on First try for comments w/ 4.0.2

The PHP on the server is running in CGI-mode…

Last edited by lyriclace (2005-11-30 11:17:28)

Offline

Board footer

Powered by FluxBB