Getting this in the error_log every time I try to add an image-
[error] PHP Warning: getimagesize() [<a href=&#039;http://www.php.net/function.getimagesize&#039;>function.getimagesize</a>]: Read error! in {{{PATH}}}/gallery/util.php on line 473
(I edited and added {{{PATH}}}- it's the location to gallery directory on my server.)
I've checked the path, I've browsed to it, I've checked the privileges, I've tried uploading as ZIP, I checked the file size, I'm not running Apache 2x so I don't think I need to worry about upload corruption.
I'm uploading a file on the same system that is running gallery. (IE- I'm running the browser on, the file exists on, and gallery is running on- the same system.)
Here's the debugging output-
----------------------------------
Processing status...
- Adding dscn2363.jpg
Error: Invalid image: dscn2363.jpg!
Need help? Look in the Gallery FAQ
----------------------------------
Regards,
Dave Bailey
------
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): (Sorry, this is a URL I don't want crawled... I'll e-mail it you if you like.)
Gallery version: 1.3.1
Apache version: Apache/1.3.23 (Darwin)
PHP version (don't just say PHP 4, please): 4.3.1
Operating system: Mac OS X 10.1.5
Web browser/version (if applicable): Mozilla 1.2.1
Posts: 33
Yep.. me having the exact same problem too...
I am running PHP 4.3 as a module with apache 1.3...
If my zip file has about 10 jps files then normally 2 get extracted and uploaded ok while the rest generate same error as Dave
"Processing status...
Error: Archive: C:/WINDOWS/TEMP/phpC2.tmp- Adding Phansipang cold.jpg
Warning: copy(C:TEMPPhansipang cold.jpg) [function.copy]: failed to create stream: No such file or directory in h:wwwhomeplatformfs_win32.php on line 26
Warning: getimagesize(H:/WWW/home/albums/family/Phansipang_cold.jpg) [function.getimagesize]: failed to create stream: No such file or directory in h:wwwhomeutil.php on line 473
Error: Invalid image: Phansipang_cold.jpg!
Need help? Look in the Gallery FAQ
Warning: unlink(C:TEMPPhansipang cold.jpg) [function.unlink]: No such file or directory in h:wwwhomeplatformfs_win32.php on line 96"
Finally.. when i use uploading folder, if the folder has more than 5 files it wont upload, it gets stuck trying to upload the first file...
File size is not an issue because all my tested zip files are below 1Mb and i have searched and changed time limit, upload limit size and memory etc...
So what else could be wrong :sad:?
Thanks
crUsAdEr
Posts: 7
Same error here. Worked great for about 30 images, now every other image it errors out with:
Warning: getimagesize: Read error! in /util.php on line 174
Warning: getimagesize: Read error! in /util.php on line 174
And other line numbers for the same file, same error. It also appared to corrupt one of my albums, as it says on the main screen:
Attention Gallery Administrator!
Gallery has detected the following directories:
<directories here>