Support » Plugin: iGlobal Integration » Fatal Error when WP Cron runs via CLI

  • We started seeing this error shortly after adding the iGlobal plugin:

    Uncaught exception 'Error' with message 'Call to a member function get_cart_for_session() on null' in /.../plugins/woocommerce/includes/class-wc-checkout.php:278

    The stack trace leads up to this error like so:

    .../plugins/iglobal-woocommerce-extension/includes/lib/igWC.php (308)
    .../plugins/iglobal-woocommerce-extension/includes/lib/igWC.php (164)
    .../plugins/iglobal-woocommerce-extension/includes/lib/igWC.php (33)
    .../plugins/iglobal-woocommerce-extension/iglobal-woocommerce.php (68)

    The problem is that WC_Cart is not automatically instantiated for non-frontend requests, but the plugin’s code assumes it is.

    Please fix!

    iglobal-woocommerce-extension 1.3.0
    woocommerce 3.2.6
    wp 4.9

  • The topic ‘Fatal Error when WP Cron runs via CLI’ is closed to new replies.