Uploading images problem

romario

Joined: 2003-12-18
Posts: 8
Posted: Fri, 2003-12-19 13:55

ok...to begin with:

I've got:
Apache 1.3.28
PHP 4.3.3
MySQL 3.23.57
Windows XP Pro
Gallery 1.4.1
netpbm-10.6-1-bin.exe (also tried with ImageMagick, still problems)
+ jhead.exe
------------------------------------------

Installation and cofiguration works perfect and I can also access the gallery through the web, but the problem occures when I try to upload or add an image to a new album.

I click on add photos, choose a single picture on my computer, fill the boxes and click on Upload. Then a new smaller blank popup window appears and everything stops. On the other window appears this text:

- Adding my_picture.jpg
Resizing/compressing original image
No resizing required

First I thought it should be so, but after a while I closed the two popup windows and returned to the gallery, refreshed and the gallery wouldn't open. Only after I open the windows task manager and close some applications (cmd.exe, jpegtopnm.exe,...) the galley works, but of course the picture wasn't added. Album is still empty.

So I go on my www directory of apache to check if there was some action. In the gallery/albums/album01/ is the picture I uploaded, but the thumbnail only shows the text "no picture...".

What did I do wrong? Please help. I searched the web, I couldn't find a answer.

Thanks

Mario

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2003-12-19 14:39

Go through FAQ Gallery:c.2 and post the debug info here.

 
khva1380

Joined: 2003-12-19
Posts: 3
Posted: Fri, 2003-12-19 14:45

I've got exactly the same problem - only difference is mysql is not installed.

When debugging - no info is generated - the browser just 'hangs'. I've installed on two different computers - one set up as localhost and one set up as intranet server. It works on the localhost, but not the intranet server. Both are running eactly the same setups (win xp etc etc).

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2003-12-19 14:50

khva1380, i gather you'll do the same then ? :)

Oh, and one more thing, there has been some issues with apache/php on Windows XP without SP1. Do you guys have SP1 installed?

 
khva1380

Joined: 2003-12-19
Posts: 3
Posted: Fri, 2003-12-19 14:55

Hi h0bbel,

