• Resolved sambacreative

    (@sambacreative)


    My WooCommerce WordPress site has functioned perfectly without issue when creating it. After connecting the site via RESTAPI to a supplier it started to show the following debug errors relating to TOC on WooCommerce pages like order, checkout, etc:

    You see the following because WP_DEBUG and WP_DEBUG_DISPLAY are enabled on this site. Please disabled these to prevent the display of these developers’ debug messages.

    • Post type is.
    • Post type is.
    • Post type is.
    • page
    • Is supported post type?
    • Is supported post type?
    • Is supported post type?
    • false
    • Is auto insert for post types?
    • Is auto insert for post types?
    • Is auto insert for post types?
    • false
    • Not supported post type and do not auto insert TOC.
    • Not supported post type and do not auto insert TOC.
    • Not supported post type and do not auto insert TOC.
    • false
    • The the_content filter applied.
    • The the_content filter applied.
    • The the_content filter applied.
    • false

    I changed settings to stop sticky TOC showing on pages and only show on [post and products. Even though sticky TOC was gone from WooCommece pages the debug data was still there. I have tried togging ‘Disable TOC in RestAPI’ n and off and clearing the cache but it doesn’t seem to resolve the issue. For now, I have had to edit the wp-config.php to ‘define( ‘WP_DEBUG_DISPLAY’, false );’ so that it isn’t showing to customers anymore but this isn’t the ideal fix. How can this error be overcome without editing wp-config.php?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us.

    We have raised a GitHub ticket regarding this concern, and it will be addressed in an upcoming update. We kindly request your patience in the meantime.

    JCV

    (@psykonevro)

    Hello,
    This topic shouldn’t be resolved.
    3 months later, it’s still active.

    Plugin Support Akshay A

    (@akshaycode1)

    @psykonevro : Hi, We are working on this and it will be addressed in the next update.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Hope you are doing well.

    We’ve reviewed the issue and confirmed that this is the expected behavior. The TOC plugin’s debug log is tied to the WordPress constants WP_DEBUG and WP_DEBUG_DISPLAY. It’s generally not recommended to keep these enabled on production sites.

    Disabling them in the wp-config.php file, as you did, is the correct and ideal approach. These constants are intended for development purposes, and the TOC plugin leverages them to provide detailed debugging information when errors occur.

    Here’s the official WordPress documentation as reference: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/

    So, we’re closing both GitHub Ticket and this thread.

    JCV

    (@psykonevro)

    Hi @akshaycode1
    We all know it’s related to the wordpress debugging. I guess we’re all developpers.
    The thing is that debugging shouldn’t be displayed automatically (allow to switch off)
    Can you imagine if you have to test 20+ plugins on your website and each one display it’s debugging?

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

You must be logged in to reply to this topic.