johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 9 forks source link

Search Regex Error #83

Closed maryannk closed 2 years ago

maryannk commented 3 years ago
Plugin: 2.4.1
WordPress: 5.6.2 (single)
PHP: 7.3.27 256M 30s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
JavaScript: https://www.m4mfoodie.mkelleyconsulting.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.m4mfoodie.mkelleyconsulting.com/wp-json/
Query: ?page=search-regex.php&searchphrase=beef

Error: Unexpected end of JSON input (SyntaxError)

This issue started when I was setting options with WP Asset Cleanup. Not realizing that Search Regex uses the API, I enabled the option to remove the REST API link tag. When I realized that I needed the link tag and disabled that option, I still can't get past this Unexpected end of JSON input error. The REST API appears to be there, so I'm not sure what is causing this issue.

johngodley commented 3 years ago

Your REST API is returning an error:

https://www.m4mfoodie.mkelleyconsulting.com/wp-json/

maryannk commented 3 years ago

Thank you for your quick reply. I figured something was wrong with it, but I don't know anything about testing the REST API, I just know to see if the page loads with code. Any pointers to resources on what the error is and how to reset/fix it?

johngodley commented 3 years ago

It's almost certainly caused by a plugin or something like that - the error is not part of WordPress, and references http://www.facebook.com/TheHomeSchoolMom

maryannk commented 3 years ago

Thank you