I've tried the same and don't get any information generated. (I am in debug mode as the login window doesn't close down and reports debug to be active).

Ok - I've got windows xp home with SP1 installed on both machines. I just edited my first post with some extra info in the light of yours!

Cheers

 
romario

Joined: 2003-12-18
Posts: 8
Posted: Fri, 2003-12-19 14:59

I've got the SP1 installed, also the latest updates.

will try the debug mode then i'll come back and report

P.S.

how can I chmod the directory if the server is runnin on my computer and the folder is on my hard drive?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2003-12-19 15:00

khva1380, does your apache error_log contain any info?

 
khva1380

Joined: 2003-12-19
Posts: 3
Posted: Fri, 2003-12-19 15:20

apache error_log as follows...

________________
'uname' is not recognized as an internal or external command,
operable program or batch file.
giftopnm: Using libpbm from Netpbm Version: Netpbm 9.14
giftopnm: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
giftopnm: BSD defined
giftopnm: RGB_ENV='RGBDEF'
giftopnm: RGBENV= 'RGBDEF' (env vbl is unset)
jpegtopnm: Using libpbm from Netpbm Version: Netpbm 9.14
jpegtopnm: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
jpegtopnm: BSD defined
jpegtopnm: RGB_ENV='RGBDEF'
jpegtopnm: RGBENV= 'RGBDEF' (env vbl is unset)
pngtopnm: Using libpbm from Netpbm Version: Netpbm 9.14
pngtopnm: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pngtopnm: BSD defined
pngtopnm: RGB_ENV='RGBDEF'
pngtopnm: RGBENV= 'RGBDEF' (env vbl is unset)
pnmcut: Using libpbm from Netpbm Version: Netpbm 9.14
pnmcut: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmcut: BSD defined
pnmcut: RGB_ENV='RGBDEF'
pnmcut: RGBENV= 'RGBDEF' (env vbl is unset)
pnmfile: Using libpbm from Netpbm Version: Netpbm 9.14
pnmfile: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmfile: BSD defined
pnmfile: RGB_ENV='RGBDEF'
pnmfile: RGBENV= 'RGBDEF' (env vbl is unset)
pnmflip: Using libpbm from Netpbm Version: Netpbm 9.14
pnmflip: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmflip: BSD defined
pnmflip: RGB_ENV='RGBDEF'
pnmflip: RGBENV= 'RGBDEF' (env vbl is unset)
pnmrotate: Using libpbm from Netpbm Version: Netpbm 9.14
pnmrotate: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmrotate: BSD defined
pnmrotate: RGB_ENV='RGBDEF'
pnmrotate: RGBENV= 'RGBDEF' (env vbl is unset)
pnmscale: Using libpbm from Netpbm Version: Netpbm 9.14
pnmscale: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmscale: BSD defined
pnmscale: RGB_ENV='RGBDEF'
pnmscale: RGBENV= 'RGBDEF' (env vbl is unset)
pnmtopng: Using libpbm from Netpbm Version: Netpbm 9.14
pnmtopng: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
pnmtopng: BSD defined
pnmtopng: RGB_ENV='RGBDEF'
pnmtopng: RGBENV= 'RGBDEF' (env vbl is unset)
ppmquant: Using libpbm from Netpbm Version: Netpbm 9.14
ppmquant: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
ppmquant: BSD defined
ppmquant: RGB_ENV='RGBDEF'
ppmquant: RGBENV= 'RGBDEF' (env vbl is unset)
ppmtogif: Using libpbm from Netpbm Version: Netpbm 9.14
ppmtogif: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
ppmtogif: BSD defined
ppmtogif: RGB_ENV='RGBDEF'
ppmtogif: RGBENV= 'RGBDEF' (env vbl is unset)
ppmtojpeg: Using libpbm from Netpbm Version: Netpbm 9.14
ppmtojpeg: Compiled Sun May 27 17:27:36 2001 by user "phumblet"
ppmtojpeg: BSD defined
ppmtojpeg: RGB_ENV='RGBDEF'
ppmtojpeg: RGBENV= 'RGBDEF' (env vbl is unset)

 
romario

Joined: 2003-12-18
Posts: 8
Posted: Fri, 2003-12-19 16:44

that's the error message I receive:

Quote:
- Adding 100si.gif
Resizing/compressing original image
No resizing required
File c:/appserv/www/albums/album01/100si.gif type 1.

No resizing required

Executing:

c:\appserv\www\gallery\jhead.exe C:\WINDOWS\TEMP\gal56.tmp

Results:
Not JPEG: C:\WINDOWS\TEMP\gal56.tmp

Error messages::

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

No resizing required

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Fri, 2003-12-19 19:26

I've exactly the same problem!!!
But if upload a whole directory, it works perfect!. My problem is only when uploading just 1 photo.

Another thing... I can't see the debug message, my browser hangs before that.

BTW, I tested NetPBM and imagemagick, last versions both, and the problem continues.

 
romario

Joined: 2003-12-18
Posts: 8
Posted: Sat, 2003-12-20 09:41

could someone please please please help?

thanks

 
s-fu

Joined: 2002-07-15
Posts: 22
Posted: Sat, 2003-12-20 18:03

Same here after upgrae to the new 1.4.1.
It stop at
Resizing/compressing original image
No resizing required
Gallery remote 1.2 doesn't help.
Will try to restart everything.

Thanks,
Siming

 
Juspe

Joined: 2003-12-15
Posts: 2
Posted: Sat, 2003-12-20 19:53

I have that same problem. I get this kind of error in debug mode.

- Adding normal_wappu2003_009.jpg
Resizing/compressing original image
No resizing required
File C:/sivut/albums/album01/aac.jpg type 2.

Executing:

c:\sivut\netpbm\jpegtopnm C:\sivut\albums\album01\aac.jpg | c:\sivut\netpbm\pnmscale -xysize 150 150 | c:\sivut\netpbm\ppmtojpeg --quality=90 > C:\sivut\albums\album01\aac.thumb.jpg

Fatal error: Maximum execution time of 30 seconds exceeded in C:\sivut\gallery\platform\fs_win32.php on line 169

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Sat, 2003-12-20 19:56

MMM.... too many people with the same problem.
It looks like a bug...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2003-12-22 07:12

romario, your upload seems to work? No errors in the debug info. URL?

Juspe, yours is timing out. Please search the forums for that error, you should find a lot of threads dealing with the same error message.

 
petjez

Joined: 2003-12-22
Posts: 4
Posted: Mon, 2003-12-22 16:56

I've got exactly the same as Romario. Except that i'm using Windows 2003 instead of WinXP.

 
petjez

Joined: 2003-12-22
Posts: 4
Posted: Mon, 2003-12-22 18:17

Hi,

does anyone has a workaround for this issue. I've also tried using the Windows Publishing agent, this gives the same result, everting hangs.

Regards, Patrick

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2003-12-22 18:58

Ok.

I've got a suggestion for you guys. We are working on a change to the way executable files are called from Gallery.

Could you try out what is mentioned in http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=10915&highlight= and see if that helps you out?

 
petjez

Joined: 2003-12-22
Posts: 4
Posted: Mon, 2003-12-22 21:34

I've tried the suggestion to change the way executable are called. Didn't change anything for me. Gallery upload screen seems frozen and an instance of cmd.exe is still loaded ?!

I've no knowledge of PHP so maybe i'm not a good victim. Can someone else please try.

Patrick

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2003-12-22 23:21

petjez, then i guess your problem is unrelated to how cmd.exe is called.

Are you absolutely sure you followed the documentation @ http://gallery.sf.net/docs.php including the notes specifically relating to Windows 2003?

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Tue, 2003-12-23 00:38

Didn't woking for me neither...
Actually I'm reading the php documentation to try to find anything.

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Tue, 2003-12-23 12:53

Bad news... I couldn't find something to fix the problem.
Please, help with this....

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2003-12-23 13:04

cyaconi, PM me a test account and I can have a look at it. Please leave it in debug mode.

Any other ways of me acessing the box itself, like Remote Desktop would also be very usefull. :)

 
s-fu

