• Resolved datavalue

    (@datavalue)


    Hi,

    I use Autoptimize (+ Above the Fold Optimization to async JS + WP Fastest Cache) on my website and remark that a little number of pages break when activating Javascript Optimization with JS inline aggregation option.
    If I don’t activate this option some JS effects as tooltips don’t work …
    The error is : PHP Fatal error: Uncaught exception ‘JSMin_UnterminatedStringException’ with message ‘JSMin: Unterminated String at byte 18973: ‘);’ in /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php:211
    Stack trace:
    #0 /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php(150): JSMin->action(1)
    #1 /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php(84): JSMin->min()
    #2 /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(237): JSMin::minify(‘\n%%INJECTLATER%…’)
    #3 /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/autoptimize.php(266): autoptimizeScripts->minify()
    #4 [internal function]: autoptimize_end_buffering(‘\n\n\t<!doctype ht…’, 9)
    #5 /home/xxxxx/www/xxxxx/wp-includes/functions.php(3719): ob_end_flush()
    #6 [internal function]: wp_ob_end_flush_all(”)
    #7 /home/xxxxx/www/xxxxx/wp-includes/class-wp-hook. in /home/xxxxx/www/xxxxx/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php on line 211

    Thank you very much for your help.
    Cédric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    (@futtta)

    that’s the JS minifier crashing due to an error in your JS;

    Unterminated String at byte 18973: ‘);’

    you’d have to either exclude the original culprit JS-file from optimization or fix the error in it.

    Thread Starter datavalue

    (@datavalue)

    Error fixed, thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Some pages break with JS optimization’ is closed to new replies.