• Resolved Clayton Chase

    (@claytonchase)


    Hey guys,
    So I’ve done some research on this in the past but am having trouble figuring out why some thumbnails are showing and some aren’t. In settings, I’ve got the featured image option selected.

    I am on WP Engine so that might be a factor.

    Thanks in advance!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Clayton,

    For some reason, when WPP attempts to fetch the featured image of some of your posts wp_get_image_editor() -the function that WPP relies on to create the thumbnails- is responding with File doesn't exist?, so the thumbnail isn’t generated and the plugin falls back to displaying your default thumbnail instead:

    <ul class="wpp-list">
        <li class="popular-post-items">
            <a href="https://example.com/the-top-5-raw-pet-food-trends-for-2018/" title="The Top 5 Raw Pet Food Trends For 2018" target="_self">
                <!-- File doesn’t exist? -->
                <img src="https://example.com/wp-content/uploads/2014/04/Dogs-Naturally-1-935x487.png" width="90" height="40" alt="" class="wpp-thumbnail wpp_imgeditor_error wpp_featured" scale="0">
            </a>
    
            <a href="https://example.com/the-top-5-raw-pet-food-trends-for-2018/">
                <h6 class="popular-post-title tc-custom-scroll">The Top 5 Raw Pet Food Trends For 2018</h6>
            </a>
    
            <div class"popular-post-divider"=""></div>
        </li>
        ...
        ...
        ...
    </ul>

    Things I’d try:

    • Disable all of your plugins -except for WPP- and check your site again. WPP will try to generate a thumbnail if it can’t find an existing one. If the thumbnail is generated successfully, then one of your plugins is causing the issue.
    • Check that the thumbnail actually exists in the server.
    • Edit the WPP_Image class -responsible for generating the thumbnails- to add some debugging code: place error_log( $path ) in the image_resize method to see what’s actually being passed to wp_get_image_editor(). You can find this class in wordpress-popular-posts/includes/class-wordpress-popular-posts-image.php. (This assumes WP_DEBUG is enabled and configured to output messages into debug.log)
    • This reply was modified 6 years, 6 months ago by Hector Cabrera. Reason: Removed original domain name from code
    Thread Starter Clayton Chase

    (@claytonchase)

    I’ll give both of those a try! Thanks Hector!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some Featured Thumbnails are not Displaying’ is closed to new replies.