Joined: 2002-07-15
Posts: 22
Posted: Wed, 2003-12-24 02:52

Try me.
http://66.11.160.155

After config I changed the admin logon pw to my ip address w/o the dots.

During the config. I always having the RED warning of

The following files are out of date, corrupted or missing:
setup/.htaccess.

You might try vnc connection to my ip for the desktop access.

Really want this resolved ASAP. Otherwise, I have to go back to my 1 month ago's backup.

Thanks + Best regards,
Merry X'mas and Happy New Year.

Siming

 
petjez

Joined: 2003-12-22
Posts: 4
Posted: Wed, 2003-12-24 09:23

I've solved my upload problem by setting a temp directorie in php.ini.
Default setting is to use the system temp folder. I simply added an extra temp folder: c:\php\temp and added this in php.ini

Succes, Patrick

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2003-12-24 12:09

petjez, great stuff! Would you mind adding a note describing the problem and the solution to the appropriate section on http://gallery.sf.net/docs.php ?

 
jpeadro

Joined: 2003-12-24
Posts: 198
Posted: Wed, 2003-12-24 14:57

I am having the same issue as everyone else. I have modified php.ini, save_photos.php, etc, etc. I am running the latest build of Gallery on PHP 4.3.3 and Apache 1.38. Again below is my debug info. Thanks for the help. My family & I love Gallery.

Executing:

c:\unzip\zipinfo.exe -Z1 C:\php\temp\php760.tmp

Results:
000_0072.JPG
000_0073.JPG
000_0075.JPG

Error messages::

Status: 0 (expected 0)
Executing:

c:\unzip\unzip.exe -j -o C:\php\temp\php760.tmp 000_0072.JPG -d C:\WINDOWS\TEMP

Results:
Archive: C:/php/temp/php760.tmp
inflating: C:/WINDOWS/TEMP/000_0072.JPG

Error messages::

Status: 0 (expected 0)
- Adding 000_0072.JPG
Resizing/compressing original image
No resizing required
File c:/program files/apache group/apache/htdocs/albums/misc-pics/aan.jpg type 2.

Executing:

"C:\Program Files\ImageMagick-5.5.7-Q16\convert" -quality 95 -size 150x150 +profile '*' "c:\program files\apache group\apache\htdocs\albums\misc-pics\aan.jpg" -geometry 150x150 "c:\program files\apache group\apache\htdocs\albums\misc-pics\aan.thumb.jpg"

Results:
none

Error messages::

Status: 1 (expected 0)
Error: Unable to make thumbnail (0)! ****<ERROR<****

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2003-12-24 15:00

Put IM in a directory without a space (i.e. not Program Files)

 
jpeadro

Joined: 2003-12-24
Posts: 198
Posted: Wed, 2003-12-24 15:27

Just did that and was going to update this post. I saw in the apache logs it didn't like the "Program Files\. I put IM in C:\ImMag and it now works. Thanks so much..

:D

 
cyaconi

Joined: 2003-12-19
Posts: 12
Posted: Wed, 2003-12-24 19:42

Thaks petjez, but I still can't upload images...
As I said before, I can't read any debug info, the browser just freeze!

