• Resolved crazybeardedman

    (@crazybeardedman)


    With the plugin version of 1.4.3 and php7.1 I am seeing message like the following. Any ideas what I am dong wrong?

    FastCGI sent in stderr: “PHP mes
    sage: get_cart was called incorrectly. Get cart should not be called before the
    wp_loaded action. Backtrace: require_once(‘wp-load.php’), require_once(‘wp-confi
    g.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action,
    WP_Hook->apply_filters, WooCommerce->init, do_action(‘woocommerce_init’), WP_Ho
    ok->do_action, WP_Hook->apply_filters, {closure}, WooCommerce->__get, WooCommerc
    e->payment_gateways, WC_Payment_Gateways::instance, WC_Payment_Gateways->__const
    ruct, WC_Payment_Gateways->init, WC_Gateway_PayPal_Pro_PayFlow_AngellEYE->__cons
    truct, AngellEYE_Utility::angelleye_paypal_for_woocommerce_is_set_sandbox_produc
    t, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter crazybeardedman

    (@crazybeardedman)

    Changing add_action( 'wp_plugins_loaded', array($this, 'init'));

    to add_action( 'wp_loaded', array($this, 'init'));

    in paypal-for-woocommerce.php fixes this.

    Plugin Contributor angelleye

    (@angelleye)

    Pretty sure we got this fixed in 1.4.4, but we’ll double check and make sure there isn’t anything we need to do in the 1.4.5 update we’re working on now.

    Plugin Contributor angelleye

    (@angelleye)

    This has been resolved in the release branch on GitHub and will be fixed in the 1.4.5 update coming soon. You can use that link to download the updated copy and apply the update manually on your site if you would like to fix it right away. Let me know if you have any questions about that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_cart was called incorrectly’ is closed to new replies.