Server response 500 when minify HTML
-
Hi,
I have an issue with some type of pages. Basically when I visit the page the server respond with error 500. It still shows the article but there is that error in the chrome network tab. This is the server log:
Mon May 27 08:13:32.046456 2024] [php:error] [pid 3028929] [client 188.114.102.151:22070] PHP Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 17: "> in /var/www/html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214\nStack trace:\n#0 /var/www/html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action()\n#1 /var/www/html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min()\n#2 /var/www/html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(257): JSMin::minify()\n#3 [internal function]: AO_Minify_HTML->_removeScriptCB()\n#4 /var/www/html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(108): preg_replace_callback()\n#5 /var/www/html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(47): AO_Minify_HTML->process()\n#6 /var/www/html/wp-content/plugins/autoptimize/classes/autoptimizeHTML.php(105): AO_Minify_HTML::minify()\n#7 /var/www/html/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(592): autoptimizeHTML->minify()\n#8 [internal function]: autoptimizeMain->end_buffering()\n#9 /var/www/html/wp-includes/functions.php(5420): ob_end_flush()\n#10 /var/www/html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all()\n#11 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#12 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#13 /var/www/html/wp-includes/load.php(1270): do_action()\n#14 [internal function]: shutdown_action_hook()\n#15 {main}\n thrown in /var/www/html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php on line 214, referer:
The common thing between the posts where the error occur is that there is a tweet embedded by twitter.
How can we fix this?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.