Please, help!!!!!!!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2003-12-24 21:31

cyaconi, any way we can access your server?

 
s-fu

Joined: 2002-07-15
Posts: 22
Posted: Thu, 2003-12-25 05:53

Please everyone, keep this question clear.
I was using 1.4 w/o any problem, once upgrade to 1.4.1 I got this problem.
Anything related to .htaccess file? I doubt about this. Using this file in Windows platform is kind of problem.
My tmp directory is running fine with updates.
When I checking the check_netpbm.php , it hangs.

Please do get back to the question owner.

My system still open, please look at my previous post for pw.

Thanks + Best regards,
Siming

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2003-12-25 10:17

s-fu, sorry about this. This has to be the most confusing thread ever. :(

It's pretty weird that it worked before the upgrade, especially since you use NetPBM. There has been som changes in the way we call Imagemagick, but not NetPBM.

Is there any way I can access your server directly, via remote desktop or something similar? PM me details if you'd like.

 
BrianKDav

Joined: 2003-12-24
Posts: 7
Posted: Fri, 2003-12-26 16:52

I think I'm having the same problem as these other folks. Here's the info I've gathered so far.

The problem pops up when I try to upload my first picture. After I browse to my jpeg and click upload, it times out. If I click upload again, I get "Page cannot be displayed". Up on the server, my Apache error_log file shows:

"[notice] child pid 7271 exit signal Segmentation fault (11)"

When I go into config wizard, then detailed checking of the NetPBM modules, I get 12 lines just like:

"Checking: /www/netpbm/bin/giftopnm Expected status: 0, but actually received status 127."

Oh, yeah - when I turn on debugging, where am I supposed to find the additional output? Do I need to lower the threshold on my apache error log?

My environment:
URL: http://www.briankd.com/nuke/modules/gallery/
Gallery version: 1.4.1
PHP version: 4.3.3
Apache version: 2.0.47
Opsys version: Linux 2.4.22 on i686 architecture.
Browser version: MSIE 6.0.28.1106
NetPBM version: 10.18.4 (located in the "jail")

Could I mention something your last remark brings to mind? You stated that you've changed the way you call imagemagick, but not how you call NetPBM. I've heard, and made myself, similar remarks about other programming problems. Sometimes that means that tweaks were made to a module that was thought to be specific to the updated function, but is actually common to it and the now failing function. Please forgive my frankness, but I've been here myself before.

I can provide access to my server and instance of Gallery, if you desire it.

Thank You -- Brian

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2003-12-26 17:24

BrianKDav, a segfault most of the time mean that you are using the wrong binaries. Are you absolutely sure that you uploaded the linux binaries? Do they work in standalone mode, from the command line?

As for the changes made to imagemagick, YES i am sure that only IM is affected. The command line used to call convert has changed, the parameter order is the only thing changed. :)

 
BrianKDav

Joined: 2003-12-24
Posts: 7
Posted: Sat, 2003-12-27 19:31

A little progress. In answer to your question about the NetPBM binaries, I had downloaded the source and done the configure, make, make package, installnetpbm. I finally got green boxes in check_netpbm.php after making shared libraries, and installing to the same folders as Apache (www/bin, include, lib, & man). I have a record of all my replies to that process if you want them. Jhead and Jpegtran are in the jail (www/bin etc.). I'm still getting a seg fault.

What's next?

--Brian

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2003-12-27 23:11

BrianKDav, and do they execute when run from the command line?

 
BrianKDav

Joined: 2003-12-24
Posts: 7
Posted: Sun, 2003-12-28 04:20

Sorry, yes - command line worked. Here's an example:

# giftopnm --version
giftopnm: Using libpbm from Netpbm Version: Netpbm 9.24
giftopnm: Compiled Wed Feb 19 11:26:33 EST 2003 by user "root"
giftopnm: BSD defined
giftopnm: RGB_ENV='RGBDEF'
giftopnm: RGBENV= 'RGBDEF' (env vbl is unset)

Wierd thing is, if I invoked MAKE to create this, why is the compile date in February?

I'm now trying to figure out where it actually breaks, but I don't know enough about PHP to be effective. What I'd like to do is, starting with add_photo.php, insert code in the module that writes a log line to a specific file. Can you provide a sample of PHP code to add a line with a timestamp to a trace file?

--Brian

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2003-12-28 06:59
 
s-fu

Joined: 2002-07-15
Posts: 22
Posted: Sun, 2003-12-28 19:42

h0bbel, :)

You wrote:
"
s-fu , sorry about this. This has to be the most confusing thread ever.

It's pretty weird that it worked before the upgrade, especially since you use NetPBM. There has been som changes in the way we call Imagemagick, but not NetPBM.

Is there any way I can access your server directly, via remote desktop or something similar? PM me details if you'd like.
"
I had returned to the 1.4-pl2 which still have the upload problem, I will do a complete restore to test it further. The screen hanging after the image is uploaded and sever start processing the image.
What I could remember after my last upload and before the upgrade, is that I had upgraded my J2EE client to a newer version.
java -version
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

I guess this could be the problem. I might uninstall and give a fly.

Please give me you PM address, so I can write to you.

Cheers,
Happy New Year!
Siming

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2003-12-28 20:00

s-fu, the java upgrade shouldn't cause stuff like that to happen.

Email me at

or send me a PM here in the forums.

 
ericp

Joined: 2003-12-28
Posts: 3
Posted: Mon, 2003-12-29 02:45

I have a similar problem running PHP 4.3.4 and the latest Apache 2.0.48, I have tried imagemagick and netpbm. Both successfully convert the images to thumbnails and save them, but the window that normally shows the uploading animation will fail to display after the server says everything is fine. CMD.exe windows get stuck open, and I have to restart apache, the previous copy of which then later crashes. GalleryRemote appears to work fine every time, while uploading thru the webpage may work once if I am lucky, but usually fails the first time. Here's my debug:

Adding swirly.jpg
Resizing/compressing original image
No resizing required
File C:/xampp/htdocs/osutubas/albums/album13/swirly.jpg type 2.

Executing:

C:\ImageMagick\convert -quality 90 -size 150x150 +profile '*' C:\xampp\htdocs\osutubas\albums\album13\swirly.jpg -geometry 150x150 C:\xampp\htdocs\osutubas\albums\album13\swirly.thumb.jpg

Results:
none

Error messages::

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

Executing:

C:\ImageMagick\convert -quality 90 -size 200x200 +profile '*' C:\xampp\htdocs\osutubas\albums\album13\swirly.jpg -geometry 200x200 C:\xampp\htdocs\osutubas\albums\album13\swirly.highlight.jpg

Results:
none

Error messages::

Status: 0 (expected 0)
- Resizing swirly

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2003-12-29 03:05

ericp, Is this in Windows 2000 or Windows XP ? Have you tried the changes mentioned in http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=10915&highlight= ?

 
ericp

Joined: 2003-12-28
Posts: 3
Posted: Mon, 2003-12-29 03:09

This is Win2K w/Apache.. I keep thinking winxp with SP1 since that's what I have on my desktop, doh. What leads you to believe the problem may be in calling cmd.exe? The conversion always takes place and leaves me with my large image and thumbnails in the albums dir, but it's like it can't finish the process. :(

 
eschamann
eschamann's picture

Joined: 2003-12-27
Posts: 2
Posted: Mon, 2003-12-29 06:28

h0bbel, everybody... apparently I found a "bug ?" pls. test this with your configs (I had the same problem related here and now it's solved).

After this, if you have Albums you can rename the Album directory to other and create the Album dir again. Then you need to re-run the "Gallery Configuration Wizard" to create the Admin usr & psw.

1) Create a a Gallery (if you haven't one yet).
2) Create an Album (if you haven't one yet). NOW PAY ATTENTION
3) Go into this Album
4) Goto the Properties (into the drop-down near the slideshow link)
5) Search for the "Maximum dimensions of intermediate sized images" field, by default is with 640.
6) Change the value to OFF (then you can change to 640 again).
7) Apply the changes
8) Close the window
9) Upload the image that you want.
10) Now you can return to the properties and change that field -see 5)- to 640 or any other value.
11) Now the Gallery works fine.

I spent 2 days until see this "solution/bug".

Remember that when Apache hangs you must stop/restart the service...

I'm very Newbie with PHP so I can't figure out where the problem is.

My config:
Win XP Pro (SP1) - English version
Apache 2.0.48
PHP 4.3.4
Gallery 1.4.1

Gallery is Using:
NetPBM
ppmtojpeg
Highlight = 100
Jhead EXIF Parser "YES"
(Advanced) Cache EXIF data "YES"
Jpegtran "YES" (jpegtran.exe and jpeg-62.dll are into the Gallery root - C:\Site\gallery - )

