error 500 when someone tries to add a comment

Having trouble installing serendipity?
Post Reply
Jan

error 500 when someone tries to add a comment

Post by Jan »

Hi.
I have got a problem when someone tries to comment on my blog. There appears the error 500 though the comment is available for the moderator to add. I searched the forum and tested some tips for the error 500 but nothing helped. Can someone help me?

to the blog: www.unternimm-die-zukunft.de
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: error 500 when someone tries to add a comment

Post by garvinhicking »

Sadly this sounds like a server issue, which can be caused by several things.

It seems you are using a PHP CGI installation. This gives 500 HTTP errors whenever an error happens, instead of PHP Parse Error or Fatal Error reports. Thus, you need to have a look at your Apache Errorlog to spot the actual error that is happening.

Usually this is a Parse Error in one of your files. Maybe you modified some files/plugins, which now cause this error.

If you have a SSH account on Linux on your sever, you can try this command to check all your Files:

Code: Select all

find -name \*.php -exec php -l {} \;
Then you can see in which file the error got introduced. In either way, only the apache errorlog can now help you further!

Hope that helps - if not, please report back of course!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jan

Error log

Post by Jan »

The admin of my server send me this:

[Wed Nov 09 11:35:47 2005] [error] [client 84.177.203.9] File does not exist: /home/web162/inte41/ftproot/www.unternimm-die-zukunft.de/Ein Grund f\xc3\xbcr die Zukunft das Grundeinkommen-Dateien, referer: http://www.unternimm-die-zukunft.de/Fin ... rkung.html

[Wed Nov 09 11:35:49 2005] [error] [client 217.119.50.53] malformed header from script. Bad header=No recipient addresses found i: phpcgi.cgi, referer: http://www.unternimm-die-zukunft.de/ind ... affen.html

??????????????????????????????????????
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error log

Post by garvinhicking »

The first HTTP request comes from somebody who downloaded locales files to his directory and tries to download them from the Web (IE full page downloads cause this). You shouldn't pay attention to that.

The second entry is more problematic! I haven't heard of such an error, it might be that it's coming frmo a missing or misconfigured sendmail() implementation on your server. When a comment is sent, s9y tries to send a mail. Thus the error could very well be related to sending mails.

check if you configured a valid email address in the s9y configuration for the option "E-Mail address of the blog". If you have, please write a testscript to try if mail() in your PHP environment works. If you don't know how to create a simple script like that, please report back.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jan

Garvin rules

Post by Jan »

Yeah, all now ok. This damned email-adress!!!! Thank you!!!!!!!!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Garvin rules

Post by garvinhicking »

You're welcome, I'm glad this could solve the error! Now I have one more gotcha to notice :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply