Uploading images problem

h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2003-12-31 01:44

BrianKDav, ok. Thats a PHP/Apache issue, not a Gallery one (finally. :) )

 
horrorhorst

Joined: 2003-12-28
Posts: 5
Posted: Wed, 2003-12-31 18:41

h0bbel, but when the path is wrong the configuration wizard tells me an error and I can´t finish! is this true?

I set my permissions from the netpbm or Imagemagick folder to 755.

what means Status: 127 ???

Have I contract my web server to solve the problem???

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2003-12-31 22:51

What does home/gallery/image/ contain, and what are the permissions set on the files AND folder?

 
horrorhorst

Joined: 2003-12-28
Posts: 5
Posted: Thu, 2004-01-01 08:52

home/gallery/image/ contains imagemagick
permissions on the folders are 755 and on the files 644, but I set it also 755 and the same error appears!
Link:
http://www.peopleatparty.de/gallery/albums.php

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-01-01 09:06

horrorhorst, please provide a filelisting.
'ls -la'

 
horrorhorst

Joined: 2003-12-28
Posts: 5
Posted: Thu, 2004-01-01 20:00

I´ve made two screenshots from CuteFTP

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-01-01 20:03

You have the windows binaries! Not the proper ones I gather?

 
IndyGreg

Joined: 2003-12-30
Posts: 6
Posted: Fri, 2004-01-02 04:56

Alright, I've literally spent hours today trying to debug this upload hang/cmd.exe failing to close problem. As stated in a previous post, I am running XP Pro + Apache 2.0.48 + PHP 4.3.4 + IM 5.5.7 and Gallery 1.4.1. I experienced this problem about a month ago, then reformatted Windows and everything worked like a charm. About a week ago it just stopped working out of the blue. Strangely enough, I am able to upload single photos using the "add photos" interface, but when I go through the "Add photo" interface, the cmd.exe process for creating the thumbnail fails to close, unless, of course, the image's dimensions are smaller than the thumbnail's. After playing around with some settings, I was able to upload 3MP images through the single photo interface after changing the album's properties to disable an intermediate image (from 640) as well as changing the thumbnail size to something other than 150. A hunch tells me the solution was due to the prior though...

Also, I made the fs_exec changes suggested in this forum and it had no effect. Also, the command executes successfully, it just doesn't close. After uploading a single image, I am left with a thumbnail in the album directory.

Here is a copy of all the debug output I added in order to diagnose this problem:

processNewImage called with parameters
 file: C:\WINDOWS\TEMP\php15A.tmp
 tag: jpg
 name: IMG_0043.JPG
 caption: attempting to move uploaded file

- Adding IMG_0043.JPG
album->addPhoto called
Preprocessing image: C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
   Resizing/compressing original image
resize_image called
  src = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  dest = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  target = off
  target_fs = 0
  keepProfiles = 1
   No resizing required
Adding photo to the photo list
File C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg type 2.

resize_image called
  src = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  dest = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.thumb.jpg
  target = 150
  target_fs = 0
  keepProfiles = 0
target_fs is 0, so calling compress_image
compress_image() called
  src = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  out = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.thumb.jpg
  target = 150
  quality = 90
  keepProfiles = 0
ImCmd() called
  cmd = convert.exe

  args = -quality 90 -size 150x150 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 150x150 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.thumb.jpg

ImCmd() is returning: c:\usr\ImageMagick\convert.exe -quality 90 -size 150x150 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 150x150 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.thumb.jpg

exec_wrapper to execute: c:\usr\ImageMagick\convert.exe -quality 90 -size 150x150 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 150x150 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.thumb.jpg

Executing:

      c:\usr\ImageMagick\convert.exe -quality 90 -size 150x150 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 150x150 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.thumb.jpg


fs_exec() will execute: c:\usr\ImageMagick\convert.exe -quality 90 -size 150x150 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 150x150 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.thumb.jpg
Results:

none


Error messages::


