Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-10 03:24:16

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

500 Internal Error on First try for comments w/ 4.0.2

Greetings All Bug Aficianados,

When I attempt to place a comment on my website, it bounces back with an error message, “500 internal server error”, however, when I go back, and hit submit the second time, it works. Additionally, I am not receiving e-mails when I receive a comment.

Any thoughts?

Offline

#2 2005-11-10 03:34:20

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

Is this on bertelsen.ca? Worked fine for me.


Alex

Offline

#3 2005-11-10 03:34:46

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

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

And of course someone tests it out, and blip, and email pops. But yet when I do it, I get an error.

Offline

#4 2005-11-10 03:37:14

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

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

Yeah, bertelsen.ca… try entering the same email address as the author br4nd0n @ b3rt3ls3n . ca ( spam filtered, you’ll have to write it normally ).

Offline

#5 2005-11-10 03:38:33

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

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

I swear I’m not crazy. It was really happening!

Offline

#6 2005-11-19 05:26:27

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

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

happened to me with clean 4.0.2 install… submitting a few comments seemed to fix it… that and the blood of a chicken smeared on our txp fetish idol

Offline

#7 2005-11-21 22:32:05

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

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

I’ve got the same problem, except I receive the e-mail when the comment finally is submitted.

Neither of these threads helped me:
http://forum.textpattern.com/viewtopic.php?id=11213 (describes how to repeat the problem)
http://forum.textpattern.com/viewtopic.php?id=11829

My diagnostics:
Textpattern-version: 4.0.2 (r1076)
last_update: 2005-11-16 22:12:15/2005-11-16 22:11:37
Dokument-rot: /customers/lyriclace.net/lyriclace.net/httpd.www
$path_to_site: /customers/lyriclace.net/lyriclace.net/httpd.www
Textpattern-sökväg: /customers/lyriclace.net/lyriclace.net/httpd.www/textpattern
Permanentlänk-läge: messy
Tillfällig mapp: /customers/lyriclace.net/lyriclace.net/httpd.www/textpattern/tmp
Sajt-URL: www.lyriclace.net
PHP-version: 4.4.1
Register globals: 1
server_time: 2005-11-21 23:19:01
MySQL: 4.0.24_Debian-10sarge1-log
Locale: sv_SE.UTF-8
Server: Apache

Innehåll i .htaccess-filen:
————————————
#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>

#php_value register_globals 0

————————————

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1_de latin2 latin5 sjis swe7 tis620 ujis usa7 win1250 win1251ukr win1251
19 Tables: OK

PHP-tillägg: xmlrpc/0.51, xml, wddx, standard/4.4.1, session, pcre, mysql, imap, iconv, gettext, gd, ctype, calendar, bcmath, zlib/1.1, openssl
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (3f09053b7468d807713a4efc2e4cff89)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

Offline

#8 2005-11-21 23:09:51

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

FWIW, here are the headers from a comment submit (the preview works fine):

http://www.lyriclace.net/index.php?id=36#cpreview

POST /index.php?id=36 HTTP/1.1
Host: www.lyriclace.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.lyriclace.net/index.php?id=36
Cookie: txp_name=test; txp_email=test%40test.com; txp_last=00%3A07+22%2F11%2F2005
Content-Type: application/x-www-form-urlencoded
Content-Length: 157

HTTP/1.1 302 OK
Date: Mon, 21 Nov 2005 23:07:23 GMT
Server: Apache
X-Powered-By: PHP/4.4.1
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

And the page itself:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="">here</A>.<P>
<P>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.
</BODY></HTML>

Of note:

1. The response is 302 OK, not 302 Found. Textpattern sends 302 Found (comment.php line 289).

2. There’s no Location: header, even though Textpattern sends one (lines 290-294).

3. The HREF in the error page is empty.

Last edited by zem (2005-11-21 23:15:44)


Alex

Offline

#9 2005-11-21 23:20:24

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

L,

A couple of things to try (one at a time, so we know which works):

1. Set your Production Status to debugging, and see if any PHP errors are displayed when trying to submit a comment

2. Remove or rename .htaccess


Alex

Offline

#10 2005-11-21 23:37:17

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

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

1. The problem remains the same.
1 & 2. The problem remains the same.
2. The problem remains the same.

Offline

#11 2005-11-22 00:02:22

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

1. The problem remains the same.

There are no error messages shown?


Alex

Offline

#12 2005-11-22 00:10:43

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

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

No, not what I can see… The production status is set to debugging right now.

Offline

Board footer

Powered by FluxBB