[b]no response when uploading photos[/b]

ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 07:46

:cry:
when i upload the pictures it just gives no response. it says it was uploading and the triangles were moving but it just stay the same screen and the upload were failed. it just showed me such things in debug mode

- Adding PICT0012.JPG
Executing:

D:\Nymphean\http\apache\netpbm\jpegtopnm d:\nymphean\http\nymphean\albums\album02\PICT0012.jpg | D:\Nymphean\http\apache\netpbm\pnmscale -xysize 150 150 | D:\Nymphean\http\apache\netpbm\ppmtojpeg --quality=95 > d:\nymphean\http\nymphean\albums\album02\PICT0012.thumb.jpg

i tried using gallery remote too but it says "server contacted, but gallery not found at this URL (http://www.nymphean.com/gallery/gallery_remote2.php) <-but of course the file is there!

i just tried to upload a 66kb file but it even didnt work out!

please give me a hand guys:)
thanks all!

Apache 1.3.28 on WinXP Professional
Gallery 1.4-RC3
PHP 4.3.3
netpbm 10.6-bin excutables
IE6

address:
http://photo.nymphean.com
http://nymphean.com/gallery

test acount:
login: test
pass: test

Login or register to post comments
digglez
digglez's picture

Joined: 2003-10-26
Posts: 35
Posted: Wed, 2003-11-05 07:49

I had a similar problem, solved by following:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=215

Good luck,
Digglez

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 11:23

thanks digglez

i read that post before i posted my problem again but i still cannot upload files
maybe i dont understand what you said

"
I changed some code in gallery/setup/confirm.inc because it didn't recognize the renamed pnmtojpeg.exe file (was still setting $gallery->app->pnmtojpeg = "ppmtojpeg")

/*
* In NetPBM 9.19, they renamed "ppmtojpeg" to "pnmtojpeg". !@#$%
* Add a special case constant to tell us which binary we located on
* the machine (so we know which one to use!). It sucks that we
* have to do this!
*/
$data .= one_constant("pnmtojpeg", "pnmtojpeg");
$view .= row_wrap(one_constant("pnmtojpeg", "pnmtojpeg"));

"
i just dont know which lines to replace so i just added the last two lines in the middle of the file, so what should i do?
thanks much!

cheers!

Login or register to post comments
digglez
digglez's picture

Joined: 2003-10-26
Posts: 35
Posted: Wed, 2003-11-05 12:03

Hi,

1) make sure libjpeg.dll is in the same directory as the netpbm files.

2) in the netpbm directory check if ppmtojpeg.exe exists rather than pnmtojpeg.exe.

3) I found ppmtojpeg in netpbm1.1-gallery1.0-win32.tar downloaded from http://sourceforge.net/project/showfiles.php?group_id=7130

4) point config at ppmtojpeg.

5) then it just seemed to work :D

Have fun,
Dave

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 13:27

thanks digglez

i have tried using the version of netpbm you've quoted but the problem is still there.(netpbm1.1-gallery1.0-win32.tar)
i am sure the files you mentioned were there and i have chosen ppmtojpeg and still same

but did you upload the picture? who did that successfully?

thanks

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 13:34

besides, i used to upload files successfully but i found that it just suddenly failed yesterday... i tried installing gallery at other directory using the same way i did and it failed too!

thanks

Login or register to post comments
digglez
digglez's picture

Joined: 2003-10-26
Posts: 35
Posted: Wed, 2003-11-05 13:44

Oh! I didn't know it had only just failed to work...

What did you change ?
Have you checked with your hosting company to see if they have disabled anything ?

Digglez

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 13:49

i host it at my own pc.
i just found that someone upload a picture successfully.... but i still cannot!

Login or register to post comments
digglez
digglez's picture

Joined: 2003-10-26
Posts: 35
Posted: Wed, 2003-11-05 14:05

It still appears to be a ppmtojpeg / pnmtojpeg / libjpeg.dll problem.

I've just put a small image up (one that doesn't need resizing)
That was exactly what happened to me, before following the steps I mentioned above.

Digglez.

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Wed, 2003-11-05 15:52

add me icq or give me emil, i give you the ftp so you can change the files
icq6860443
email

Login or register to post comments
bwhitehouse

Joined: 2003-11-05
Posts: 1
Posted: Wed, 2003-11-05 17:44

I was having similar problems and I noticed that the behavior was a little different depending on which browser I was using so this may seem like a stretch but it worked for me.

The submit buttons in the forms of add_photo.php and add_photos.php actually call two sucessive javascript routines:

add_photo.php

<input type="button" value="<?php echo _("Upload Now") ?>" onClick='opener.showProgress(); document.upload_form.submit()'>

add_photos.php

<input type="button" value="<?php echo _("Upload Now") ?>" onClick='opener.showProgress(); document.upload_form.submit()'>

<input type="button" value="<?php echo _("Submit URL or directory") ?>" onClick='opener.showProgress(); document.uploadurl_form.submit()'>

If I turn off the progress indicator (One could argue that it isn't needed anyway because of the reporting function that displays the filenames as they are processed), my loading problems stop.

add_photo.php

<input type="button" value="<?php echo _("Upload Now") ?>" onClick='document.upload_form.submit()'>

add_photos.php

<input type="button" value="<?php echo _("Upload Now") ?>" onClick='document.upload_form.submit()'>

<input type="button" value="<?php echo _("Submit URL or directory") ?>" onClick='document.uploadurl_form.submit()'>

If this doesn't work for you I also took it a step further and made sure I had access to the form being sent (this is DOM-2 compliant).

Add this javascript function inside the <script> tags:

function submitForm(strFormId){
var form = document.getElementById(strFormId);
form.submit();
}

then add an id tag to your forms, for example:

<?php echo makeFormIntro("save_photos.php",
array("id" => "upload_form",
"name" => "upload_form",
"enctype" => "multipart/form-data",
"method" => "POST")); ?>

next call the function in the forms' submit button:

<input type="button" value="Upload Now" onClick='submitForm("upload_form");'>

I hope this helps.

Login or register to post comments
ken_nx

Joined: 2003-11-05
Posts: 7
Posted: Thu, 2003-11-06 03:51

thanks bwhitehouse,

i've tried editing the add_photo.php as you said but the problem persists.
i have found some more clues, when i try to upload files, it could copy the PICT0001.jpg to the album folder, and PICT0001.thumb.jpg is created, but the PICT0001.sized.jpg is not created. i dont know why...

thanks all:)

Login or register to post comments