• 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, 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”

Viewing 1 replies (of 1 total)
  • Plugin Author Trust Payments

    (@trustpayments)

    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 [email protected]. 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.