• Resolved mrruim

    (@mrruim)


    After receiving an email from two potential buyers advising that when they push the “Proceed to PayPal” button they get a 404 error on the website we tested and found that this error/bug is happening.

    We are using PayPal Express.

    After some hours trying to understand/solve the problem we finally found that this error does not happen only when we have checked the checkbox “Save Abandoned Checkouts” on PayPal Express Checkout settings. If this option is not checked the buyers get a 404 page error on the website without ever being redirected to PayPal.

    Is this a normal behaviour of the plugin?

    Of course we are getting “pending” orders (that’s what this option promises to do and should do). But the plugin should work with this option unchecked.

    Are we missing something? Thanks in advanced for all your feedback

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor angelleye

    (@angelleye)

    No, that is not normal at all. We don’t have any other reports of that and I’m not able to reproduce it myself.

    To be clear, you’re saying that if you DO check that option to Save Abandoned Checkouts, then it works fine? But if you do NOT have it checked, then you get a 404?

    Can you tell me what URL specifically it’s using when the 404 comes up? That means the WP system can’t find the page/methods it’s looking for, so that would lead me to believe there could be something going on with your permalinks or maybe something unique in your .htaccess file..?? Also good to make sure you completely clear out any caching / CDN tools as well as local browser cache and see if that sort of issue continues.

    Please verify which version of everything you’re running, too (ie. WooCommerce, our plugin, WP itself). Are you fully updated on everything?

    Thread Starter mrruim

    (@mrruim)

    Hello angelleye and thanks for your reply.

    I can assure that this is happening. When i saw your reply i reproduced the problem again. With the option “Save Abandoned Checkouts” on PayPal Express Checkout settings. checked we get redirected to paypal page to this permalink (i replaced the order with xxxxxxxxx):

    https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=EC-xxxxxxxxxxxxxxx#/checkout/guest

    Unchecked we get a 404 error and this is the permalink:

    http://mydomain.com/wc-api/WC_Gateway_PayPal_Express_AngellEYE/?pp_action=set_express_checkout

    Wordpress: 4.8.1
    No cache plugins or CDN Tools/services

    All my plugins are updated (except layer slider missing one minor update:
    Polylang | LayerSlider | Adminimize | Akismet Anti-Spam | Contact Form 7 Polylang extension | Contact Form 7 | Disable WooCommerce Reviews | Email Address Encoder |
    Erident Custom Login and Dashboard | Fusion Builder | Fusion Core | MainWP Child | Multibanco (gateway IfthenPay) para WooCommerce | NIF (Num. de Contribuinte Português) para WooCommerce | | oik weight zone shipping | PayPal for WooCommerce | Polylang Theme Strings | Protect Uploads | Hyyan WooCommerce Polylang Integration | WooCommerce Menu Extension | WooCommerce | Yoast SEO | Slimstat Analytics

    .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    # BEGIN MainWP

    # END MainWP

    Thread Starter mrruim

    (@mrruim)

    After a huge search i found a possible conflict with the plugin Polylang.

    But it´s strange.

    I disabled all the plugins except the one i need for the theme and woocommerce and the error goes away: Fusion Builder | Fusion Core | oik weight zone shipping | PayPal for WooCommerce | WooCommerce

    Then i activated polylang and the error is there but (and thats the strange thing):

    With PolyLang active and Save Abandoned Checkouts” on PayPal Express Checkout settings checked: NO ERROR

    With PolyLang active and Save Abandoned Checkouts” on PayPal Express Checkout settings unchecked: ERROR

    Plugin Contributor angelleye

    (@angelleye)

    Okay, at least you’ve narrowed it down. We’ll see if we can reproduce that and get a fix included on the 1.4.6.3 update we’re just about to release.

    Plugin Contributor angelleye

    (@angelleye)

    So this is odd. In our testing we actually can’t get Polylang to play nicely no matter how that setting is configured.

    We looked back in our history and found this thread: https://github.com/angelleye/paypal-woocommerce/issues/666

    Within that are links to other threads where it’s explained that WC()->api_request_url does not work well with Polylang.

    So we’re a little unsure how you’re getting it to work at all..??

    Thread Starter mrruim

    (@mrruim)

    Hello again

    I just migrate everything to WPML and after a lot of work everything is working fine now.
    Somehow it´s a conflict with Polylang since they upgraded the plugin because everything was working on month ago.

    Thank so much for your time and for your plugin. Very easy to work with. I think is the best!

    Cheers!

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    @mrruim, We are glad to help, Please do share your love for our plugin on the reviews page so that others would also know this.
    As such, I’m going to mark this thread as complete, but feel free to write here again if you need any assistance.
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Proceed to PayPal button (PayPal Express) creates a 404 error on site’ is closed to new replies.