Title: recurring error message in php_errorlog
Last modified: March 27, 2021

---

# recurring error message in php_errorlog

 *  Resolved [keithhill1968](https://wordpress.org/support/users/keithhill1968/)
 * (@keithhill1968)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/)
 * hi there,
    since upgrading the afterpay payment gateway for woocommerce plugin
   I am noticing that my php error log is filling up with the notice below . A visit
   to a single page does not trigger this. Error log grew to 36mb. Other than the
   error everything appears to be be working .
 * Appreciate some help with that please
 * Current versions :
    wordpress is running 5.7
 * woocommerce is version 5.1.0
    BrainTree for woocommerce is version 2.5.0 Afterpay
   gateway is 2.2.2
 * [26-Mar-2021 22:19:31 UTC] get_cart was called incorrectly. Get cart should not
   be called before the wp_loaded action. Backtrace: require(‘wp-blog-header.php’),
   require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-
   settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters,
   WC_Braintree->maybe_init_apple_pay, SkyVerge\WooCommerce\PluginFramework\v5_10_5\
   SV_WC_Payment_Gateway_Plugin->maybe_init_apple_pay, WC_Braintree->build_apple_pay_instance,
   SkyVerge\WooCommerce\PluginFramework\v5_10_5\SV_WC_Payment_Gateway_Apple_Pay-
   >__construct, SkyVerge\WooCommerce\PluginFramework\v5_10_5\Payment_Gateway\External_Checkout\
   External_Checkout->__construct, SkyVerge\WooCommerce\PluginFramework\v5_10_5\
   Payment_Gateway\External_Checkout\External_Checkout->init, SkyVerge\WooCommerce\
   PluginFramework\v5_10_5\Payment_Gateway\External_Checkout\External_Checkout->
   get_processing_gateway, SkyVerge\WooCommerce\PluginFramework\v5_10_5\Payment_Gateway\
   External_Checkout\External_Checkout->get_supporting_gateways, WC_Payment_Gateways-
   >get_available_payment_gateways, apply_filters(‘woocommerce_available_payment_gateways’),
   WP_Hook->apply_filters, WC_Gateway_Afterpay->check_cart_within_limits, WC_Cart-
   >get_cart, wc_doing_it_wrong. This message was added in version 2.3.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frecurring-error-message-in-php_errorlog%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [keithhill1968](https://wordpress.org/support/users/keithhill1968/)
 * (@keithhill1968)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/#post-14242028)
 * Its probably also worth noting, I copied that site to the a staging environment
   and disabled the afterpay gateway this has stopped the error, but we don’t want
   to switch off afterpay on our live site.
 * Thanks
    Keith
 *  Thread Starter [keithhill1968](https://wordpress.org/support/users/keithhill1968/)
 * (@keithhill1968)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/#post-14251899)
 * Hi there guys,
    is there any update on this please, my log files are continuing
   to grow.
 * Thanks
    Keith
 *  Thread Starter [keithhill1968](https://wordpress.org/support/users/keithhill1968/)
 * (@keithhill1968)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/#post-14281098)
 * I have submitted a request directly on the afterpay web site for help looking
   into this. I’ll follow up there.
 * Thanks
    Keith
    -  This reply was modified 5 years, 2 months ago by [keithhill1968](https://wordpress.org/support/users/keithhill1968/).
 *  Plugin Author [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * (@afterpayit)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/#post-14339682)
 * Hi [@keithhill1968](https://wordpress.org/support/users/keithhill1968/),
 * Thank you for your patience in this matter. The level of detail provided in this
   ticket is appreciated. As this has been resolved by alternative channels this
   ticket will now be closed.
 * Thank you.

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

The topic ‘recurring error message in php_errorlog’ is closed to new replies.

 * ![](https://ps.w.org/afterpay-gateway-for-woocommerce/assets/icon.svg?rev=3261877)
 * [Afterpay Gateway for WooCommerce](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/recurring-error-message-in-php_errorlog/#post-14339682)
 * Status: resolved