• The error_log in the WP root folder has the following, but only with W3TC JS minify on.
    There is nothing in the minify.log file.
    I have tried to track down where this is by searching all static and cache js file, but no empty script tags.
    The error is:
    [19-Feb-2018 11:55:05 UTC] script not found:<script>
    </script>
    With JS minify off, there is no error written.
    This is using Auto minify mode.
    Before head is set to blocking.
    After body set to defer, ascync or blocking its the same.
    Inline minification makes no difference if on or off.
    Is this a WF bug?
    LenW

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    “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

    Plugin Contributor gidomanders

    (@gidomanders)

    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.

    Plugin Contributor gidomanders

    (@gidomanders)

    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.

    Plugin Contributor gidomanders

    (@gidomanders)

    That makes it even more weird, but I’ll discuss this with the team and get back to you ASAP.

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

The topic ‘Script not found error’ is closed to new replies.