Regards,
Quique

 
BrianKDav

Joined: 2003-12-24
Posts: 7
Posted: Tue, 2003-12-30 07:20

Okay, h0bbel, I solved the problem with the segment fault :D . I'm using Mod_Security (http://www.modsecurity.org/) to protect my server, and that seemed to be causing the problem. Once I turned the rules off for the gallery folders (directive "SecFilterInheritance Off"), the problem went away.

Now to move on to the other problems, like "magic number" issues and JPEG data segment errors... :-? .

Thank you for your suggestions!!

--Brian

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2003-12-30 10:30

BrianKDav, great stuff! Err, great you figured it out at least. :)

 
IndyGreg

Joined: 2003-12-30
Posts: 6
Posted: Tue, 2003-12-30 18:20

I too am experiencing this hanging problem when uploading images on Gallery 1.4.1. I think S-FU might be on to something regarding the installation of Java. About a month ago, I upgraded to RC4 and lost the ability to upload images in the process. Two weeks ago, I did a Windows partition format and reinstalled XP Pro SP1a + all critical updates. I chose to install XAMP (an Apache 2.0.48 + PHP 4.3.4 + Perl, SQL, SSL, etc.). Gallery 1.4.1 worked flawlessly with ImageMagick 5.5.7 and none of the optional executables (jhead, unzip, etc). I was very satisfied with gallery finally working. Whatever caused the hanging problem was fixed with the format.

A few days ago, I completely logged out of Windows after being logged in for about 10 days (I did not restart the system, simply logged out). During the log on process, a Java dialog box appeared and asked if I would like to upgrade to JRE 1.4.2_03 from 1.4.2_02. It is worth mentioning that JRE had been installed weeks before via an XSI module in Firebird 0.7. After the installation was complete, it prompted me for a reboot. I reluctantly agreed and restarted the machine. I did not notice any change in the system until last night when I tried to upload a single image to my gallery. No matter what browser I use, it hangs on the resizing image message and the nice transfer graphic fails to display. Other than Java, the only applications I installed between Gallery working and crashing are ffdshow and Serv-U ftp server, both of which I have had running while a fully working version of gallery was installed.

I have a hunch this problem is somehow caused by Java, but I have no clue as to why. Debug mode is activated on my machine and there is no change in display when uploading images from when it is off. I also get the renegade cmd.exe processes running as "System" on my machine after attempted upload and have to restart the Apache service. The thumbnails do get generated and everything appears as though it should work. I saw another post saying that replacing the ImageTools.jar file from an older version of Gallery fixed a thumbnail resize problem. I tried this, but it did not fix the problem. In attempting to solve the problem, I have uninstalled and reinstalled different version of JRE multiple times in every conceivable order, but I have not been able to fix the problem.

Hopefully my account can shed some light on solving this elusive bug. PM me if you would like the URL and a test account to my gallery.

Greg Szorc

 
horrorhorst

Joined: 2003-12-28
Posts: 5
Posted: Tue, 2003-12-30 18:47

I want to upload pictures but the following error appears:

- Adding beachparty 001.jpg
Resizing/compressing original image
No resizing required
File /home/web82/html/gallery/albums/Beachpartyam28122002/beachparty_001.jpg type 2.

Executing:

/home/gallery/image/convert -quality 90 -size 150x150 +profile '*' /home/web82/html/gallery/albums/Beachpartyam28122002/beachparty_001.jpg -geometry 150x150 /home/web82/html/gallery/albums/Beachpartyam28122002/beachparty_001.thumb.jpg

Results:
none

Error messages::
sh: line 1: /home/gallery/image/convert: No such file or directory

Status: 127 (expected 1)
Error: Unable to make thumbnail (0)!

I have already looked for solutions. I use NetPBM and Imagemagik but its always the same error. FAQ Gallery:c.2FAQ Gallery:c.3FAQ Gallery:c.2FAQ Gallery:c.30

 
h0bbel
h0bbel's picture

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

horrorhorst, obviously either your path is wrong, or your permissions are.

 
BrianKDav

Joined: 2003-12-24
Posts: 7
Posted: Wed, 2003-12-31 01:39
BrianKDav wrote:
Okay, h0bbel, I solved the problem...
Now to move on to the other problems, like "magic number" issues and JPEG data segment errors... :-? .

Update: The JPEG corruption and Magic Number problems go away when I bybass the PHP upload, which seems to be corrupting the data somehow. This is discussed in another topic (the one you referred me to, I think).

--Brian