Forums

Lazyest Gallery
[resolved] Not valid image file (19 posts)

  1. FranklynJones
    Member
    Posted 3 months ago #

    Hi there,

    When I try to upload any form of image, png, jpeg etc. on the Gallery Folder Screen I get the following message : 'example.jpg is not a valid image file'

    Does anybody know how to resolve this?

    Thanks alot!
    -FJ

    http://wordpress.org/extend/plugins/lazyest-gallery/

  2. lazyest
    Member
    Posted 3 months ago #

    Could be a bug in image validation. What server do you use?

  3. FranklynJones
    Member
    Posted 3 months ago #

    I'm using MAMP 1.9.6 on my mac:
    Apache/2.0.64 (Unix) PHP/5.3.5 DAV/2

    Thanks for your quick response!

    Regards,
    Dan

  4. lazyest
    Member
    Posted 3 months ago #

    somehow php getimagesize() does not work.
    What error message do you get when you remove the @ from @getimagesize in frontend.php line #805?

  5. FranklynJones
    Member
    Posted 3 months ago #

    I don't seem to have any issues with uploading images to the WP media gallery.

    Thanks,
    Dan

  6. lazyest
    Member
    Posted 3 months ago #

    The WP media gallery doesn't actually test files if they are real images.
    LG 1.1.9 has an extra security feature to check if you are not uploading malicious files e.g. renamed scripts.
    It uses the getimagesize() function. Apparantly this function fails on your server.

  7. FranklynJones
    Member
    Posted 3 months ago #

    in my /inc/frontend.php @getimagesize is on line #573 @getimagesize( $img_location )

    Anyway I removed it and there appears to be no error messages, I can navigate to my photos page, and I receive the same error message when trying to upload the jpg

    Thanks

  8. lazyest
    Member
    Posted 3 months ago #

    my error, should have been /inc/manager.php line #807

  9. lazyest
    Member
    Posted 3 months ago #

    Do you get same error in flash and browser uploader?

  10. FranklynJones
    Member
    Posted 3 months ago #

    Ok so some updates for you.

    I was originally using the Browser Uploader as I hadn't installed Flash and that was not working, I removed the @ from manager.php and the browser upload still gives me the invalid file error

    Using the Flash uploader the % uploaded does not run, i.e. doesn't change from 0%, but if I navigate off the upload dialog box the image has been uploaded and appears in the gallery folder.

    However when I go to my gallery page, the images are not displaying, there are no thumbnails and no original version of the image...however they do exist(physically) in the designated gallery folders.

    The href generated by the plugin for the large image is: http://localhost/egi/wp-content/uploads/egi-gallery/19501970/testuy.jpg

    This will not work as I'm running on port 8888

    Hope that makes some sense.

    Thanks very much for your time, I really appreciate it.

  11. lazyest
    Member
    Posted 3 months ago #

    what's the image size in pixels and what is your php memory settings?

  12. lazyest
    Member
    Posted 3 months ago #

    Could you please share an image that doesn't upload?

  13. FranklynJones
    Member
    Posted 3 months ago #

    The image was 800x652, i tried other sizes larger and small. The original image i tried was here: http://www.zoo.ox.ac.uk/egi/people/groupimage/1950.jpg - this didn't work, then I resized and resaved in photoshop. I also tried a screendump image (1920x1200), png file, this didn't work.

    My memory_limit is 32

    Thanks,
    Dan

  14. macbrink
    Member
    Posted 3 months ago #

    It looks like php cannot access the uploaded file to get the image size while the file is still in the temp directory.
    I can't find any solution to this error and I cannot reproduce it either.

    If it keeps failing, just delete line #807-811 from manager.php

  15. macbrink
    Member
    Posted 3 months ago #

    I've found a problem for some installs where the fulkl path of the uploaded file is not available after upload.
    I'll make some changes. Please wait for 1.1.9.1

  16. FranklynJones
    Member
    Posted 3 months ago #

    Thanks for all your help..when do you think 1.1.9.1 will be released?

    Dan

  17. macbrink
    Member
    Posted 3 months ago #

    It has been released, download from here:
    http://wordpress.org/extend/plugins/lazyest-gallery/

  18. FranklynJones
    Member
    Posted 3 months ago #

    Hi there, thanks for that. I've installed this release, and unfortunately the url for the src, is still omitting the port number.

    Thanks,
    Dan

  19. macbrink
    Member
    Posted 3 months ago #

    true, Lazyest Gallery does not check ports

Reply

You must log in to post.

About this Plugin

About this Topic