Fatal error and server error 500


googlebot returns a 500 error for my woocommerce products. After various checks I tried to disable autoptimize and the problem seems solved. I did a debug:
Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 285: ” in /usr/www/…./…../cucineeconomiche/wp-content/plugins/autoptimize/classes/external/php/jsmin. php:214 Stack trace:

#0 /usr/www/…./…./cucineeconomiche/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action ()

#1 /usr/www/…./…./cucineeconomiche/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min()

#2 …/ao-minify-html.php(257): JSMin::minify() 3 [internal function]: AO_Minify_HTML->_removeScriptCB()

#4 …autoptimize/classes/external/php/ao-minify-html.php(105), preg_replace_callback()

#5 ..autoptimize/classes/external/php/ao-minify-html.php(47): AO_Minify_HTML->process()

Is there a way to solve the problem?

The page I need help with: [log in to see the link]


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer