• Resolved trevellfr

    (@trevellfr)


    Hi all,

    Since a few weeks ago, I have had a few error logs with names like this:

    place-order-debug-239d1572-2025-07-31 :

    2025-07-31T07:50:03+00:00 Débogage [Shortcode #1] Place Order flow initiated
    Contexte supplémentaire { “order_uid”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”, “store_url”: “https://example.com“, “backtrace”: [ { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-checkout.php”, “line”: 1301, “function”: “wc_log_order_step” }, { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-ajax.php”, “line”: 543, “function”: “process_checkout”, “class”: “WC_Checkout”, “type”: “->” }, { “file”: “/home/xxxxx/xxxxx/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “checkout”, “class”: “WC_AJAX”, “type”: “::” } ], “remote-logging”: false }

    2025-07-31T07:50:03+00:00 Débogage [Shortcode #2] Session updated with checkout data and totals calculated
    Contexte supplémentaire { “order_uid”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”, “store_url”: “https://example.com“, “backtrace”: [ { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-checkout.php”, “line”: 1318, “function”: “wc_log_order_step” }, { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-ajax.php”, “line”: 543, “function”: “process_checkout”, “class”: “WC_Checkout”, “type”: “->” }, { “file”: “/home/xxxxx/xxxxx/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “checkout”, “class”: “WC_AJAX”, “type”: “::” } ], “remote-logging”: false }

    Another place-order-debug-xxxxxxxxxxxxxxxxxxx :

    2025-07-31T07:47:39+00:00 Débogage [Shortcode #1] Place Order flow initiated
    Contexte supplémentaire { “order_uid”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”, “store_url”: “https://example.com“, “backtrace”: [ { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-checkout.php”, “line”: 1301, “function”: “wc_log_order_step” }, { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-ajax.php”, “line”: 543, “function”: “process_checkout”, “class”: “WC_Checkout”, “type”: “->” }, { “file”: “/home/xxxxx/xxxxx/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “checkout”, “class”: “WC_AJAX”, “type”: “::” } ], “remote-logging”: false }

    2025-07-31T07:47:39+00:00 Débogage [Shortcode #2] Session updated with checkout data and totals calculated
    Contexte supplémentaire { “order_uid”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”, “store_url”: “https://example.com“, “backtrace”: [ { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-checkout.php”, “line”: 1318, “function”: “wc_log_order_step” }, { “file”: “/home/xxxxx/xxxxx/wp-content/plugins/woocommerce/includes/class-wc-ajax.php”, “line”: 543, “function”: “process_checkout”, “class”: “WC_Checkout”, “type”: “->” }, { “file”: “/home/xxxxx/xxxxx/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “checkout”, “class”: “WC_AJAX”, “type”: “::” } ], “remote-logging”: false }

    Of course I don’t activate wp-config debug and I have Woo and WordPress at the last version.

    So is it normal ?

    Best, Bruno.

    • This topic was modified 9 months ago by trevellfr.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @trevellfr,

    Thanks for sharing the log file you’re seeing. What you’re looking at is part of WooCommerce’s new debug logging system introduced to better trace what’s happening during checkout. Specifically, the place-order-debug log tracks the order placement flow step by step. It’s mostly meant for developers or support teams and doesn’t indicate an error by itself.

    So unless you’re actively seeing checkout failures or related PHP errors, there’s no cause for concern.

    If you’d rather not see these logs, you can disable WooCommerce debug mode in wp-config.php file. Make sure the following lines are either not present or set to false:

    define('WP_DEBUG', false);
    define('WC_LOGGING', false); // optional

    WooCommerce started including this type of logging more visibly from version 8.6 onward to help debug checkout issues more efficiently. So if everything’s working fine on your site, you’re good to go.

    Let me know if you have any question or noticing any other issue on your site.

    Thread Starter trevellfr

    (@trevellfr)

    Perfect !

    Thk you.

    Bruno

    @trevellfr, I’m really glad to hear the response was helpful.

    If you’re enjoying the features WooCommerce offers for your business and found the support useful, we’d be grateful if you could leave us a review here: https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    If I implement the PHP function you offered above, will that disable ALL WooCommerce debugging and logging?

    I just want to disable the place-order-debug log entries. Every time a customer places an order this is logged, even if there are no issues, which makes for a bloated log file. But I still want Woo to log errors or warnings so I can quickly spot issues and resolve them.

    • This reply was modified 8 months, 2 weeks ago by Megunticook.

    Hi @megunticook,

    Thank you for reaching out. The code you shared will disable both WooCommerce and WordPress logging. If you only want to disable the place-order-debug log entries, you’ll need to use some custom code. Here are a few options you can try:

    1. Filter only place-order-debug entries

    This ensures these logs always return false and are never recorded:

    add_filter('woocommerce_logger_log_message', function($message, $level, $context) {
        // Block place-order-debug logs but allow everything else
        if (isset($context['source']) && $context['source'] === 'wc-place-order-debug') {
            return false;
        }
        return $message;
    }, 10, 3);

    2. Set the minimum log level to warnings and above

    This will only log warnings, errors, and critical issues:

    add_filter('woocommerce_logger_minimum_level', function($level) {
        return 'warning';
    });

    3. Remove the specific logging actions

    add_action('init', function() {
        remove_action('woocommerce_checkout_order_processed', 'wc_maybe_log_order_placement', 10);
    });

    Note: You only need to use one of these options. The second option is generally the safest, as it still allows important errors to be logged if they occur.

    Please note that if the codes doesn’t work for you, you may need to create a new topic so we can address your concerns more effectively as cross posting to existing topics is against the forum guideline.

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

The topic ‘place-order-debug’ is closed to new replies.