No thumbnails in 3.2.9

Bring Your Business to LifeSupportImage StoreNo thumbnails in 3.2.9

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53330
    armandsdz
    Participant

    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!

    #53398
    Xpark Media
    Keymaster

    @armandsdz,

    We 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/";

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.