Hello @toojee
Check the permissions of the upload folder. All old thumbnails MUST be deleted!
Thread Starter
toojee
(@toojee)
Its in local with wamp, so I have all the permissions. When i delete this image by wordpress, all thumbnails are delete except the 520×340, because I changed this in add_image_size.
With the plugin, I have this success message:
1 “image-test” (ID 286): All thumbnails was successfully regenerated in 0,525 seconds.
That’s all.
I have no deleted message like this : “Thumbnail: 150×150 was deleted.” or failed message
Thanks for your response.
Thread Starter
toojee
(@toojee)
Hi, i look at the code php this week end, and i figured out why doesn’t work.
On line 458, when I do a :
$message .= '<br />'.$dirPath;
I see c:\wamp\myproject\ instead of c:\wamp\myproject\bin\wp-content\uploads\
So in line 464, it search in wrong directory to delete files. And $imageName is egual to “bin/wp-content/uploads/2012/12/my-file-“
I think its a DIRECTORY_SEPARATOR problem because I have 2 of them / and \
The DIRECTORY_SEPARATOR is set in your web-server on PHP config.
– Unix/Linux system use ‘/’
– Windows system use ‘\’
Please, check your web-service PHP config and change de DIRECTORY_SEPARATOR to ‘\’.
See: http://php.net/manual/en/dir.constants.php
Thread Starter
toojee
(@toojee)
I don’t find how change DIRECTORY_SEPARATOR so I add a line to the plugin line 419 :
$fullsizepath = strtr($fullsizepath, '/', '\\');
And its work fine, I will use the untouched plugin for production
thanks
Maybe, you can change the DIRECTORY_SEPARATOR on php.ini