News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

notify.php has 500 error (internal server error)

Started by webcitz, May 31, 2010, 11:10:29 AM

Previous topic - Next topic

webcitz

Hello,

I've got Joomla 1.5.18 and VM 1.1.4.

My client received an email from PayPal with the following.

QuotePlease check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

/administrator/components/com_virtuemart/notify.php

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.

Thank you for your prompt attention to this issue.

I've exhausted myself searching Google for relevant topics to go off of for initial trial fixes. I've attempted to change the CHMOD from 644 to 755 to 777 with no luck. I've disabled SEO Friendly URLs within Joomla's config area, and then tried removing the www redirect, and then tried removing the .htaccess file. Additionally, I have tried the http://www.belahost.com/pp/index.php tester to see if the 500 error was something not to worry about, but that didn't show me anything positive either. I'm using the default notify.php file, located in the administrator folder.

Are there any suggestions out there for me, please?

webcitz

I'm sorry, I just solved this myself by moving the notify.php script outside of the administrator/components folder. I apologize for the useless post, but hopefully it will help someone else that didn't try this solution (although I don't take credit for it - it was posted by several other people on the forum). Thanks to those!

webcitz

Actually, I guess this isn't working flawlessly yet. Now I get this error - does anyone have any ideas?



Warning: Cannot modify header information - headers already sent by (output started at /home/children/public_html/administrator/components/com_virtuemart/languages/common/english.php:2667) in /home/children/public_html/administrator/components/com_virtuemart/classes/ps_session.php on line 68



Warning: Cannot modify header information - headers already sent by (output started at /home/children/public_html/administrator/components/com_virtuemart/languages/common/english.php:2667) in /home/children/public_html/administrator/components/com_virtuemart/classes/ps_session.php on line 68

stinga

G'day,

You should not need to move notify.php.
I might be missing something... but...
Quote/administrator/components/com_virtuemart/notify.php
Is not a valid url
Stinga.
614869 products in 747 categories with 15749 products in 1 category.
                                             Document Complete   Fully Loaded
                Load Time First Byte Start Render   Time      Requests      Time      Requests
First View     2.470s     0.635s     1.276s          2.470s       31            2.470s      31
Repeat View  1.064s     0.561s     1.100s          1.064s       4             1.221s       4

webcitz

No, that is not a valid URL. I removed the domain name information from it.

I moved the notify.php file because it causes a 500 error if it is within the /components or /administrator folders. Once it gets put into the root directory it loads up. However, that workaround fix causes the duplicate header issue.

stinga

It is a bit difficult to diagnose problems when we don't have all the information.
If notify.php does not work in that dir then the permissions are wrong on the dir.
Mine works fine, so I would fix the problem rather than move the file.

At a guess you are including the wrong files because you have moved the file.
Stinga.
614869 products in 747 categories with 15749 products in 1 category.
                                             Document Complete   Fully Loaded
                Load Time First Byte Start Render   Time      Requests      Time      Requests
First View     2.470s     0.635s     1.276s          2.470s       31            2.470s      31
Repeat View  1.064s     0.561s     1.100s          1.064s       4             1.221s       4

webcitz

Hey Stinga,

I was able to get the notify.php to work in the appropriate folder. I swear I thought all of the directories were set to 755, but I guess not. I quickly ran a chmod of all directories within /administrator to 755 and the notify.php file started working.

However, this is what I get now. Is it alright that it says "invalid" at the very bottom?

QuoteSuccessfully Posted to your Script!


Your Script's Reply:
-------------------------------
HTTP/1.1 200 OK
Date: Wed, 02 Jun 2010 07:24:54 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.12
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Set-Cookie: 353b4174268807093e9f72fc75f7d5ba=623d63182fdf63a14c2e08f6aa6d8124; path=/
Connection: close
Content-Type: text/html






Warning: Cannot modify header information - headers already sent by (output started at /home/children/public_html/administrator/components/com_virtuemart/languages/common/english.php:2667) in /home/children/public_html/administrator/components/com_virtuemart/classes/ps_session.php on line 135



Warning: Cannot modify header information - headers already sent by (output started at /home/children/public_html/administrator/components/com_virtuemart/languages/common/english.php:2667) in /home/children/public_html/administrator/components/com_virtuemart/classes/ps_session.php on line 135

PayPal Notify.php Debug OUTPUT

1. Finished Initialization of the notify.php script
2. Received this POST: ipnscript=http://www.clientdomainname.com/administrator/components/com_virtuemart/notify.php&ipnstatus=VERIFIED&rm=1&receiver_email=test@tester.com&business=test@tester.com&receiver_id=9I1CPEGSWT48A&paypal_address_id=CFIPQRSVWX467&item_name=Item Name&item_number=796&quantity=1&invoice=963475&custom=Custom&payment_status=Completed&payment_date=3:24:39 Jun 02, 2010 PDT&payment_gross=19.95&payment_fee=0.58&mc_gross=19.95&mc_fee=0.58&mc_currency=USD&txn_id=wqdaoY3Jl269uCsmg&parent_txn_id=EFIKLMQUWfmopu135&txn_type=web_accept&memo=PayPal Special Instructions/Note Field.&first_name=Jayson&last_name=Tester&address_street=13 Elm Street&address_city=New York&address_state=NY&address_zip=10185&address_country=United+States&address_status=confirmed&payer_email=paypal@theirdomain.com&payer_business_name=YourPayers AMCE Co.&payer_id=TJ9BOD2PA8ZFK&payer_status=verified&payment_type=instant&notify_version=2.1&verify_sign=6bBO957LyuEVKMQaGRrvSAjl1sWiPUgm3kqfpwhcxetnT4HZCo82IzFN&subscr_date=3:24:39 Jun 02, 2010 PDT&subscr_effective=3:24:39 Jun 02, 2010 PDT&period3=1 M&amount3=9.95&mc_amount3=9.95&retry_at=3:24:39 Jun 09, 2010 PDT&username=BUWlo157&password=PgEuyqkSM8NnE&subscr_id=S-CEOQSTUgjlqrwxyz1&
3. Connecting to: www.sandbox.paypal.com/cgi-bin/webscr



                Using these http Headers:



               



                POST /cgi-bin/webscr HTTP/1.0

User-Agent: PHP/5.2.12

Referer: www.clientdomainname.com/administrator/components/com_virtuemart/notify.php

Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

Host: www.sandbox.paypal.com:80

Content-Type: application/x-www-form-urlencoded

Content-Length: 1269

Accept: */*







               



                and this String:



               



                cmd=_notify-validate&ipnscript=http%3A%2F%2Fwww.clientdomainname.com%2Fadministrator%2Fcomponents%2Fcom_virtuemart%2Fnotify.php&ipnstatus=VERIFIED&rm=1&receiver_email=test%40tester.com&business=test%40tester.com&receiver_id=9I1CPEGSWT48A&paypal_address_id=CFIPQRSVWX467&item_name=Item+Name&item_number=796&quantity=1&invoice=963475&custom=Custom&payment_status=Completed&payment_date=3%3A24%3A39+Jun+02%2C+2010+PDT&payment_gross=19.95&payment_fee=0.58&mc_gross=19.95&mc_fee=0.58&mc_currency=USD&txn_id=wqdaoY3Jl269uCsmg&parent_txn_id=EFIKLMQUWfmopu135&txn_type=web_accept&memo=PayPal+Special+Instructions%2FNote+Field.&first_name=Jayson&last_name=Tester&address_street=13+Elm+Street&address_city=New+York&address_state=NY&address_zip=10185&address_country=United%2BStates&address_status=confirmed&payer_email=paypal%40theirdomain.com&payer_business_name=YourPayers+AMCE+Co.&payer_id=TJ9BOD2PA8ZFK&payer_status=verified&payment_type=instant&notify_version=2.1&verify_sign=6bBO957LyuEVKMQaGRrvSAjl1sWiPUgm3kqfpwhcxetnT4HZCo82IzFN&subscr_date=3%3A24%3A39+Jun+02%2C+2010+PDT&subscr_effective=3%3A24%3A39+Jun+02%2C+2010+PDT&period3=1+M&amount3=9.95&mc_amount3=9.95&retry_at=3%3A24%3A39+Jun+09%2C+2010+PDT&username=BUWlo157&password=PgEuyqkSM8NnE&subscr_id=S-CEOQSTUgjlqrwxyz1
4. Connection successful. Now posting to www.sandbox.paypal.com/cgi-bin/webscr
5. Response from www.sandbox.paypal.com: HTTP/1.1 200 OK

Date: Wed, 02 Jun 2010 07:24:55 GMT

Server: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_ssl/2.8.22 OpenSSL/0.9.7e

Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=jJnQW8As5Mw0EudwK9EvOq7EW-wVj7jx5bPGe_cTEyn2F1_gIaTqkys-yf_IjuDFZ9VH_hLOwPG1hnAQXaQWxRyY2yd3rE2eDL9y1sEfSHAe2lzb2-W7xfq49raiHWA-Bcvke0%7cASGuGGzFTtTi6jqnvRnl1iglcAWH5wnQ2upewvS1iu3KSSRA8m6jYSlTueHtO2gGSg7n-W%7c5FLwitaNeK2BMM2ZO4CplRt7TZaQGqgP0KuuLgRsIRYo_us642sokZneBBrwLYjhXBmWhG%7c1275463496; domain=.paypal.com; path=/; Secure; HttpOnly

Set-Cookie: cookie_check=yes; expires=Sat, 30-May-2020 07:24:56 GMT; domain=.paypal.com; path=/; Secure; HttpOnly

Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly

Set-Cookie: navlns=0; expires=Tue, 28-May-2030 07:24:56 GMT; domain=.paypal.com; path=/; Secure; HttpOnly

Set-Cookie: Apache=10.191.196.11.177741275463495440; path=/; expires=Tue, 19-Apr-04 00:56:39 GMT

Connection: close

Content-Type: text/html; charset=UTF-8



INVALID

etlynch

I am having a similiar issue. For some reason at checkout PAYPAL takes the money but doesn't send a download email at all. I tried to manually re-send in the adminitration orders, but still nothing.

Can you help?

stinga

hmm, sandbox, I don't give suggestion on the sandbox because in my experience it does not work the same as PayPal. Try the real thing and see what happens.

Where is this error coming from?
Stinga.
614869 products in 747 categories with 15749 products in 1 category.
                                             Document Complete   Fully Loaded
                Load Time First Byte Start Render   Time      Requests      Time      Requests
First View     2.470s     0.635s     1.276s          2.470s       31            2.470s      31
Repeat View  1.064s     0.561s     1.100s          1.064s       4             1.221s       4