Tried everything..still can't upload

psg11

Joined: 2002-09-07
Posts: 54
Posted: Sat, 2002-09-07 22:40

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 fileseasyphpwwwgalleryalbumsalbum0101_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 fileseasyphpwwwgalleryalbumsalbum0201_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages

Results:
stdin: Image 0:

Error messages:

Status: 1 (expected 1)
Executing:

"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum0201_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmfile" --allimages

Results:
stdin: Image 0:

Error messages:

Status: 1 (expected 1)
Executing:

"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum0201_G.jpg" | "c:program fileseasyphpwwwgallerynetpbmpnmscale" -xysize 150 150 | "c:program fileseasyphpwwwgallerynetpbmppmtojpeg" --quality=95 > "c:program fileseasyphpwwwgalleryalbumsalbum0201_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

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sat, 2002-09-07 22:42

sorry of course I meant turning status code to 1

phil

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-09-08 04:03

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.

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 04:27

Hi,

I just tried it...I got this :

jpegtopnm: Can't open c:program fileseasyphpwwwgalleryalbumsalbum0101_G.jpg. Errno=No such files or directory(2).
pnmfile: EOF / read error reading magic number
stdin: Image 0:

thanks

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 05:44
Quote:
Results:
stdin: Image 0:

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.

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 16:07

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

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 16:17

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:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2002-09-08 17:37

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.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 20:16

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.

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 20:40

Hi,

I just tried 4.22 and got this :

Processing status...
- Adding 0008.jpg
Executing:

"c:program fileseasyphpwwwgallerynetpbmjpegtopnm" "c:program fileseasyphpwwwgalleryalbumsalbum01008_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

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 20:50

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.

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 22:55

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

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-09-08 23:00

:smile:

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Mon, 2002-09-09 00:55

:wink: