Title: Json syntax error when define( &#8216;WP_DEBUG&#8217;, false );
Last modified: March 26, 2025

---

# Json syntax error when define( ‘WP_DEBUG’, false );

 *  Resolved [utnalove](https://wordpress.org/support/users/utnalove/)
 * (@utnalove)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/json-syntax-error-when-define-wp_debug-false/)
 * Hello,
 * I have a similar issue to the one described [here](https://www.8theme.com/topic/elementor-theme-builder-unexpected-token/).
 * If in wp-config.php there is `define( 'WP_DEBUG', true );` all works fine. If
   I change it to false: `define( 'WP_DEBUG', true );` then problems appear.
 * For example: in “theme builder” there is only the sidebar, and in the main content
   there is ``Error: Unexpected token '<', "<br /> <b>"... is not valid JSON` instead
   of normal templates.
 * Also other functions crash with the same error that shows up in the console.log.
 * Using: Elementor 3.27.7, WP 6.7.2. Using Hello Elementor theme.
 * Troubleshooting. Disabled all the plugins (apart from Elementor), changed theme.
   The issue persists.

The topic ‘Json syntax error when define( ‘WP_DEBUG’, false );’ is closed to new
replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [utnalove](https://wordpress.org/support/users/utnalove/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/json-syntax-error-when-define-wp_debug-false/)
 * Status: resolved