Hi I've been trying to get my PayPal IPN in aMember Pro working properly. Using the script as supplied (but forcing the use of the Eliteweaver.co.uk test site by commenting out the PayPal option) the script fails to respond when tested - ie the Eliteweaver script receives no response. I used the Eliteweaver IPN script to hack a solution - slotting in the processing for aMember around their code and changing a variables as necessary. That got the IPN script responding to the Eliteweaver test script. However, the IPN script would not do any processing of the data. It seems from the error messages generated that none of the functions and classes needed from outside of ipn.php are available. This would explain why the 'as supplied' script didn't respond to the Eliteweaver script - it hit the $db->log_error just after the payer and receiver email check and crashed before responding. I commented out the $db->log_error call and the script did respond correctly to Eliteweaver but generated "Fatal error: Call to undefined function: fatal_error()" for the first external call it encountered. I tested the very same IPN about 6 weeks before Christmas and it worked OK. So it looks like my host may have altered a setting that has affected this script - but the rest of aMember seems to work just fine and I've been testing it quite heavily over the past week. Any ideas on how I can solve this?
Nick, thank you very much for your efforts and for testing my code. Could you just explain me goal of this action? This code is working for almost 2 years and I see no reasons for you to debug it.
I need to put a line in the IPN script to send the details to Ultimate Affiliate, hence the need to test the script with this new functionality. The unusual part of this is that I uploaded a clean and unamended version (except for forcing it to the test site) of the IPN script to test and it still failed to reply to the test script and generated the same errors I described in my first post. The external calls and functions don't seem to be available to the IPN script - I don't for a moment believe this is the result of your script as it was working fine without the UA add in several months ago. But something has changed and I need some help to identify what that might be. Thanks for the quick response.
OK, now it is clear. You choosed a nice title for such topic! Nick, aMember Pro has special option to relay IPN post to an additional IPN address. Have a look to aMember CP -> Setup -> PayPal Regarding aMember Free, I would be happy to help, but testing code which you see, is not so easy to make it working - unfortunately.
The title is acurrate - the IPN script does not appear to function in any form, with or without my UA modification. The external calls to functions and classes are not working because the functions and classes are not recognised. Can't use this because I want the IPN to trigger the sale cgi only when the transaction is a completed payment. As I said previously, I don't think it is your script that is at fault but I do not understand why the external classes and functions are not available to the IPN script. Please take a look at the test results to see what I mean. http://www.eliteweaver.co.uk/testing/ipntest.php then put in the ipn script as: http://the-inner-circle.biz/members/plugins/payment/paypal_r/ipn.php Leave the other inputs as is and submit, then when you get a successful response click on 'Follow IPN' to see where it falls over! Some ideas on what could cause the external classes and functions to be undefined would be appreciated. Thanks in anticipation
May be you will install and configure the script first? I see you not followed manual and did not run setup.php
If you had read my posts perhaps you would have gathered that I had the script properly installed and running just fine yesterday, having followed the manual and run setup several months ago. A quick post to say that my config file might had become corrupted or deleted and perhaps I should re-run setup would have been polite. Sarcasm and a poor attitude won't win you friends or influence people. I made it clear from the very first post that I did not believe your script was at fault. The title of this thread reflected what I was experiencing and was not intended to put your work in a bad light. During my testing today it looks like I uploaded a blank version of the config file by mistake. Re-running setup has cured the problem. My mistake - I will fall on my sword! A good rule for business - don't treat your valuable customers as illiterate children, they pay your wages! Maybe you should look out your sword too...
Nick, I'm sorry I was not going to offend you. Your advice is absolutely correct and I'm trying to always follow these rules and require the same from our staff, but I'm really touched by title of this topic in relation with topic context.