Status: 0 (expected 0)
exec_wrapper has completed exec_internal() call
compress_image() function call complete
resize_image() is returning 1 IN UTIL ITEMCAPTUREDATE = 2004

album->getPhoto called with index = 1
resize_image called
  src = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  dest = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.highlight.jpg
  target = 200
  target_fs = 0
  keepProfiles = 0
target_fs is 0, so calling compress_image
compress_image() called
  src = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.jpg
  out = C:/web/webroot/htdocs/albumstest/album02/IMG_0043.highlight.jpg
  target = 200
  quality = 90
  keepProfiles = 0
ImCmd() called
  cmd = convert.exe

  args = -quality 90 -size 200x200 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 200x200 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.highlight.jpg

ImCmd() is returning: c:\usr\ImageMagick\convert.exe -quality 90 -size 200x200 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 200x200 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.highlight.jpg

exec_wrapper to execute: c:\usr\ImageMagick\convert.exe -quality 90 -size 200x200 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 200x200 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.highlight.jpg

Executing:

      c:\usr\ImageMagick\convert.exe -quality 90 -size 200x200 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 200x200 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.highlight.jpg


fs_exec() will execute: c:\usr\ImageMagick\convert.exe -quality 90 -size 200x200 +profile '*' C:\web\webroot\htdocs\albumstest\album02\IMG_0043.jpg -geometry 200x200 C:\web\webroot\htdocs\albumstest\album02\IMG_0043.highlight.jpg 

Yes, the thumbnail is actually generated, but Apache must be restarted afterwards.

If anybody feels so inclined, you can test this gallery at http://zorro.cwru.edu/gallerytest/

Login & Password = 'tester'

The only thing I did that could have possibly broke Gallery is install some software (see my previous post). Somehow has to have a solution for this problem...

 
ericp

Joined: 2003-12-28
Posts: 3
Posted: Sat, 2004-01-03 23:05

My problem sounds exactly like yours and the versions of things i'm running are the same, will keep checking back here...

 
s-fu

Joined: 2002-07-15
Posts: 22
Posted: Sat, 2004-01-10 20:07

Hi there,
Someone please check this problem. I guess many people is asking the same questions and having the same problem here.

What I can do is give you the full system for checking.

Please reply me at

Best regards,
Siming

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Mon, 2004-02-09 18:47

IndyGreg, do you have any news with your problem.
I'm fighting against exactly the same trouble.

Thank you!

Carlos.

 
fabasi

Joined: 2004-02-07
Posts: 4
Posted: Mon, 2004-02-09 23:20

OK, I have read all the related info about this issue.

I also have:

Win2000 Pro
IIS (latest)
PHP 4.3.4
Apache 2.0.48
Gallery 1.4.2 RC-2

Here is the solution/ my experience:

if I use the "Add Photo" and just upload 1 image, gallery hangs. I have to restart Apache to get things working again.

if I use "Add Photos" and add 1 picture, all is well. After this, I can use the "Add Photo" option and add just 1 picture with no problem.

So the problem seems to be with uploading a single image for the FIRST time! After uploading anything with the "Add Photos" option, the "Add Photo" one also works no problem.

