in a post single, I have created a collection (query loop) so that our SEO person can use it and just manually pick the content to show in the query loop, we called it “Hand Picked Section”
it works fine until today we found out that when we trying to search for a blog, it gives the 500 error with this error message, please see screenshot:
It seems to work if you type more than 3 characters no?
When looking at your debug log, this appears:
[26-Aug-2022 17:11:19 UTC] WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_options WHERE option_name = 'regex_html_post_process' LIMIT 1 /* From [***/wp-json/cwicly/v1/cwicly_dynamic_preview?keyword=ope&_locale=user] in [N/A] */ made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, WpeCommon->filter_html_output, WpeCommon->get_regex_html_post_process, get_site_option, get_network_option, get_option
So it might be a caching issue, or maybe a memory issue, although I don’t see any errors related to that. Might be a good idea to contact your host.
Thanks for getting back to me on this one.
In case you experience the same issue again, please reopen this thread so that we know where to go from.
Have a good one!