Title: Many PHP errors
Last modified: September 11, 2025

---

# Many PHP errors

 *  [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [9 months ago](https://wordpress.org/support/topic/many-php-errors-5/)
 * Hi there,
 * Our error logs are being spammed with this:
   2025/09/11 10:09:06 [error] 61710#
   61710: *278532 FastCGI sent in stderr: “PHP message: get_cart was called incorrectly.
   Get cart should not be called before the wp_loaded action. Backtrace: require_once(‘
   wp-load.php’), require_once(‘/path/to/wp-config.php’), require_once(‘wp-settings.
   php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Stripe-
   >maybe_toggle_payment_methods, WC_Stripe->maybe_deactivate_bnpls, WC_Stripe_Helper::
   has_gateway_plugin_active, WooCommerce->__get, WooCommerce->payment_gateways,
   WC_Payment_Gateways::instance, WC_Payment_Gateways->__construct, WC_Payment_Gateways-
   >init, WC_TP_Gateway->__construct, WC_TP_Gateway->update_payment_address_details,
   WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3” 
   while reading response header from upstream, client: 193.117.143.66, server: 
   [http://www.example.org.uk](http://www.example.org.uk), request: “POST /wp/wp-
   admin/admin-ajax.php HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-
   example.sock:”, host: “www.example.org.uk:23884”, referrer: “[https://www.example.org.uk/wp/wp-admin/edit.php?post_type=page&page=cms-tpv-page-page&#8221](https://www.example.org.uk/wp/wp-admin/edit.php?post_type=page&page=cms-tpv-page-page&#8221);

Viewing 1 replies (of 1 total)

 *  Plugin Author [Trust Payments](https://wordpress.org/support/users/trustpayments/)
 * (@trustpayments)
 * [7 months ago](https://wordpress.org/support/topic/many-php-errors-5/#post-18715029)
 * Hi codepuncher,
 * Thank you for bringing this to our attention.
 * The notice you’re seeing occurs because certain functions in the plugin are being
   initialised too early in the WordPress loading sequence — specifically before
   WordPress has fully loaded.
 * We’ve already addressed this behaviour by restructuring the plugin initialisation
   in our development pipeline (Ticket #132). However, the version you’re currently
   using (2.0.1) doesn’t yet include these fixes, which is why the notice is still
   appearing.
 * The corrected version will be included in our next release. In the meantime, 
   this notice shouldn’t affect the functionality of your site — it’s a warning 
   about the timing of function calls rather than a critical error.
 * If you’re experiencing any functional issues related to this, or if you’d like
   to discuss upgrading to a version that includes the fix once available, please
   let us know and we’ll be happy to assist.
 * 
   For future inquiries, support requests, or comments, we recommend contacting
   our support team directly at [support@trustpayments.com](https://wordpress.org/support/topic/many-php-errors-5/support@trustpayments.com?output_format=md).
   This allows us to provide you with formal and timely responses.We appreciate 
   your cooperation and look forward to resolving your issue.Kind regards,Trust 
   Payments

Viewing 1 replies (of 1 total)

The topic ‘Many PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/trust-payments-hosted-payment-pages-integration/assets/icon.
   svg?rev=2990994)
 * [Trust Payments Gateway for WooCommerce](https://wordpress.org/plugins/trust-payments-hosted-payment-pages-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trust-payments-hosted-payment-pages-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trust-payments-hosted-payment-pages-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/trust-payments-hosted-payment-pages-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trust-payments-hosted-payment-pages-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trust-payments-hosted-payment-pages-integration/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Trust Payments](https://wordpress.org/support/users/trustpayments/)
 * Last activity: [7 months ago](https://wordpress.org/support/topic/many-php-errors-5/#post-18715029)
 * Status: not resolved