• Resolved cromwell4

    (@cromwell4)


    Hi,

    I have just upgraded to version 1.1.0. The images on the website are no longer being displayed. The console is displaying the following errors in Chrome 74.0.3729.169:

    Uncaught ReferenceError: lazySizesConfig is not defined
    at k (ls.bgset.min.js:2)
    at ls.bgset.min.js:2
    at triggerEvent (lazysizes.js?ver=5.0.0:83)
    at lazysizes.js?ver=5.0.0:464
    at lazysizes.js?ver=5.0.0:162
    at Function.run [as _lsFlush] (lazysizes.js?ver=5.0.0:129)
    at Object._ (lazysizes.js?ver=5.0.0:629)
    at init (lazysizes.js?ver=5.0.0:708)
    at lazysizes.js?ver=5.0.0:281

    Uncaught ReferenceError: lazySizesConfig is not defined
    at k (ls.bgset.min.js:2)
    at ls.bgset.min.js:2
    at triggerEvent (lazysizes.js?ver=5.0.0:83)
    at lazysizes.js?ver=5.0.0:464
    at lazysizes.js?ver=5.0.0:162
    at run (lazysizes.js?ver=5.0.0:129)

    Uncaught TypeError: Cannot read property ‘(max-width: 900px)’ of undefined
    at ls.bgset.min.js:2
    at Array.forEach (<anonymous>)
    at k (ls.bgset.min.js:2)
    at ls.bgset.min.js:2
    at triggerEvent (lazysizes.js?ver=5.0.0:83)
    at lazysizes.js?ver=5.0.0:464
    at lazysizes.js?ver=5.0.0:162
    at run (lazysizes.js?ver=5.0.0:129)

    Any help would be most appreciated.

    Thanks,
    Claire

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter cromwell4

    (@cromwell4)

    Selecting “Automatically load all objects, even those not in view.” fixes the issue.

    Could you please still have a look into this issue and let me know what we need to do to fix this?

    Thanks,
    Claire

    Plugin Author Patrick Sletvold

    (@16patsle)

    Hi,
    I’ll look into it as soon as I can, and keep you updated. Are you adding the lazysizes bgset addon yourself? Seems like that’s related to the errors. Anything changed compared to before updating the plugin?

    – Patrick Sletvold

    Thread Starter cromwell4

    (@cromwell4)

    Hi,

    I am responsible for updating the WordPress plugins once a month. The plugin was already in place and the images displayed before the plugin was update.

    NB WordPress v4.9.10 is in place. There is no plan to get this updated to v5.

    The following plugins were also updated:

    * Yoast SEO Premium https://yoa.st/2jc
    * WordPress Users & WooCommerce Customers Import Export(BASIC) – INACTIVE – https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
    * Regenerate Thumbnails https://alex.blog/
    * Meta Box Builder https://metabox.io/
    * Meta Box https://metabox.io/

    A custom theme is also in place.

    Many thanks for responding.

    Regards,
    Claire

    Plugin Author Patrick Sletvold

    (@16patsle)

    Hi,
    Looked into it a bit, and it seems like the issue is caused by the newest version of the lazysizes library, which changed some stuff (more specifically where the configuration is stored). Updating the version of the ls.bgset addon should most likely fix it. How you do this depends on how it was added in the first place (plugin/theme/etc, I’d guess it’s from the theme). Let me know if you need more help.

    – Patrick Sletvold

    Thread Starter cromwell4

    (@cromwell4)

    Hi Patrick,

    if you have to time to provide more help that would be great. I have had a look through the site and there are 3 ls.bgset.min.js files within the theme directory.

    \themes\ldh\js\ v4.0.0-rc3
    \themes\ldh\ v3.0.0
    \themes\ldhold\ v3.0.0

    Thanks,
    Claire

    Plugin Author Patrick Sletvold

    (@16patsle)

    Hi Claire,

    The easiest would probably be to check the sources tab of the browser dev tools, and see which of them are getting loaded (on chrome you can browse to the theme folder in the sidebar). In theory it should be as easy as replacing this file with the newest version, but depending on what the theme uses it for, there may be unforeseen consequences.

    – Patrick Sletvold

    Thread Starter cromwell4

    (@cromwell4)

    Hi Patrick,

    I have been able to confirm which file is in use.

    \themes\ldh\js\vendors v4.0.0-rc3

    I found v5.1.0 on https://github.com/aFarkas/lazysizes/blob/gh-pages/plugins/bgset/ls.bgset.min.js

    I s this the correct location to get the latest version from?

    Many thanks,
    Claire

    Plugin Author Patrick Sletvold

    (@16patsle)

    Hi Claire,
    Yes, that’s the one. Version 5.1.0 should work fine.

    – Patrick Sletvold

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images not displaying on webpage after plugin upgraded’ is closed to new replies.