Minify causes “Uncaught SyntaxError”
-
Hi there,
Just updated my client’s site with WP-Optimize 3.2.7 and cannot seem to reliably enable Minify anymore without it breaking JavaScript on the site and causing pages to fail to load with the console error:
Uncaught SyntaxError: Invalid or unexpected token -> wpo-minify-footer-b7d9f3b4.min.js:1228Seems to be caused by haveing
Process JavaScript filesenabled, and I haveEnable minification of JavaScript filesandEnable merging of JavaScript filesoptions enabled.This worked without issue prior to update. If I disable the
Enable merging of JavaScript filesoption, the pages will load but there is an error related to YoastSEO in the console then:Uncaught SyntaxError: Invalid or unexpected token (at [module]\n;:1:115)Enabling the
Contain each included file in its own blockoption doesn’t help resolve the issue.For now, I’ve disabled minification completely.
Any help is appreciated.
The topic ‘Minify causes “Uncaught SyntaxError”’ is closed to new replies.