• Resolved dreamzspl

    (@dreamzspl)


    When i updated to 1.3.5.9, my webpage rendered incorrectly. It displays this error in the console log:

    (index):1920 Uncaught TypeError: Cannot read property ‘setDefaults’ of undefined
    at HTMLDocument.<anonymous> ((index):1920)
    at i (head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3)
    at Object.fireWith [as resolveWith] (head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3)
    at Function.ready (head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3)
    at HTMLDocument.J (head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3)
    (anonymous) @ (index):1920
    i @ head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3
    fireWith @ head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3
    ready @ head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3
    J @ head-f8ab0aa726219caddc4cdeb345bc8711bb5275af-1.js:3

    1.3.5.8 was OK.

    I have currently disabled the plugin because i can’t revert back to 1.3.5.8.

    Please advise, thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @dreamzspl it looks like there’s an issue with an undefined variable and usually it’s solve by excluding the right file from the combine JS option. Is this error showing up on all pages? What you can do is disable combine JS and see if that would fix it.

    Also, you can revert back to 1.3.5.8 by deleting the version you have (all settings you have will be preserved, no worries) and install the one from here: https://downloads.www.ads-software.com/plugin/wp-asset-clean-up.1.3.5.8.zip

    Thread Starter dreamzspl

    (@dreamzspl)

    Hi @gabelivan , i tried to disable combine JS and it seems to be OK now. Still at 1.3.5.9.

    But my main aim is to reduce the number of requests so if the combine JS option is disabled the requests are still high.

    Moving forward, will there be any solution for future update? Otherwise it seems that from now on I can’t combine JS using the plugin anymore

    Plugin Author Gabe Livan

    (@gabelivan)

    @dreamzspl I have a suspicion that something was changed on your website at around the same time you did the upgrade to 1.3.5.9 and even if you go back to 1.3.5.8 and re-activate the combine JS, it will still give you the same error. No changes to the way JS files are combined/minified has been made in the past releases. That makes me think that something came up meanwhile from a third party source. I’ve seen it happening before. One solution would be to find the culprit file that generates the error and exclude it from combination. This can be done in “Do not combine the JavaScript files matching the patterns below (one per line, see pattern examples below):” within “Optimize JavaScript” area in “Settings”.

    There’s no tutorial on how to do the debugging. I found that WP Rocket has one here: https://docs.wp-rocket.me/article/915-find-the-right-js-files-to-exclude-from-minification – the principle is the same, even though the interfaces and the path to the cached CSS/JS is different.

    What you can do is enable “Apply combination only for logged-in administrator (for debugging purposes)” under “Combine loaded JS (JavaScript) into fewer files”, this way the combine JS will take effect ONLY for you while you’re doing the debugging, while your visitors could view the website without any errors.

    Does that help? Let me know how the debugging goes!

    Plugin Author Gabe Livan

    (@gabelivan)

    @dreamzspl how it’s going? Did you a chance to check my previous reply and do some debugging?

    Thread Starter dreamzspl

    (@dreamzspl)

    Hi Gabe,

    Thanks for the follow up, strangely, the issue currently now seems to be ok (i don’t remember doing anything drastic or change).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Version 1.3.5.9 has errors’ is closed to new replies.