Having issues with the fundraising gateway.(CODE)580029

Having issues with the fundraising gateway.(CODE)580029 https://heavenscatalyst.org/fundraisers/voice-over-translator/

  • Patrick
    • Support Monkey

    Hey there @andy

    Welcome to the forums, glad to have you aboard!

    That particular error code will appear if some information pertinent to crowdfunding has been entered in your settings incorrectly.

    The first thing to check is that your credentials are the correct ones for the PayPal mode you have selected (sandbox or live). Also be sure there are no blank spaces either before or after anything you enter for those settings (can easily happen when copy/pasting them from PayPal).

    Then, if you are in live mode, be sure the Application ID is also correct.

    Finally, in the individual fundraiser, be sure you have indeed set start and end dates, as well as a goal (all are required for crowdfunding).

    Please let us know if all your settings are correct and, if so, we’ll dig deeper.

    I hope this helps! And thanks for being a member :slight_smile:

  • Andy
    • New Recruit

    Hi Patrick,

    thanks. And yes this was the first things I checked and redid it again – copy and paste no spaces. The codes are correct, I had paypal test the codes and it worked. They said the information is not going to them correctly (missing something). It is in live mode.

    Thanks

  • Andy
    • New Recruit

    Hi Ash,

    Tried that, goes off the paypal, returned to the site with the following message, “Oh No, we can’t find your Donation. Sometimes it take a few moments for your Donation to be logged. You can try refreshing this page”

    Does the site log the paypal amount or do I need to go to paypal to log it.

    Also where do I change this link looks like WPMU has a preset return link.

    Thanks

  • Andy
    • New Recruit

    Hi Patrick, the paypal payment went through for donations, also it went through for fundraising however on the return back to the site (after doing the paypal transaction). It says “Oh No, we can’t find your Donation. Sometimes it take a few moments for your Donation to be logged. You can try refreshing this page” After refreshing nothing happens. So I am left with 2 options

    1) Do a manual update on the website (so need to keep checking the paypal) then I would need to ensure the link goes back to the right place on the site. (where do I do this)

    2) It automatically updates the website donation or fundraiser (if so how can we make this happen)

    Thanks

  • Michael Bissett
    • Recruit

    Hey @andy, thanks for your patience here! :slight_smile:

    I’ve taken the liberty of extending your membership for an extra week, so we can get this issue resolved for you. :slight_smile:

    Just to confirm, you’re seeing that payments are successfully made inside of PayPal, but that they’re not showing up in Fundraising (even after a fair amount of time), right?

    Would you happen to be using any caching plugins on your site at all? Have you already tried disabling the other plugins on your site temporarily, and making another test donation, just to make sure that none of those are interfering?

    Please advise,

    Michael

  • Andy
    • New Recruit

    Thanks Michael, Regarding you question. Yes after sometime it is not showing up in Fundraising.

    Not sure if some are caching plugins, is it possible for me to show you the plugins and you tell me. I have de-actived a few already and still the same.

    Thanks

  • Michael Bissett
    • Recruit

    Hey @andy,

    I’m not seeing that Support Access is enabled presently, but since this seems like a job that would require a deeper look than what Support Access provides, could you instead send in the following please?

    – In the subject field add “Attn: Michael Bissett”

    – Link back to this thread

    – Include WordPress admin access details

    – Include FTP log-in details

    – Include any relevant URLs for your site

    On the contact form, select “I have a different question“, this ensures it comes through and gets assigned to me.

    https://premium.wpmudev.org/contact/

    Thanks a bunch! :slight_smile:

    Regards,

    Michael

  • Andy
    • New Recruit

    Michael – Having a problem giving access – see attached. Also when go to the support requests tab I am unable. Little hesitant providing the details on an open forum can I send you a private email instead with the details you requested. Thanks

  • Michael Bissett
    • Recruit

    Hey @andy,

    Michael – Having a problem giving access – see attached. Also when go to the support requests tab I am unable. Little hesitant providing the details on an open forum can I send you a private email instead with the details you requested. Thanks

    No worries, the contact form that I linked to is secure, and the details won’t be posted here on the forums. :slight_smile:

    If you could post here when you’ve sent those login details over, that’d be great! :smiley:

    Regards,

    Michael

  • Jose
    • Bruno Diaz

    @andy,

    I was running several test using a sandbox paypal config.

    Everything seems to work correctly is the IPN call is triggered.

    You can see the images attached. (disregard the project info, it's wrong because the IPN was triggered by hand using dummy data).

    I turned the settings back to you live paypal account and added some trace logs into the IPN handler code.

    I'll need from you to let me know when a real payment is processed, so that I can check if the IPN handler is actually being called or not.

    I'm calling @michael Bissett and @ashok again to see if they can assist you in troubleshooting you IPN configuration in the live gateway.

    Please let me know once a new payment is processed and I'll take a look at the log file.

    Thanks,

    Jose

  • Jose
    • Bruno Diaz

    @andy,

    According to paypal, the site is returning an HTTP response code 400 (Bad request).

    Can you please copy all the information above in text mode and send it to me via email?

    Also, I’ll need you to contact your host provider and ask the following:

    – Verify that your firewall is not blocking HTTP POST request messages from PayPal.

    – Provide your web server’s access and error logs.

    The access log tells you whether your server is receiving IPN messages at all, while the error log lists any errors that have occurred on your server.

    Thanks,

    Jose

  • Andy
    • New Recruit

    Here is their feedback – The HTTP POST request messages from PayPal is not blocked by our server. You can find access log in stats folder of your account. You can download the access logs via FileManager to your local machine and then open it using text editor softwares like Wordpad, Notepad etc. Could you please ask your web designer to try by resending IPN? If still you are experncing the issue, please let us know.

  • Jose
    • Bruno Diaz

    @andy,

    According to the access logs, the IPN call is returning a HTTP code 406:

    173.0.82.126 - - [30/Aug/2014:13:30:30 -0400] "POST /wp-admin/admin-ajax.php?action=wdf-ipn-return-paypal&fundraiser=380&pledge_id=9bd62b89b644&custom=0||0||0||0||0||0||0 HTTP/1.1" 406 274 "-" "-"

    This error, when not related to a bug in the code (which it is not the case since the plugin works fine in other environments), is commonly caused by the security module mod_security in your server.

    I added the following lines to your .htaccess in order to disable the security filters:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    This might solve the issue. So, please try to make a donation and let me know if it works.

    If the problem still exists, please contact your host again and ask them if the mod_security module is enabled and if they can help you to turn it off.

    It’s important to mention that you can turn off only specific security filter rules, instead of disabling the whole module.

    Please let me know how it goes. I’ll be waiting for your feedback :slight_smile:

    Thanks,

    Jose

  • Andy
    • New Recruit

    Ok this didn’t work – this is the feedback I am getting. The amount was logged into Paypal but the return was error per below. I will send what you sent to my host provider. Let me know what to do

    I made a donation – It says

    Heaven’s Catalyst Global Expansion. Oh No, we can’t find your Donation. Sometimes it take a few moments for your Donation to be logged. You can try refreshing this page

    I made a pledge

    Feed Homeless & Addicts Toronto

    Oh No, we can’t find your Donation. Sometimes it take a few moments for your Donation to be logged. You can try refreshing this page

  • Andy
    • New Recruit

    This is what they sent me – domain.com is very reputable hosting.

    Unfortunately, it is not possible to disable the mod_security on our server due to security measures. The mod security is one of the greatest security tool to secure the web content to be hacked/injected. Also, it is not possible to turn off specific security filter rules. These settings are enabled for protect your website and security is the prime concern on our server. If you have any further questions, please let us know. We would be happy to help you.

  • Andy
    • New Recruit

    They responded with – Hello,

    I’m unable to understand the nature your previous inbound at Sep 1, 2014 2:31 PM . We need more information in order to investigate further. Could you please elaborate your inquiry? It would be helpful for us to troubleshoot and address the issue soon.

    If you have any further questions, please let us know. We would be happy to help you.

    Sincerely,

    Ravi B

    Senior Technical Specialist

    Could I put you in direct contact with them?

  • Andy
    • New Recruit

    Firstly understand that it is speculation that the hosting is stopping the return from paypal. There is no evidence. The hosting has security measures in place but this is the general security. They believe it is the plugin link to the database. They have other hosting crowdfunding and donations there aren’t any issues. I’m going to see if I can try find another hosting to provide this – but this is taking alot of work. I’m asking the hosting for other crowdfunding pluggin’s that they know of that would work and try this first before moving to another hosting.

  • Andy
    • New Recruit

    The hosting said that the update you did on .htaccess turned the mod_security off. So it is no longer active.

    “Sorry for the inconvenience caused. I could see you have added code in the .htaccess file to disable mod_security. Due to this code, mod_security is been disabled for your account. However, IPN must work fine in your account. There are no such issues reported on our server regarding the IPN functionality. So, I would request you to contact any WordPress specialists and check what is causing the issue. “

  • Ash
    • WordPress Hacker

    Hi @andy

    Sorry to hear about this :slight_frown:

    We won’t ask you to change hosting, but you plan to change please feel free to let us know, we will help you about any issue. Before buying any new hosting maybe it’s better to confirm with the host about the issue that you got in current hosting.

    Cheers

    Ash

  • Jose
    • Bruno Diaz

    Hey Andy,

    The thing here is that the IPN call is never reaching our code. It’s being blocked before that.

    The mod_security is one of the possible causes, but not the only one. Also, the lines added in .htaccess are not always honored by the server, it depends on how it is configured.

    So, this should be something wrong with the server or paypal side. I would be glad to debug our code if the call reach the handler, but unfortunately that’s not the case.

    I’m out of ideas in our side. So, please let us know if you find a way to configure at least a demo site in another server using the same paypal configuration.

    I’ll extend your membership if necessary until this is solved.

    Cheers,

    Jose

  • Andy
    • New Recruit

    Hello Jose,

    Thank you for your reply.

    There is no server-side issues and the mod_security is already disabled by you using the code in your .htaccess file. The updated code works fine. However, it looks like an issue with the WordPress plugin that you’re using. Could you please re-install and re-configure the plugin that you’re using and check how it works? You can view any error logs created by your website scripts at https://www.domain.com/controlpanel/cgiManagement/cgiErrorLog.bml .

    If the issue still persists, please provide us your WordPress log in credentials for http://heavenscatalyst.org/wp-admin and let us know the exact plugin that you’re using in your website. Also, provide us the complete steps that you’re using to purchase products in your website and duplicate the error message that you’re getting so that we can investigate further.

    Sincerely,

    Sathish A

    Senior Technical Specialist

  • Andy
    • New Recruit

    This is the comment from the Hosting

    Hello,

    I was able to duplicate the issue and unable to fix the issue. The issue seems to be with the plugin. You have to contact the plugin vender to fix the issue.

    If you have any further questions, please update the Support Console.

    Sincerely,

    Sudheer P

    Technical Specialist

  • Michael Bissett
    • Recruit

    Hey @andy,

    No worries, I just extended your membership again, we won’t leave you hanging here. :slight_smile:

    I should note though that the WordPress login you had sent previously has been set to the Subscriber role, we’ll need it to be set up as an Administrator again in order to look into this further.

    Hope that all is well over there, this issue with Fundraising notwithstanding. :slight_smile:

    Regards,

    Michael

  • Maniu
    • Developer

    Hey @andy

    Unfortunately i dont see anything else we can do here. I have heavily debugged it and it simply looks to me like mod_security is still on.

    In your replies and can see that hosting company first told you that it has to stay turned on and then they told you that it has been disabled with rules in htaccess file. There is big chance that it cant be done so easily and mod_security is still active.

    Thanks,

    Maniu

  • Andy
    • New Recruit

    Hosting feedback

    I can understand the importance of disabling mod_security for your account. You have added the code in .htaccess file to disable mod_security and is updated fine. Since you are on our shared hosting platform, it’s not possible to directly disable the same on the server, as it might effect other customers. We are not sure why the plugin: ‘Fundraising by WPMU’ is not working as it has to be. Either, it’s not supported for our shared hosting platform or it’s not fetching the .htaccess code added to disable mod_security. I would request you to contact the support team of the plugin provider and check if they have any alternative for this issue. If you are still experiencing the issue, then the only option is by signing up for a VPS account where you can customize the server as the application requires. More information of our VPS hosting is at http://www.domain.com/domaincom/hosting/vps/ .

    If you have any further questions, please update the support console.

    Sincerely,

    Devee S

    Senior Technical Specialist

  • Michael Bissett
    • Recruit

    Hey @andy,

    Seems like we’re kind of stuck here, but there’s one more thing I’d like to look into. Could you send over the login details for your site’s control panel, so that I can have a closer look at the configuration for your web hosting?

    There may be something in there that could help us here. Otherwise, it looks like you may have to move over to a VPS in order for this to work properly (either that, or a new web host is in order).

    If you could send those login details to contact(at)wpmudev.org (with the subject line Attn: Michael Bissett), that’d be great! :slight_smile:

    Please advise,

    Michael

  • Michael Bissett
    • Recruit

    Hey @andy, my apologies for the delay here!

    That looks to be the best solution for this situation, the idea that I was looking into wasn’t going to work out.

    It seemed like there was something inside the control panel that would’ve allowed us to sidestep the issue, but that didn’t turn out to be true.

    Let us know if the change to new hosting resolves this issue, or if there’s anything else we can do to help here. :slight_smile:

    Regards,

    Michael

  • Ash
    • WordPress Hacker

    Hello @andy

    I hope you are well today.

    Once the payment is completed, it will be redirected back to the fundraiser page.

    About the amount, you can set a goal. But when an user will donate, he can enter the amount he wants to pay or he can select a predefined amount.

    In the doc, it shows there is shortcode, so that you can include the fundraiser into a post or in a page or in any custom post type, even in a widget.

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers

    Ash

  • Michael Bissett
    • Recruit

    Hey @andy, hope you’re doing well today! :slight_smile:

    I’ve just extended your membership for another week, just to be sure that we’re not leaving you hanging here.

    Given the issues you’ve been having with your host regarding this, it may very well be wise to consider an entirely different host altogether. We’ve got a list of hosts that you can check out right here:

    https://premium.wpmudev.org/blog/web-hosting-review-so-just-who-is-the-best/

    We’ve also had some positive feedback from members from these hosts as well:

    – SiteGround – http://www.siteground.com/

    – DigitalOcean – https://www.digitalocean.com/

    – Site5 – http://www.site5.com/

    Let me know if I can be of further assistance here please. :slight_smile:

    Cheers,

    Michael

  • Andy
    • New Recruit

    Sorry spoke too soon. It worked for some of the transactions but not for those coming outside of North America. E.g. those coming from France get this message.

    “Oh No, we can’t find your Donation. Sometimes it take a few moments for your Donation to be logged. You can try refreshing this page”

    Then they refresh and still the same message.

    It doesn’t log the amount in nor does it take them to the right page.

    Let me know if I need to change something. Thanks

  • Jose
    • Bruno Diaz

    Andy, Thanks for the patience and continous cooperation on this. :slight_smile:

    For the records, the issue was related to some encoded characters contained in the IPN message.

    The fix required to set the paypal account charset to UTF-8, and the following change in the code in the file ../fundraising/lib/gateways/paypal.php:

    The IPN verification request body was built in this way:

    $req = 'cmd=_notify-validate';
    if (!isset($_POST)) $_POST = $HTTP_POST_VARS;
    foreach ($_POST as $k => $v) {
    if (get_magic_quotes_gpc()) $v = stripslashes($v);
    $req .= '&' . $k . '=' . urlencode($v);
    }

    I changed it to this:

    $req = 'cmd=_notify-validate&' . file_get_contents("php://input");

    We haven’t had reports of similar issues and we are not sure if this method would work on other environments, so this will not be included in the production version.

    Cheers,

    Jose

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.