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
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
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!
Regards,
Dan
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.
Thanks,
Dan
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
Thanks
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 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
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
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
Thanks for all your help..when do you think 1.1.9.1 will be released?
Dan
It has been released, download from here:
http://wordpress.org/extend/plugins/lazyest-gallery/
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
true, Lazyest Gallery does not check ports
You must log in to post.