Hi,
I can't upload....here is my config and waht i did..
win2k pro running easyphp ( locally apache 1.3.24 - php 4.2.0 - mysql 3.23.49 - phpmyadmin 2.2.6)
setup was ok, netpbm installed ( status ok, 12 files found )
First I coudn't login, nothing was happening ( I solved it by turning session.auto_start to 1 and re-setup)
Now I can't upload..got this :
Processing status...
- Adding 001.jpg
Executing:
"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum01 01_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages
Results:
stdin: Image 0:
Error messages:
Status: 1 (expected 0)
Error: Invalid image: 001_G.jpg!
Need help? Look in the Gallery FAQ
i tried to gave it what it wanted by turning the status code to 0 in the setup
then tried again a got this
Processing status...
- Adding 001.jpg
Executing:
"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum02 01_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages
Results:
stdin: Image 0:
Error messages:
Status: 1 (expected 1)
Executing:
"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum02 01_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages
Results:
stdin: Image 0:
Error messages:
Status: 1 (expected 1)
Executing:
"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum02 01_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmscale" -xysize 150 150 | "c:program fileseasyphpwwwgallerynetpbmppmtojpeg" --quality=95 > "c:program fileseasyphpwwwgalleryalbumsalbum02 01_G.thumb.jpg"
Results:
none
Error messages:
Status: 1 (expected 1)
Error: Unable to make thumbnail (0)!
So I put back status code to 0 and since then I'm just pulling out my hair, start fighting with my wife, well nothing goes right.....somebody please help
thanks
phil
Posts: 54
sorry of course I meant turning status code to 1
phil
Posts: 7994
Hrm. Did you try running that long command by hand from a dos prompt? By simulating what the webserver does, we might be able to get a clue as to what's going wrong.
Posts: 54
Hi,
I just tried it...I got this :
jpegtopnm: Can't open c:program fileseasyphpwwwgalleryalbumsalbum01 01_G.jpg. Errno=No such files or directory(2).
pnmfile: EOF / read error reading magic number
stdin: Image 0:
thanks
Posts: 487
That looks to be your problem. It's not able to read the image for
some reason. Can you pull the image up in another program?
Try resaving it and see what happens.
Posts: 54
Hi,
yes, images are ok ( I got about 4000 ) and I tried with a tons of different images.
The thing is that it can't open 001_G.jpg when I'm trying to upload 001.jpg.
and none are in album01 directory anyway.
So...
Thanks
phil
Posts: 54
what do you think about this
'c:program' is not recognized as an internal or external command,
operable program or batch file.
pnmscale: EOF / read error reading magic number
ppmtojpeg: EOF / read error reading magic number
coming from somewhere in the apache log
maybe it doesn't like a path with space in it , like
c:/program files/easyphp/www/gallery..........
:roll:
Posts: 13451
I think you're right. It seems to need "FullPathToTheStuff" including the "'s - Seems to me thats were the problem is. I dunno where to fix it though....
Maybe you could install EasyPHP to somewhere else than in "Program Files"??
Standard PHP win32 install works great from c:php - with no such errors.
Posts: 487
Strange, that invalid command shouldn't happen, but trying
following <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.faq.c.php" TARGET="_blank">FAQ C.12</A><!-- BBCode End --> to see if that fixes it.
Posts: 54
Hi,
I just tried 4.22 and got this :
Processing status...
- Adding 0008.jpg
Executing:
"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum01 008_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages
Fatal error: Maximum execution time of 30 seconds exceeded in c:program fileseasyphpwwwgalleryplatformfs_win32.php on line 161
line 161 is the line where I've just added " around the $cmd
I'm not sure that this error is coming from the " because I had this error twice before.
Usually this error is coming after I tried something, and gallery looks stuck, so i have normally to restart the servers, gallery and sometime even the pc to be able to recreate the original error.
please note that after this error I have the image in album01 but renamed .
ex: uploading 011.jpg got this error and then 011_G.jpg is in album01
I don't know if it's normal or not , but the image is only there where I have this last error, when the upload error occurs I don't have any image in album01
thanks
phil
Posts: 487
There is a config option to set the max execution time allowed.
You can rerun the config or modify config.php and change it.
Try upping it 60 or something and see how it goes.
Posts: 54
Ok it really looks like gallery doesn't like the path including space into it.
I re-install easyphp directly in c: so now my path looks like this:
C:easyphp2wwwgallery instead of c:program fileseasyphp..........
I can now upload files, everything looks ok
Well, Case closed I guess
thanks
phil
Posts: 54
:smile:
Posts: 54
:wink: