Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 23, 2011 2:34 am 
Offline
Senior Member

Joined: Thu Nov 12, 2009 3:27 pm
Posts: 57
Website: http://www.mtgames.org/
WLM: ai5hf@hotmail.com
AOL: btakillermich11
Location: Baton Rouge, Louisiana
Hi,
I was trying to make a simple script that, when contacted by the paypal IPN server, sends an email to the person sending money that says basically thanks for donating. However, when I send a test message from the paypal IPN simulator, it says failed, status code 500 internal server error. I don't know how I can troubleshoot this, as for one, it uses post to send the data, not get, and two, even when I tried using get just to troubleshoot, it displayed absolutely nothing on the page.
Any help is appreciated.
Thanks,
-Michael.

_________________
http://mtgames.org/
"A world that contained a creature as amazing as that bumblebee was a world he wanted to live in." -- Christopher Paolini, Brisingr.
"The songs of the dead are the lamentations of the living." -- Christopher Paolini, Eldest.


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 6:12 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Check the web server error logs and whatever language your php error logs, one or both should have something in it.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat May 07, 2011 10:27 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
Internal server error probably means that E_ALL / E_NOTICE is off. You will want to change these with ini_set(), or a .htaccess file.


Top
   
 Post subject:
PostPosted: Sat May 07, 2011 10:35 pm 
Offline
Senior Member
User avatar

Joined: Wed Apr 20, 2011 1:09 pm
Posts: 63
php.ini, ensure log_errors is on.
Check the server error log next.

If you want to try grabbing the error at runtime, try adding this in your script near the top of the execution flow...

Code:
@ini_set('display_errors', 'On');
error_reporting(E_ALL);


Note that you'll get all notices, warnings, strict notices, deprec notices (if running PHP 5.3) when you do this. If that happens, it also means you've got some code to clean up.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group