• Resolved jamminjames

    (@jamminjames)


    The WordPress Popular Posts widget has problems sometimes displaying images, when it tries to display the webp version instead of jpeg.

    Usually it shows a jpeg image, but sometimes it chooses the webp image, and it can’t show it properly (see screenshot here). In the screenshot, all the other images are jpeg, and jpeg images are available for the one that is not showing, but for some reason, the plugin is trying to display the webp image instead, and can’t.

    How can I force the plugin to only use jpeg images?

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

    (@hcabrera)

    Hey @jamminjames,

    That particular post from your screenshot is actually using a .webp image as the first image (code truncated for brevity):

    <img src="https://www.humortimes.com/wp-content/uploads/2024/08/Tim-Walz-and-Al-Franken-400x300.jpg.webp" alt="Balls to the Walz with Tim Walz and Al Franken." .../>

    By default the plugin will try to create a thumbnail using the same image format as the original one, in this case a .webp image. I guess that WordPress Popular Posts tried to create it out of that .webp image and failed so for some reason?

    Please go to Settings > WordPress Popular Posts, then click on the Debug link and share the info displayed there here so I can have a look.

    Thread Starter jamminjames

    (@jamminjames)

    Actually that’s not the top image, that’s the one that is not showing. The top one is (or was at the time of the screenshot):

    < img src="https://www.humortimes.com/wp-content/uploads/2017/09/RozWarren-48x48.jpg" width="48" height="48" alt=""... >

    My original images are never .webp, those get created by the EWWW Image Optimizer plugin after the fact.

    I’ve also noticed the .webp image it’s trying to use each time, in this case “121562-first_image-48×48.webp”, doesn’t exist. The closest one in the /wordpress-popular-posts/ folder to that is “121562-first_image-48×48.jpg.webp”.

    Debug info:

    Plugin Configuration

    Performance Nag: Inactive

    Log Limit: Yes, keep data for 365 days

    Log Views From: Everyone

    Data Caching: Yes, 30 minute

    Data Sampling: No

    External object cache: Yes

    WPP_CACHE_VIEWS: Yes
    System Info

    PHP version: 8.2.18

    PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip, apcu, igbinary, imagick, mailparse, msgpack, redis, Zend OPcache

    AVIF support: Yes

    WebP support: Yes

    Database version: 10.5.22-MariaDB

    InnoDB availability: DEFAULT

    WordPress version: 6.6.1

    Multisite: No

    Active plugins: AddToAny Share Buttons 1.8.11, AdRotate Banner Manager 5.13.2, Akismet Anti-spam: Spam Protection 5.3.3, Better Notifications for WP 1.9.6, Broken Link Checker 2.3.0, Classic Editor 1.6.4, Classic Widgets 0.3, Cloudflare 4.12.8, Creators RSS Reader-HT 1.0.0, Disqus for WordPress 3.1.1, Easy Accept Payments via PayPal 5.0.9, EWWW Image Optimizer 7.8.0, Featured Articles Lite 3 3.1.10, Feedburner Alternative and RSS Redirect Plugin 4.3, Newsletter 8.4.7, Newsletter - Addons Manager and Support 1.3.0, Newsletter - API v1 and v2 2.4.8, Newsletter - Archive 4.1.5, Newsletter - SMTP Addon 1.1.3, NextGEN Gallery 3.59.4, Nginx Helper 2.2.5, Ninja Forms 3.8.11, OneSignal Push Notifications 2.4.4, ProfilePress 4.15.12, Recent Posts Widget With Thumbnails - mine 7.1.1, Redis Object Cache 2.5.3, Responsive Lightbox & Gallery 2.4.7, Revive Social 9.1.1, StarBox 3.5.2, UpdraftPlus - Backup/Restore 1.24.4, User Submitted Posts 20240703, Widget Context 1.3.2, Widget Importer & Exporter 1.6.1, Wordfence Security 7.11.7, WordPress File Upload Pro 4.24.8, WordPress Popular Posts 7.0.1, WPMU DEV Dashboard 4.11.26, WPS Hide Login 1.9.16.7, WP SMTP 1.2.7, WP Statistics 14.9.3, Yoast SEO 23.2, YouTube WordPress Plugin by Embed Plus 14.2.1.2

    Theme: Generate Press Child (1.0.2) by Humor Times
    Plugin Author Hector Cabrera

    (@hcabrera)

    Actually that’s not the top image, that’s the one that is not showing.

    Sorry, I should have been more specific. I was talking about the actual first image found on this post which is a .webp image, not a .jpg one.

    The image might have been originally a .jpg one, however EWWW Image Optimizer changed it to .jpg.webp and that’s the image WPP sees.

    Anyways, let’s try this:

    1. (Optional) Make a backup of your /wp-content/uploads/wordpress-popular-posts folder.
    2. Go to Settings > WordPress Popular Posts, click on Tools.
    3. Under Thumbnails, click on the Clear image cache button to wipe out your popular posts thumbnails.
    4. Visit your homepage, this will have WPP recreate the thumbnails of the currently listed popular posts.
    Thread Starter jamminjames

    (@jamminjames)

    Okay, done, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.