Wrong thumbnail rename
-
Hi!
In PhP error log I’ve seen errors related to this plugin (v5.1.6).
[23-Feb-2021 18:38:16 UTC] PHP Warning: rename(/wp-content/uploads/2021/02/6050281-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag--H-175-cm-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag--H-175-cm-300x273.jpg,/wp-content/uploads/2021/02/6050281-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag--H-175-cm-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag--H-175-cm-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag--H-175-cm-300x273.jpg): File name too long in /wp-content/plugins/media-file-renamer/classes/core.php on line 636
After this warning, the rename stops, and some other files are skipped to rename, and the rename process is not complete, I see broken image links in Media Library.
As you can see it’s very strange, why it append 2-3x times the new filename to the end of the thumbnails. In the above example the original filename was 6050281.jpg, and the new name I was added into the rename field in list view in media library is “-Nature-T-oszlop-drothalokhoz-es-betekintesvedelmi-keritesekhez-zold-muanyag–H-175-cm”. The original size is ok, and some thumbnails too, but some thumbnails are not:
https://paste.pics/d3c945721f2d7c84440c92d08ddd6a52You can see other filenames are messed up too, luckily they are not too long.
As a workaround I give shorter filenames, but the bug is still there in the plugin code.
- The topic ‘Wrong thumbnail rename’ is closed to new replies.