Everytime we update the plugin we get a critical error and it breaks the site.
Below is what we found in the error log:
[Mon Aug 23 18:39:49.523088 2021] [php7:error] [pid 21300] [client 76.25.154.2:40188] PHP Fatal error: Cannot redeclare post_grid_search_keyword_field() (previously declared in /nas/content/live/acceleratedstg/wp-content/plugins/post-grid-search-master/templates/post-grid-hook.php:75) in /nas/content/live/acceleratedstg/wp-content/plugins/post-grid/templates/post-grid-hook.php on line 157, referer: <a href="https://acceleratedstg.wpengine.com/wp-admin/" target="_blank" rel="noopener">https://acceleratedstg.wpengine.com/wp-admin/</a>
Initial Login:
<b>User: </b>acceleratedstg
<b>Password:</b><span class="current-password"><span class="fs-hide">393f9558</span><i class="pad-left fa fa-pencil"></i></span>
Welcome to our forum.
HI, I can see you are using search add-on function, we have added search for action hook plugin itself, please go to search addon (post-grid-search-master) directory and remove the function post_grid_search_keyword_field().
recently we have posted this solution on wp.org forum.
https://wordpress.org/support/topic/e_compile_error-31/