WordPress.org

Ready to get started?Download WordPress

Forums

Donate Plus
IPN not working (22 posts)

  1. miniguru
    Member
    Posted 2 years ago #

    Been trying to set up the IPN for the donate plus plugin but its not working.

    Want it to show the total amount, and recongnitions wall but nothing shows apart the donate form.

    I have turned on my IPN and got an e-mail that it was invalid... What do i do now. I changed the testing_mode to live_mode to get the retrying to sent but still nothing.

    Why is the url which was given by the plugin invalid?
    Also in the admin area donate plus nothing shows and i know people have been donating.

    http://wordpress.org/extend/plugins/donate-plus/

  2. miniguru
    Member
    Posted 2 years ago #

    I have been looking around at all the other forums.
    Changed $port = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
    Made sure all was correct in paypal.
    Deleted all other plugins.
    Nothing is showing. No recognitions wall, no total amount and nothing in the admin area showing all who have donated nothing seems to be working... Help would be really grateful as it’s a great plugin but getting very frustrated now with nothing working the way it should!

  3. etstow
    Member
    Posted 2 years ago #

    Here's how I fixed it...

    In the donate-plus.php file there are two instances of something like this...
    str_replace(ABSPATH, trailingslashit(get_option('siteurl')), dirname(__FILE__)).'/paypal.php'

    Replace the first so it looks something like this...
    <?php _e('http://www.WEBSITE.COM/wp-content/plugins/donate-plus/paypal.php','dplus');?>

    The second should be...
    $notify = 'http://www.WEBSITE.COM/wp-content/plugins/donate-plus/paypal.php';

    Hope that helps!

  4. Jdamonte
    Member
    Posted 2 years ago #

    I have had same problem on a multi site set up. Donate Plus used to work fine until WP 3.3 was installed.

    Question - should the code have one's own domain replace the 'WEBSITE.COM' or should it be replaced with the sub-domain?

    Thanks

  5. dvir.levy
    Member
    Posted 2 years ago #

    Hello I tried to set it up like @etstow said and got nothing
    did anyone ever get this fixed?

    I am running the Plugin on WordPress 3.3.2 with Multi-Site.

    Thank you

  6. etstow
    Member
    Posted 2 years ago #

    Multi site might be a problem. What if you try removing the "http://www.WEBSITE.COM" part so you have only "/wp-content/plugins/donate-plus/paypal.php"

    Make sure to check both instances of the code.

  7. dvir.levy
    Member
    Posted 2 years ago #

    what do you mean

    Make sure to check both instances of the code.

  8. etstow
    Member
    Posted 2 years ago #

    In the fix I posted above, titled "Here's how I fixed it..."

  9. dvir.levy
    Member
    Posted 2 years ago #

    ya I changed them both and the PayPal Sandbox still returns a 404

  10. etstow
    Member
    Posted 2 years ago #

    Try doing it live for like $1.00

    You can reverse the PayPal charge if you have the login.

  11. dvir.levy
    Member
    Posted 2 years ago #

    boy do i feel stupid...
    on multi-site you need to remove the "www" in the URL...
    thanks for all the help @etstow

  12. etstow
    Member
    Posted 2 years ago #

    Glad it's working for you. I gave up on it since it rounds the number if you edit the donation. $20.12 turned into $20.00 and I couldn't change it.

  13. nickharambee
    Member
    Posted 2 years ago #

    Hi,

    I am experiencing the same issue as those on this topic. I have tried with the default donate-plus.php, and with the changes suggested by etstow, with and without my base URL, and though the donations go through OK, nothing shows on my wall and the donation total is not updated.

    I'd be glad of any help to get this working. I'm not on a multi-site setup.

    Thanks,

    Nick

  14. Midget3k
    Member
    Posted 2 years ago #

    Yeah I'm having problems too. Paypal sends fail emails saying problem with the notification url error 404. Don't know if this is due to wordpress update or something at the paypal end, I'm not aware of having problems previously.

    I've tried:
    1)Etstow's solution
    2)Changing testing_mode to live_mode in paypal.php
    3)Changing back to default permalinks

    I'm not on multi-site.
    I've tried in sandbox to no avail.

    Still seems to still be writing to the donate-plus database though, as donations are appearing on wall and on the admin page.

    I've tried the IPN sample code on the paypal website and this works perfectly. However I can't get their sample script to write to database after receiving the "verified" IPN.

    Currently I've turned off IPN in Paypal, but his sort of ruins the purpose of the database and recognition wall etc!

    Any help would be much appreciated.

  15. Will D. White
    Member
    Posted 2 years ago #

    Adding my name to the list. I've tried estow's solution, disabled caching, tried default permalinks, and still no fix.

    I also tried with live transactions. Still nothing.

  16. Will D. White
    Member
    Posted 2 years ago #

    I'd also like to verify that the IPN's seem to be writing to the database. The transactions show up in my donations area. However, PayPal continues to list each IPN as Failed due to 404 errors.

  17. Will D. White
    Member
    Posted 2 years ago #

    After recognizing that the IPN is actually dumping info into the database successfully, and simply returning the wrong "Status" to PayPal, I made a temporary adjustment to the file until the plugin author can fix the issue.

    Once you have verified the IPN is working (by checking to ensure that transactions show up in the WordPress Dashboard) you can disable the 404 error altogether from the plugin by opening paypal.php and editing line 62.

    Change:
    header("Status: 404 Not Found");

    To:
    header("Status: 200 OK");

    Note: This doesn't fix the issue. It simply makes the plugin tell PayPal the IPN was received successfully no matter what. It should stop the emails from PayPal saying the IPN is broken, and should stop PayPal from disabling your IPN feature every couple weeks.

    Hopefully someone can figure out why the plugin is returning a 404 error instead of the 200 status in the first place.

  18. nickharambee
    Member
    Posted 1 year ago #

    This morning I got a message from PayPal having started to use PayPal live rather than the Sandbox. It stated:

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

    http://***URL***/wp-content/plugins/donate-plus/paypal.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.

    So, it would appear that there is an issue with IPN. I will check with my server to see if it does handle IPNs. I am getting donations added to my wall, with comments, and showing in the WP admin section. What is not currently working is the following:

    1. Recurring donations get instantly cancelled when they are set up.
    2. Donations that I have deleted from my WP Admin/MySQL table are reappearing when a new donation is made.
    3. Sometimes donations are added twice to my wall/MySQL table - once with the correct amount and one with zero amount (this may be related to issue 1)
    4. Multiple thank you emails are getting sent out.
    5. Donations with decimal places are rounded down to the nearest integer.

  19. nickharambee
    Member
    Posted 1 year ago #

    I have checked my IPN history for my PayPal account and I am seeing that each entry has "Retrying" next to it. The Error show for each entry is 404, i.e. page not found, and yet the path PayPal.php is correct.

    Making the change suggested by Will, i.e. changing

    header("Status: 404 Not Found");

    to

    header("Status: 200 OK");

    didn't make any difference to the 404 error.

  20. senortim
    Member
    Posted 1 year ago #

    @nickharambee -- Try deleting all your PayPal cookies. I had to do this to clear up **a bunch** of problems, including deleted database entries reappearing.

    For me, the problem is nothing appearing in my database at all when running in Live mode. Testing worked beautifully, but when I actually took the site live, nothing shows up in the database.

    I got the same error as Nick, but don't really know what I should do about it. I've diff'd my modifications to paypal.php with the original and don't see a single thing that could cause a problem. (My mods just add a "custom" Paypal field and pass a bunch of imploded data, through to a new/modified SQL insert.)

  21. ddsuresh
    Member
    Posted 1 year ago #

    I too had this problem of "Retrying" and 404 not found problem.
    Now i have solved it by changing the code in paypal.php

    require("../../../wp-blog-header.php");

    to

    require("../../../wp-load.php");

    Hope this will helpful to others.

  22. Midget3k
    Member
    Posted 1 year ago #

    I can confirm new version called Donate Extra has fixed the IPN issues

    http://wordpress.org/extend/plugins/donate-extra/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic