Bring Your Business to Life › Support › Image Store › No thumbnails in 3.2.9
Tagged: no thumbnails
- AuthorPosts
- June 7, 2013 at 4:22 am #53330armandsdzParticipant
Hi!
I noticed one thing in upload of new images in 3.2.9 version.
I’d like to understand if this is a bug or something else.Thumbnails are not appearing in 3.2.9 when uploading new images.
It worked fine in 3.2.8.After some debugging I found out that directory “_resized” (where thumbnails and other resized images are to be stored) is not created.
I found that the reason could be in file _inc/admin.php line 815 (function move_resized_file).
$pathinfo = pathinfo( $file );
$despath = "/" . $this->sanitize_path( $pathinfo['dirname'], true ) . "/_resized/";if ( !file_exists( $despath ) )
@mkdir( $despath, 0755, true );In this code $despath turns out to be “/C:/…./wp-content/_imsgalleries/gallery-283/_resized/”
And of course because of “/” in beginning mkdir command fails.So, is this “/” a bug or a feature? 🙂
In 3.2.8 this line is different:
$despath = $pathinfo['dirname'] . "/_resized/";
And then everything is working fine.
Thanks!
June 12, 2013 at 7:27 pm #53398Xpark MediaKeymasterWe added extra security to the path creation to 3.2.9, but it looks like there may be an issue with windows servers. This plugin is not tested on windows servers only apache.
So the short answer is yes, this could be a bug for windows servers. We will look at the issue
In the mean time you could use
$despath = $pathinfo['dirname'] . "/_resized/";
- AuthorPosts
- You must be logged in to reply to this topic.