• I have started to see a lot of uncaught errors after update today using WooCommerce.

    googlesitekit-runtime.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘call’)
    at t (googlesitekit-runtime.min.js:1:564)
    at 1281 (googlesitekit-polyfills.min.js:1:565)
    at t (googlesitekit-runtime.min.js:1:564)
    at l (googlesitekit-runtime.min.js:1:425)
    at Array.c as push
    at googlesitekit-vendor.min.js:1:79


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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Evan Mattson

    (@aaemnnosttv)

    Hi there! It looks like you have a plugin which is optimizing/minifying our JS files by generating new versions of them which is known for causing conflicts. This is visible by the name of the file which is different from the files that we publish in the release. Unfortunately, I can’t tell exactly what it is from the error message, but there are a number of plugins that do this kind of thing.

    If you’re able to exclude Site Kit from these optimizations, I would expect this should resolve the issue for you. If not, our support team will be happy to dig into this with you and get to the bottom of it!

    Cheers 👍

    Thread Starter David Wickstead

    (@wicko)

    Yes we use SG Optimizer and I can exclude the JS but need to know what JS to exclude. I don’t see any that appear to be SiteKit specific.
    I have already tried flushing cache on site, server and browser.
    I can confirm that if I switch off the JS minification then the error disappears

    Plugin Author Evan Mattson

    (@aaemnnosttv)

    Hi David, thanks for confirming the issue and the fix. I think there may be an issue with the SG plugin, but I’ve gone ahead and created a tiny plugin you can use to safely exclude Site Kit from that plugins optimizations automatically.

    https://gist.github.com/aaemnnosttv/2bc6fab481236fd920dd895ea8adcfd6

    Feel free to review the code first afterwards you can download the zip right from GitHub and install it manually as you would for any other plugin that isn’t on the plugin repository.

    Let us know how that goes for you!

    Thread Starter David Wickstead

    (@wicko)

    Thank you Even
    I have added your snippet and can confirm that is has stopped the errors appearing.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @wicko Glad to hear that Evan’s plugin has helped to address your issue. I will close this support topic but should you have any further questions or issues in the future then please don’t hesitate to ask!

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

The topic ‘Uncaught errors after update’ is closed to new replies.