Autoptimize blocking Google crawler
-
Autoptimize blocks Google crawler. It took me about an hour with my hosting support to figure out what was going on. I have no Google scripts loaded on my site at all. But for some reason, Google crawler was returning a Server error 5xx and the issue only stopped after we deactivated autoptomize.
Here are my full autoptimize settings: https://imgur.com/a/XM6tUaL I also use asset cleanup together with autopimize (making sure not to enable same settings in both) and I use Hummingbird purely for the browser caching control and nothing else.
Here is a PHP error log we found:
PHP Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 1067: “M32,1.8C15.3,1.8,1.8,15.3,1.8,32S15.3,62.3,32,62.3S62.3,48.7,62.3,32S48.7,1.8,32,1.8z M32,57.8 in /var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:212
PHP Stacktrace:- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
- undefined
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(150): JSMin->action(1)
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(84): JSMin->min()
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(257): JSMin::minify(‘\n\tinternal function: AO_Minify_HTML->_removeScriptCB(Array)
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(105): preg_replace_callback(‘/(\s*)(…’)
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(47): AO_Minify_HTML->process()
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/autoptimizeHTML.php(105): AO_Minify_HTML::minify(‘…’, Array)
/var/web/site/public_html/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(592): autoptimizeHTML->minify()
internal function: autoptimizeMain->end_buffering(‘…’, 9)
/var/web/site/public_html/wp-includes/functions.php(5427): ob_end_flush()
/var/web/site/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all(”)
/var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
/var/web/site/public_html/wp-includes/load.php(1280): do_action(‘shutdown’)
{main} thrown in /var/web/site/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php on line 212
- You must be logged in to reply to this topic.