Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m experiencing the same issue as ryonwhite above.

    wc-gateway-ppec-smart-payment-buttons.js:49 Uncaught TypeError: Cannot read property 'FUNDING' of undefined
        at getFundingMethods (wc-gateway-ppec-smart-payment-buttons.js:49)
        at render (wc-gateway-ppec-smart-payment-buttons.js:81)
        at HTMLBodyElement.dispatch (jquery.js:3)
        at HTMLBodyElement.r.handle (jquery.js:3)
        at Object.trigger (jquery.js:3)
        at Object.a.event.trigger (jquery-migrate.min.js:2)
        at HTMLBodyElement.<anonymous> (jquery.js:3)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at a.fn.init.trigger (jquery.js:3)

    Seems to be people complaining about a similar issue with the “PayPal for WooCommerce” plugin, which was shut down recently.

    Any updates for this?

    As an update, I find this is happening with a child theme that is WC ready, but it works fine in the Parent theme directly. The child theme doesn’t have anything specific to WC, but must not be loading something.

    In another browser, the error varies a little:

    TypeError: paypal is undefined wc-gateway-ppec-smart-payment-buttons.js:211:5
        render /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/assets/js/wc-gateway-ppec-smart-payment-buttons.js:211
        render self-hosted:891
        jQuery 8
        success /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js:1
        jQuery 4
    

    The issue ended up being this function in my child theme functions which removes the ?queryvars to assist with pagespeed load times:

    function _remove_script_version( $src ){
    	$parts = explode( '?', $src );
    	return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );

    hope this helps someone else.

    Plugin Contributor AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    This has been reported here: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/769

    So far, we’ve only seen similar reports in cases where the theme or other plugins are either removing querystring arguments from script URLs (see #746) or are trying to use a different version of the PayPal API JS, thus producing a conflict with the PayPal Checkout extension.

    Since we don’t know yet whether this is the case here, one thing you could try is performing a conflict test on your site, which will help us know whether the problem is the result of a conflict with your theme or another plugin. Here’s some information on how to do that: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    If that doesn’t help, we will require more information about your setup. A good first set of infois given by your site’s System Status Report, which you can generate on your admin dashboard by going to WooCommerce > Status > Get system report. You can then click “Copy for support” and paste the result in a comment here.

    @ryonwhyte – Were you able to try the conflict testing noted above? Did that help?

    – Joey

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    – Joey

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot read property ‘FUNDING’ of undefined’ is closed to new replies.