Title: Dropped srcset candidate
Last modified: April 30, 2021

---

# Dropped srcset candidate

 *  Resolved [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/)
 * Hey Hector,
 * 1st: Still super cool Plugin 🙂
 * 2nd: Since a few days (?) we get some errors in the console, saying e.g.:
    Dropped
   srcset candidate “[https://www.bergtour-online.de/wp-content/uploads/wordpress-popular-posts/1925-featured-50×50@1,5x.jpg&#8221](https://www.bergtour-online.de/wp-content/uploads/wordpress-popular-posts/1925-featured-50×50@1,5x.jpg&#8221);
 * (Cache, Thumb.Cache all emptyd, also Cloudflare deacitvated)
 * We couldnt find out the reason within the plugin, maybe you can help? 🙂
 * Thanks so much!
    Fritz
    -  This topic was modified 5 years, 1 month ago by [fredel](https://wordpress.org/support/users/fredel/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdropped-srcset-candidate%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14384526)
 * Hi Fritz,
 * Glad to know you like the plugin!
 * Regarding this issue, I’m not really sure. Might be a bug in the plugin but can’t
   reproduce it myself so I’ll need your help:
    1.  Optional, but recommended: Create a full backup of your website (database and
        files).
    2.  Enable [WordPress’ debug mode](https://wordpress.org/support/article/debugging-in-wordpress/)(
        make sure [WP_DEBUG_LOG](https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log)
        is also set to `true`, we’ll need this.)
    3.  Go to **WP Dashboard > Plugins > Plugin Editor**, select **WordPress Popular
        Posts** using the dropdown at the right.
    4.  Click on _src/Image.php_ to edit this file.
    5.  Replace its contents with [this version](https://pastebin.com/raw/N488twzT),
        then scroll down and click on the **Update File** button to save changes.
    6.  Go to **WP Dashboard > Settings > WordPress Popular Posts > Tools**, then under**
        Thumbnails** click on the **Empty image cache** button to delete all of WPP’s
        cached thumbnails.
    7.  Clear your site’s cache.
    8.  Visit your site’s homepage. WPP’s widget will load after a couple of seconds
        and new thumbnails will be created. The “dropped srcset candidate” issue will
        still be there, don’t worry, we’re just debugging at the moment so I can understand
        what’s going on.
    9.  Upload the contents of your debug.log file (located at /wp-content) to pastebin.
        com and share the URL here so I can have a look.
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385058)
 * Hey, sure & thanks 🙂
    Link is: [https://pastebin.com/w8zenVcM](https://pastebin.com/w8zenVcM)
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385060)
 * May i deactivate the Debug?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385169)
 * Yep, you can disable the debug mode. And thanks, that helped!
 * Alright, I’ll test some ideas and leave a comment here if/when I need your help
   again. For the time being please add this code snippet to your theme’s functions.
   php file:
 *     ```
       /**
        * Disables WPP's retina display support.
        *
        * @param   bool    $enabled
        * @return  bool    Whether retina display support is enabled or not
        */
       function disable_wpp_retina_support( $enabled ){
           return false;
       }
       add_filter( 'wpp_retina_support', 'disable_wpp_retina_support' );
       ```
   
 * When you’re done please clear your site’s cache for these changes to take effect.
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385601)
 * hey & thx so much, done that fix but seems it doenst work yet? 😉 best
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385639)
 * Not really a fix though. It’s just a temporary workaround (hence the “For the
   time being…” part :P)
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385704)
 * yeah sorry ;)) thanks again🙏
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14388561)
 * Alright, I think I know what the problem is. This patch should fix it but I’ll
   need your help to confirm, [@fredel](https://wordpress.org/support/users/fredel/).
   Would appreciate it if you could try it out for me 😀
    1. Go to **WP Dashboard > Plugins > Plugin Editor**, select **WordPress Popular
       Posts** using the dropdown at the right.
    2. Click on _src/Image.php_ to edit this file.
    3. Replace its contents with [this new version](https://pastebin.com/raw/5vgyxTqa),
       then scroll down and click on the **Update File** button to save changes.
    4. Go to **WP Dashboard > Settings > WordPress Popular Posts > Tools**, then under**
       Thumbnails** click on the **Empty image cache** button to delete all of WPP’s
       cached thumbnails.
    5. Remove [this](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14385169)
       from your functions.php file (or comment it out.)
    6. Clear your site’s cache.
    7. Visit your site’s homepage. WPP’s widget will load after a couple of seconds
       and new thumbnails will be created again.
 * Please report back your results. Hopefully this will fix the srcset issue!
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14394296)
 * hey, looking good!! Thanks a lot, seems to be fixed! Where can i donate 🙂 Best
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14394356)
 * That’s fantastic news! Thanks for reporting back, [@fredel](https://wordpress.org/support/users/fredel/)
 * Alright, I’ll make sure to include this patch on the next release so please update
   as soon as it becomes available.
 * > Where can i donate 🙂
 * Thanks! You can [Buy me a Coffee](https://www.buymeacoffee.com/cabrerahector)
   or use the good old _Donate_ button located at the right of the [Description](https://wordpress.org/plugins/wordpress-popular-posts/)
   page of the plugin (you may need to scroll down a little to see it).
 *  Thread Starter [fredel](https://wordpress.org/support/users/fredel/)
 * (@fredel)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14397960)
 * thanks for having coffee with me 🙂
    best
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14398269)
 * Thank _you_ for being an awesome human being!

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

The topic ‘Dropped srcset candidate’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 12 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/dropped-srcset-candidate/#post-14398269)
 * Status: resolved