I tried all the suggestions here (changing the thumbnail size to something other than 150, changing temp directories, etc... etc... but none of these seemed to solve the problem.

I suggest looking into WHY the "Add Photo" script fails the first time only and not after that...

looking forward to a solution.

-farshad

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Tue, 2004-02-10 02:42

Well guys, I'm all out of ideas...

Here's what happened:

I uploaded some pictures using the gallery remote, and it seemed to work just fine.
One of my friends was going to upload some new pictures, so he created a new album, and tried to add photos. Now the photos are rather big, so they need resizing.
So the little progress window pops up, and its white (signifying that it has locked up) and it will not do anything.

I have noticed that it has created the thumbnail for the file, and it has copied the file over into the proper directory... But it doesn't seem to be able to write the code? for linking the pictures in Gallery.

I have looked at the error logs, and apache is not seeing any errors going on when I try to upload the pictures.

I have done a clean install of Apache. (I was originally using Apache 2, but downgraded to 1.3 and I'm getting the same problem)
AND reinstalled PHP, got it all set up according to the installation docs, and I'm still having the same problem...

When I try using the gallery remote now, it wont do anything. The little status bar just keeps going back and forth???

I'm completely stumped....

Any help would be very appreciative.

Thanks in Advance...

Tried it on Both Apache 2 and apache 1.3
I have PHP 4.3.4 installed as a module...
No MySQL
Running WinXP Pro SP1

Tried it with a fresh gallery installation. Same issue....

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Tue, 2004-02-10 02:47

Hummm... not sure what I did... but I got it working.... =\

Well, what I DID do, is I copied the convert line that the debug info was showing manually into a command prompt, and executed that manually, and ever since I did that, the pictures seem to be uploading fine again....

Maybe some kind of sharing violation is happening!??

Here's some of the code by debugger brought up as well:

Processing status... 

- Adding ClientR 2004-01-27 16-06-36-59.jpg 
   Resizing/compressing original image 
   No resizing required 
File F:/Program Files/Apache Group/Apache/htdocs/gallery/Albums/album12/ClientR_2004_01_27_16_06_36_59_009.jpg type 2.


Executing:

E:\ImageMagick\convert -quality 100 -size 150x150 +profile '*' "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.jpg" -geometry 150x150 "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.thumb.jpg"

Results: 
none

Error messages:: 


Status: 0 (expected 0)
Executing:

E:\Inetpub\jhead\jhead.exe "F:\Program Files\Apache Group\Apache\htdocs\gallery\gal99A.tmp"

Results: 
File name    : F:\Program Files\Apache Group\Apache\htdocs\gallery\gal99A.tmp
File size    : 1084107 bytes
File date    : 2004:02:09 21:44:25
Resolution   : 1280 x 1022
Jpeg process : Baseline


Error messages:: 


Status: 0 (expected 0)IN UTIL ITEMCAPTUREDATE = 2004

Executing:

E:\ImageMagick\convert -quality 100 -size 200x200 +profile '*' "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.jpg" -geometry 200x200 "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.highlight.jpg"

Results: 
none

Error messages:: 


Status: 0 (expected 0)
- Resizing ClientR_2004_01_27_16_06_36_59_009 
Executing:

E:\ImageMagick\convert -quality 100 -size 640x640 +profile '*' "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.jpg" -geometry 640x640 "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_06_36_59_009.sized.jpg"

Results: 
none

Error messages:: 


Status: 0 (expected 0)

- Adding ClientR 2004-01-27 16-09-08-11.jpg 
   Resizing/compressing original image 
   No resizing required 
File F:/Program Files/Apache Group/Apache/htdocs/gallery/Albums/album12/ClientR_2004_01_27_16_09_08_11.jpg type 2.


Executing:

E:\ImageMagick\convert -quality 100 -size 150x150 +profile '*' "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_09_08_11.jpg" -geometry 150x150 "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_09_08_11.thumb.jpg"

Results: 
none

Error messages:: 


Status: 0 (expected 0)
Executing:

E:\Inetpub\jhead\jhead.exe "F:\Program Files\Apache Group\Apache\htdocs\gallery\gal99F.tmp"

Results: 
File name    : F:\Program Files\Apache Group\Apache\htdocs\gallery\gal99F.tmp
File size    : 990803 bytes
File date    : 2004:02:09 21:44:26
Resolution   : 1280 x 1022
Jpeg process : Baseline


Error messages:: 


Status: 0 (expected 0)IN UTIL ITEMCAPTUREDATE = 2004

- Resizing ClientR_2004_01_27_16_09_08_11 
Executing:

E:\ImageMagick\convert -quality 100 -size 640x640 +profile '*' "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_09_08_11.jpg" -geometry 640x640 "F:\Program Files\Apache Group\Apache\htdocs\gallery\Albums\album12\ClientR_2004_01_27_16_09_08_11.sized.jpg"

Results: 
none

Error messages:: 


Status: 0 (expected 0)No email sent as no valid email addresses were found 
 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Tue, 2004-02-10 02:53

Errr.... well... it was working, until I took it out of debug mode, deleted an album, and tried to upload another picture, and its doing the same thing again.

arrrgggggg....

I cant remember how I managed to get the debug info to come up the first time either. (the first exec line atleast) to be able to force feed it into the command prompt.... But if you manage to get that done, it seems to fix the problem momentarily.

For some reason, it cant seem to process this line of the debug info normally:

File F:/Program Files/Apache Group/Apache/htdocs/gallery/Albums/album12/ClientR_2004_01_27_16_06_36_59_009.jpg type 2.

any thoughts?

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Tue, 2004-02-10 13:38

ghosty, despite I still can't solve the problem, remeber to install your applications on a "no space" path.... I saw in your logs the apache path and it is on "Program File" folder...

 
kevil

Joined: 2004-02-10
Posts: 1
Posted: Tue, 2004-02-10 13:48

I have the same problem.
then, I change php version to 4.2.3 not 4.3.x
it works

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Tue, 2004-02-10 15:18
cyaconi wrote:
ghosty, despite I still can't solve the problem, remeber to install your applications on a "no space" path.... I saw in your logs the apache path and it is on "Program File" folder...

I'm pretty sure thats not the case anymore, since I had it working just find before, and for a couple minutes after it started happening.

I wish I remember what I did, I cant get it to work anymore.

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Wed, 2004-02-11 12:29
kevil wrote:
I have the same problem.
then, I change php version to 4.2.3 not 4.3.x
it works

This is the final answer?

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Wed, 2004-02-11 16:00
kevil wrote:
I have the same problem.
then, I change php version to 4.2.3 not 4.3.x
it works

Nope, didn't work for me.

C'mon guys, we could really use some more help!

Quick question, how many of you originally started to use gallery on IIS, and then switched to using Apache? I did... Maybe that has something to do with it?

 
poortwistedme

Joined: 2004-02-11
Posts: 2
Posted: Wed, 2004-02-11 21:18

I've got:
Apache 1.3.29 (Unix)
PHP 4.3.3
MySQL 4.0.15-standard
Gallery 1.4.1
netpbm1.1-gallery1.0-freebsd4.2-intel

same problem as anyone else, can't upload pic. maybe i am missing something, but this is what i get from the debugger.

Quote:
- Adding 2003_logo_wb.jpg
Resizing/compressing original image
No resizing required
File /home/pjgsqua/public_html/PHPnuke/albums/testing/2003_logo_wb.jpg type 2.

Executing:

/home/pjgsqua/public_html/PHPnuke/gallery/netpbm/jpegtopnm /home/pjgsqua/public_html/PHPnuke/albums/testing/2003_logo_wb.jpg | /home/pjgsqua/public_html/PHPnuke/gallery/netpbm/pnmscale -xysize 150 150 | /home/pjgsqua/public_html/PHPnuke/gallery/netpbm/ppmtojpeg --quality=90 > /home/pjgsqua/public_html/PHPnuke/albums/testing/2003_logo_wb.thumb.jpg

Results:
none

Error messages::

Status: 255 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

the Executing part is different for a small file and for a large one. thanks for any help in advance.

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Wed, 2004-02-11 23:28

Quick thought, but this probably has a lot to do with the problem we're having....

What kind of code should we be putting in our HTTD.conf file to allow apache to access the proper folders....

This is what I have:

<Directory "f:/program files/apache group/apache/htdocs/gallery">
	AllowOverride All
	Allow from all
	DirectoryIndex index.php
</Directory>

any thoughts?

 
fabasi

Joined: 2004-02-07
Posts: 4
Posted: Thu, 2004-02-12 00:16

Are you guys having a problem with single uploads or multiple uploads?

As I said in my earlier post, if I make a new album, and then try to use the single upload function, I have the same problem as you.

BUT if I make a new album, and use the multiple upload function to put just one picture in, and then use the single upload function from then on, all seems to be OK.

So I just went in the PHP code and took out the single upload option from the menu...

Something seems to be wrong with that script...

All is working fine for me now (I just use the Add Photos instead of Add Photo all the time).

-farshad

 
poortwistedme

Joined: 2004-02-11
Posts: 2
Posted: Thu, 2004-02-12 00:22

i can't seem to upload one or more pics.

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Thu, 2004-02-12 05:05
fabasi wrote:
Are you guys having a problem with single uploads or multiple uploads?

As I said in my earlier post, if I make a new album, and then try to use the single upload function, I have the same problem as you.

BUT if I make a new album, and use the multiple upload function to put just one picture in, and then use the single upload function from then on, all seems to be OK.

So I just went in the PHP code and took out the single upload option from the menu...

Something seems to be wrong with that script...

All is working fine for me now (I just use the Add Photos instead of Add Photo all the time).

-farshad

tried that already, didn't work. Well, it did once, but hasn't worked since.

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Thu, 2004-02-12 05:08

actually, just tried it again, and it worked this time...

Yea, there must be something wrong with the single add photo function after a new album has been created.

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Thu, 2004-02-12 05:20

oops, scratch that, it stopped working again using that method....

 
Ghosty

Joined: 2003-11-19
Posts: 38
Posted: Mon, 2004-02-16 00:11

bump

 
luddet

Joined: 2004-02-23
Posts: 5
Posted: Mon, 2004-02-23 01:26

bump

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-02-23 06:47

Can some of you guys try ou 1.4.3-cvs from http://jpmullan.com/galleryupdates/ and see if the probllem still exists in that version?

 
luddet

Joined: 2004-02-23
Posts: 5
Posted: Mon, 2004-02-23 09:02

I'm trying it out now. In the install process right now.
I received this error in the configuration:
Fatal error: Call to undefined function: validate_email() in D:\pathtomygallery\gallery\setup\functions.inc on line 1184

I tried the email diagnostics and it was able to successfully send mail.

But since this most likely is unrelated to the other problem, I'll just turn mail off for now and go on with the installation.

 
luddet

Joined: 2004-02-23
Posts: 5
Posted: Mon, 2004-02-23 09:10

Ok, installed and tried. As far as I could see there was no "Upload photo" anymore. Only "Upload photos".
And that seems to work flawlessly.
Oh, I forgot to say. This is the file I used: gallery.1.4.3-cvs-b48.tar.gz

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-02-23 09:27

luddet, great stuff! Seems we might have been able to iron out the issue. :)

As to your undefined function, thats strange. Are you sure all files were overwritten while upgrading?

 
luddet

Joined: 2004-02-23
Posts: 5
Posted: Mon, 2004-02-23 09:57

Yes, absolutely. I did a clean install. Deleted the old gallery.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-02-23 19:05

luddet, thats weird. Try upgrading to a newer cvs version (the latest is b50 as we speak, should pop up on the nightly build site tonight)

 
flarn

Joined: 2004-02-23
Posts: 4
Posted: Mon, 2004-02-23 22:59

I tried what everyone said with no results. The gallery still hangs after I try to upload 1 or more pictures. I used 1.4.3-cvs-b48 and b49 and the current release version. I'm running
Apache
php4.3.3

On a solaris box.

Any other suggestions? (Please)

Thanks :o

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-02-23 23:28

flarn, please go through FAQ Gallery:c.2 and post the results in a new tread. This one is crowded as it is. :)

 
flarn

Joined: 2004-02-23
Posts: 4
Posted: Tue, 2004-02-24 00:27

and so I did. -Thanks