“Hello, First of all, sorry for the late response and the issue you are having
The issue might be in the code of WP theme. You’ll also want to check to make sure any semicolons aren’t missed at the end of a statement – missing those can often cause minifying to go all wrong. Sometimes minifying requires fine-tuning. Navigate to Performance ->Minify. select manual. You should minify JS manually by clicking on add Script in performance>minify page and adding script URL.
At manual mode – select async methods also note its a complex work and often requires manual coding, so our pro services may help
Please make sure to update W3TC to the latest version as a lot of fixes have been applied.
If the issue is resolved after the update, please give us a feedback and we can close this topic.
Best Regards,
Marko”
Thread Starter
lencw
(@lencw)
Marko
The error happens with both the Divi theme and a Themler generated theme.
Wordpress and all plugins are up to date, as of today.
W3TC version is 0.9.7.
I have tried manual mode in the past, its a lot of hassle to do and gt right.
The error is still being written, although W3TC is still set in auto mode for minify.
I don’t really want to have to be setting minify manually for lots of websites, I need it to work in auto mode.
LenW
Did you enable the option Inline JS minification in Minify?
Thread Starter
lencw
(@lencw)
Answer to your question is yes.
Settings in minify are:
HTML minify settings:
Enable, ticked
Inline CSS, ticked
Inline JS, ticked
Dont minify feeds, unticked
Line breakcremoval, unticked
JS Settings:
Enable, ticked
Before head, default blocking
After body, non-blocking using defer
Minify selected, not combine only
Other 3 boxes unchecked
CSS
Enable, ticked
Combine only, preserve comments removal, line break removal, all unchecked
@import handling, none
HTPP/2 push enable, unchecked.
Nothing in the boxes below for this website, I do have for Woocommerce sites.
There might be an issue with an inline script. Please disable that option and check if the error still pops up.
Thread Starter
lencw
(@lencw)
Done it, and its not that.
What I think might be a clue is that if after the cache is clears, i load a page, i get the error. If i go to another page, then back to the initial page, no error for the second visit to that initial page.
If I turn off JS minify, don’t get the error.
That makes it even more weird, but I’ll discuss this with the team and get back to you ASAP.