Title: SyntaxError: JSON Parse Error
Last modified: November 28, 2023

---

# SyntaxError: JSON Parse Error

 *  [cfhungler](https://wordpress.org/support/users/cfhungler/)
 * (@cfhungler)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error/)
 * I am getting this error every once in a while on both my desktop and mobile when
   I try to search.
 * SyntaxError: JSON Pars error; Unexpected Identifier “Unauthorized” OK Unauthorized!
 * thoughts?
    -  This topic was modified 2 years, 6 months ago by [cfhungler](https://wordpress.org/support/users/cfhungler/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntaxerror-json-parse-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [searchprosupport](https://wordpress.org/support/users/searchprosupport/)
 * (@searchprosupport)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error/#post-17268035)
 * Hi [@cfhungler](https://wordpress.org/support/users/cfhungler/),
 * To assist you more effectively, we recommend enabling debug error logs on your
   website. To do this, please follow these steps:
    1. Locate the `wp-config.php` file in your website’s root directory.
    2. Insert the following code:
 *     ```wp-block-code
          define('WP_DEBUG_LOG', true);
       ```
   
 * (Note:- If this code `define('WP_DEBUG_LOG', false);` is already there in your`
   wp-config.php` file, change the value from “false” to “true.”)
   (Reference article–
   [https://wordpress.org/documentation/article/debugging-in-wordpress/](https://wordpress.org/documentation/article/debugging-in-wordpress/))
   Once you’ve enabled debug error logs, please proceed to replicate the issue or
   perform the steps that trigger the error. This will generate an error log file
   within the “wp-content” directory or main directory.
 * Please download and share the debug error log file with us through email: [suppor@searchpro.ai](https://wordpress.org/support/topic/syntaxerror-json-parse-error/suppor@searchpro.ai?output_format=md)
   
   Best Regards,Support Team

Viewing 1 replies (of 1 total)

The topic ‘SyntaxError: JSON Parse Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advance-search_293454.svg)
 * [Advanced Search](https://wordpress.org/plugins/advance-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advance-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advance-search/)
 * [Active Topics](https://wordpress.org/support/plugin/advance-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advance-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advance-search/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [searchprosupport](https://wordpress.org/support/users/searchprosupport/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error/#post-17268035)
 * Status: not resolved