• Resolved dirk123

    (@dirk123)


    Hi,

    I’ve got this in my website’s code, is it normal for the background image url to be “null”?

    <style type=”text/css”>#lyte_Uq1o6w5zHUQ { background-image: url(null); }</style>

    Thanks,
    Dirk

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, not really … is this for a video or a playlist? do you have the API key set and is it working?

    Thread Starter dirk123

    (@dirk123)

    The API key is set and working.

    I also just noticed that the video background is only showing when I am logged in. If I log out, there’s a black screen…

    Thanks,
    Dirk

    Thread Starter dirk123

    (@dirk123)

    It’s for a video…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you share a URL so I can have a look at the HTML source Dirk?

    Thread Starter dirk123

    (@dirk123)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey Dirk;
    You have Sucuri blocking access to the locally cached thumbnails, check the Sucuri config if you have add an exception for wp-youtube-lyte?

    groeten uit Lokeren!
    frank

    Thread Starter dirk123

    (@dirk123)

    Hey Frank

    I whitelisted the WP Lyte path, but the images are still not showing up (unless I am logged in).

    Weird, because when I put that image url in my browser, the image loads fine (the xxxx in the url is my editing).

    This is an example from the firewall:

    24/Jun/2021:02:23:38 NOT BLOCKED GET 404 /blog/mr-pc/url(https:/www.xxxx.be/blog/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHRZeVvz6HrE%2Fmaxresdefault.jpg) CACHES:MISS/WHITELISTED https://www.xxxx.be/blog/mr-pc/
    Mozilla/5.0 (Linux; Android 10; SM-A605F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36

    Groeten uit Antwerpen en bedankt voor de geweldige plugins!

    Dirk

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Perfmatters lazy-load seems to be interfering, can you disable that?

    Thread Starter dirk123

    (@dirk123)

    Weird, I just turned off lazy loading in Perfmatters, even disabled the plugin (and Autoptimize and Rapidload), cleared all caches, but I can’t get rid of this class:

    class=”pL perfmatters-lazy error”

    Thread Starter dirk123

    (@dirk123)

    I also had this in functions.php, but removed that for now:

    // Lazy Load Youtube Lyte Images
    add_filter('lyte_match_postparse_template','lyte_bgimg');
    function lyte_bgimg($in) {
    	return preg_replace('/(<div id="lyte_[^"]*"\s)data-src="([^"]*)"/', '\1 style="background-image:url(\'\2\')" ', $in);
    }
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Maybe clear your page cache(s) (wp rocket)? 🙂

    Thread Starter dirk123

    (@dirk123)

    Hi Frank, sorry for the late reply!
    It was indeed something cache-related, although I cleared all caches.
    The matter resolved itself after a couple of hours.

    Cheers,
    Dirk

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, caching, the curse and blessing of the web … 😉

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

The topic ‘Background-image: null’ is closed to new replies.