Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Issue when thumbnail images are regenerated

$
0
0

Replies: 0

Hi,

I found a few issues with this plugin. Our plugin Media Library Folders includes the ability to regenerate thumbnails for a individual images or for all images on a site. When reSmush.it is running on a site, the thumbnail files are regenerated but there is a problem when getting the thumbnail images from WordPress using the wp_get_attachment_image(). Normally the function will return HTML like this,

<img width="150" height="150" src="http://localhost/testsite/wp-content/uploads/2017/01/test-image-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" />

but after regenerating the thumbnails this function will return HTML like this:

<img width="1" height="1" src="http://localhost/testsite/wp-content/uploads/2017/01/test-image.jpg" class="attachment-thumbnail size-thumbnail" alt="" />

Somehow the thumbnail sizes are not updated correctly.

Also, I noticed that the plugin generates a few PHP warnings when WordPress debugging is turned on: Undefined variable: files_not_found and Undefined index: dirname.

  • This topic was modified 13 minutes ago by AlanP57.

Viewing all articles
Browse latest Browse all 59525

Trending Articles