• Resolved mmbait

    (@mmbait)


    I have recently set up my woocoomerce store. As I am South African, I am following the FNB bank/Paypal protocols for setup. I am using Woocomerce Paypal Payments gateway. I am also using Woocommerce Multi Currency Premium. I am using shared hosting with a dedicated IP and cloudflare CDN, and free version of Wordfence. Checked the SSL and it is fine.

    Every sale the store makes is failing/rejected before the sale can go through. Initially I called paypal, and they looked at my setup and said there is nothing wrong on their end. I have tried contacting Woocommerce, but no response.

    The woocommerce error log is showing fatal-errors:

    CRITICAL Uncaught wfAPICallErrorResponseException: WordFence API error: Unable to perform a WHOIS lookup on the value provided. in /home/thedntcc/public_html/wp-content/plugins/wordfence/lib/wfAPI.php:104
    Stack trace:
    #0 /home/thedntcc/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php(4697): wfAPI->call('whois', Array, Array)
    #1 /home/thedntcc/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php(1502): wordfence::ajax_whois_callback()
    #2 /home/thedntcc/public_html/wp-includes/class-wp-hook.php(303): wordfence::ajaxReceiver('')
    #3 /home/thedntcc/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #4 /home/thedntcc/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/thedntcc/public_html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_wordfen...')
    #6 {main}
      thrown in /home/thedntcc/public_html/wp-content/plugins/wordfence/lib/wfAPI.php on line 104

    It seems that this might be a Wordfence problem, but I have no idea what this means or how to fix it.

    I would be very grateful if someone can point me in the right direction.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @mmbait,

    We have seen this error come up in rare cases when a non-IP value is sent to this function and there is currently a ticket for prevention of the fatal error as a result.

    Ultimately though, I’d like to figure out whether your store transactions succeed when the value that is causing the fatal is passed without going through Wordfence. Could you please disable Wordfence and try a transaction that was previously failing? If it succeeds, we may need to look into some options to resolve this for you. If it fails, there is something wrong with the communication elsewhere.

    Thanks,

    Peter.

    Thread Starter mmbait

    (@mmbait)

    I disabled wordfence, and tried again. It is still failing.
    Previously(with wordfence active), the order would go through, and then fail. Now the order cannot be completed at all. It just gives ‘something went wrong’ message on the checkout page.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @mmbait,

    It certainly seems like a communications issue, which was triggering a fatal error inside of Wordfence when the invalid value was passed through it. However, now the communication is failing somewhere different, you may need to re-check your PHP/WooCommerce error logs to see what is causing the “Something went wrong” message. The timestamps of your tests should match up with some error lines to help make this easier.

    However, as things are still going wrong with Wordfence out of the equation, if WooCommerce or the developer of your additional components can’t assist, your host would be the next support channel to approach with your error log information. I strongly suspect something on Cloudflare blocking the communication to/from your site.

    I have seen the Cloudflare firewall needing the site’s own IP(s) adding to their whitelist. You may need to add these under Cloudflare’s “rules” and “tools” sections if you haven’t already. If you don’t know your site’s IP, it can be found in Wordfence on the page Tools > Diagnostics > Connectivity > IP(s) used by this server.

    Let me know what you find out.

    Thanks again,

    Peter.

    Thread Starter mmbait

    (@mmbait)

    Thanks so much for the input. I will let you know what happens next

    Plugin Support wfpeter

    (@wfpeter)

    Thanks @mmbait, tickets are usually open without response for around 7 days so let us know what you find out.

    Peter.

    Thread Starter mmbait

    (@mmbait)

    I

    • This reply was modified 3 years, 3 months ago by mmbait.
    Plugin Support wfpeter

    (@wfpeter)

    Hi @mmbait,

    I assume you’re keeping the topic alive which is fine so I know to expect a future response, but if your edit accidentally deleted any information, I’m also here to see it when you provide it.

    Thanks,

    Peter.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wordfence error/Paypal payment fail’ is closed to new replies.