Disable TOC in RestAPI not working
-
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_contentfilter applied. - The
the_contentfilter applied. - The
the_contentfilter 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
You must be logged in to reply to this topic.