Support » Plugin: Lazyest Gallery » [Plugin: Lazyest Gallery] Not valid image file

Viewing 15 replies - 1 through 15 (of 24 total)
  • Could be a bug in image validation. What server do you use?

    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!


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

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


    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.

    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


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

    Do you get same error in flash and browser uploader?

    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.

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

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

    The image was 800×652, i tried other sizes larger and small. The original image i tried was here: – this didn’t work, then I resized and resaved in photoshop. I also tried a screendump image (1920×1200), png file, this didn’t work.

    My memory_limit is 32


    Plugin Author Marcel Brinkkemper


    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

    Plugin Author Marcel Brinkkemper


    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

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


Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Plugin: Lazyest Gallery] Not valid image file’ is closed to new replies.