We ran into an error over the weekend when the site went down with a 500 server error. Our log shows the following:
[11-May-2018 18:54:39 UTC] PHP Warning: Missing argument 2 for wp_parse_str(), called in \wp-content\themes\polytechnic\search.php on line 10 and defined in \wp-includes\formatting.php on line 4356
I'm not sufficiently versed in php to know what's going on here. Can you let me know how to fix this?
The theme related php warning is this:
$search_query = wp_parse_str( $query_string );
Which is documented in the codex here: https://codex.wordpress.org/Creating_a_Search_Page#Preserving_Search_Page_Results_and_Pagination
I'm not sure why this would result in a server error. I appreciate the heads up, but without steps to replicate, it's difficult to identify what might be causing this from a theme standpoint. It looks like you were able to resolve the 500 error.
Are you still having issues with this? If so, first start with this article: Standard Troubleshooting Steps just to make sure there isn't an outlying plugin or plugin/theme update causing this . Then, can you include steps to replicate along with expected and unexpected behavior?