Rerror since upgrade to latest WordPress

  • Unknown's avatar

    I have noticed an error in the .wp-adminerror_log which started on 27th March 25 which I think aligns with the upgrade of WordPress to the latest version.

    The error that is repeated on every order is

    [27-Mar-2025 12:03:40 UTC] wc_get_order was called incorrectly. wc_get_order should not be called before post types are registered (woocommerce_after_register_post_type action) Backtrace: 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, wp_widgets_init, do_action(‘widgets_init’), WP_Hook->do_action, WP_Hook->apply_filters, Brightplugins_COSSettings->pluginOptions, Brightplugins_COSSettings->getPaymentOptions, WooCommerce->__get, WooCommerce->payment_gateways, WC_Payment_Gateways::instance, WC_Payment_Gateways->__construct, WC_Payment_Gateways->init, apply_filters(‘woocommerce_payment_gateways’), WP_Hook->apply_filters, WooCommercePayPalCommerceCompatPPECSubscriptionsHandler->add_mock_ppec_gateway, WooCommercePayPalCommerceCompatPPECSubscriptionsHandler->should_mock_ppec_gateway, wc_get_order, wc_doing_it_wrong. This message was added in version 2.5.

    Can you provide any guidance on how to resolve this error please?

    Thanks

    The blog I need help with is: (visible only to logged in users)

  • The topic ‘Rerror since upgrade to latest WordPress’ is closed to new replies.