Problem with deleting unused image thumbnails
-
Hi,
Thank you for the great plugin!
I removed a few thumbnail sizes from my website and used your plugin to remove all the no longer used thumbnails.
That worked on my local machine but not on the live website. After a closer inspection of its code, I noticed that the $file_info used on line 546 of class-forceregeneratethumbnails.php is not previously set. That made the code not delete any images by skipping the unlink action.
The problem was sorted after I added
$file_info = pathinfo( $image_fullpath );
before the
$thumb_fullpath = trailingslashit( $file_info['dirname'] ) . wp_basename( $size_data['file'] );
Please have a look.
Best regards,
Giannis
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with deleting unused image thumbnails’ is closed to new replies.