My applet "resize before upload" option is not working. I know this becsaue when I leave it off, everything uploads. Click it on, and I get a perpetual "preparing for transfer" until it eventually times out. I just installed another gallery and that option works fine. I've set maximum dimentions and max file size in Site Admin too. What am I missing here and how do I fix this problem?
Posts: 32509
FAQ: What information is required when I ask for help in the forums?
- what g2 version, what uploadapplet module version, ...
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 394
OK sorry.
Gallery version = 2.1.2 core 1.1.0.2
Java Platform: Version 1.5.0 (build 1.5.0_10-b03)
Using Firefox.
I didn't have "resizeonUpload=true" set. So what I did was set that line and then try it. it still didn't work. So what I did then was uninstall the Java Runtime program. I reinstalled it and tried to upload again. Since you needed the applet version, I opened the Java Control panel, but this time (after uninstalling and reinstalling, there is no applet shown, so I can't get the version). It does work is teh resize option is NOT checked, so I know it's installed. I ahve no idea why teh stupid java panel isn't showing it. The same thing is happening. It will upload only if the "resize before upload" box is unchecked. I tried it with IE 6+ which presents the same problem.
Posts: 394
Deleted: Irrelevant
Posts: 32509
can you please try g2.2 rc-1 with the latest upload applet module as well?
FAQ: How to upgrade Gallery2?
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 394
I just wanted to post another log that shows errors with ImageMagic. I ran the site admin test on all the image modules, and they passed:
server_version=2.8
status=202
status_text=Login parameters not found.
debug_user=dwdallam
debug_time=0s
11312|INFO |GalComm2 |Logged in
11312|TRACE|GalComm2 |Server minor version: 8
11312|INFO |GalComm2 |Will upload using UTF-8 for text data
11312|INFO |GalComm2 |Preparing to upload...
11312|TRACE|GalComm2 |add-item parameters: [HTTPClient.NVPair[name=cmd,value=add-item], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=set_albumName,value=21], HTTPClient.NVPair[name=caption,value=ashley_59LUSb.jpg, encoding=UTF-8], HTTPClient.NVPair[name=force_filename,value=ashley_59LUSb.jpg], null]
11312|TRACE|GalComm2 |Still logged in to http://dwdallam.com/albums/
11312|INFO |GalComm2 |Getting album information from Not yet connected to Gallery (1)
11312|TRACE|GalComm2 |album-info parameters: [HTTPClient.NVPair[name=cmd,value=album-properties], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=set_albumName,value=21]]
11312|TRACE|GalComm2 |Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=album-properties], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_form[set_albumName],value=21], HTTPClient.NVPair[name=g2_controller,value=remote.GalleryRemote]]
11312|TRACE|GalComm2 |Connecting to: http://dwdallam.com/albums/main.php
11312|TRACE|GalComm2 |Path: /albums/main.php
11312|TRACE|GalComm |Sending cookie: GALLERYSID=12f489ec03c9540d78ac1340f4ca4ab8; path=/albums/; domain=.dwdallam.com
11672|TRACE|GalComm2 |Content-type: text/plain; charset=UTF-8
11687|TRACE|GalComm2 |#__GR2PROTO__
auto_resize=700
max_size=700
status=0
status_text=Fetch-album-images successful.
debug_user=dwdallam
debug_time=0.048s
11687|INFO |GalComm2 |Fetched album properties.
11703|TRACE|ImageUtils|Executing [convert, -filter, Lanczos, H:\Pictures\Canon5D\Studio_People\2006.08_Ashley\print\ashley_59LUSb.jpg, -resize, 700x700>, -quality, 90, C:\DOCUME~1\Zeus\LOCALS~1\Temp\thumbs-Zeus\res-707229291.jpg]
11765|TRACE|ImageUtils|Err: Invalid Parameter - Lanczos
11765|TRACE|ImageUtils|Returned with value 4
11765|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling <----What? It passes the Site Admin Tests.
Posts: 394
This same version was working fine on another website running on the same server. I just checked and it too is no longer working. My web shell account hosting company said I can install updatres from their server, so that should be easy to do. I'm talking to them now and they are checking for any problems on their end. I'll post back.
Posts: 394
OK they said everything was woring corectly on their end. Does anyone know why the resize on upload would stop working? It's not working on either if the installs I di now. They both reside in the same root directory of a shared hosting shell account.
Posts: 394
OK they said everything was woring corectly on their end. Does anyone know why the resize on upload would stop working for both sites? It's not working on either if the installs I did now. They both reside in the same root directory of a shared hosting shell account. It will upload, but it will not resize on the client. The first site worked fine last week. When uploading a 10MB image file, it would resize it on the client and upload using the parameters set in Site Admin--700x700 max 200KB quality 75.I really don't want to reinstall manually two gallerys for two different sites just to see if it works, if possible.
Posts: 394
OK I'm getting teh same type fo error in the java control log on the other site too:
7859|TRACE|ImageUtils|Executing [convert, -filter, Lanczos, H:\Pictures\Canon5D\Studio_People\2006.08_Ashley\print\ashley_59LUSb.jpg, -resize, 500x500>, -quality, 90, C:\DOCUME~1\Zeus\LOCALS~1\Temp\thumbs-Zeus\res1791061077.jpg]
7921|TRACE|ImageUtils|Err: Invalid Parameter - Lanczos
7921|TRACE|ImageUtils|Returned with value 4
7921|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling
200703|TRACE|ImageUtils|Java resized H:\Pictures\Canon5D\Studio_People\2006.08_Ashley\print\ashley_59LUSb.jpg to C:\DOCUME~1\Zeus\LOCALS~1\Temp\thumbs-Zeus\jres1511865806.jpg
200703|TRACE|ImageUtils|Time: 192844 - Avg: 192844
200703|TRACE|GalComm2 |Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=add-item], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_form[set_albumName],value=151], HTTPClient.NVPair[name=g2_form[caption],value=ashley_59LUSb.jpg, encoding=UTF-8], HTTPClient.NVPair[name=g2_form[force_filename],value=ashley_59LUSb.jpg], null, HTTPClient.NVPair[name=g2_controller,value=remote.GalleryRemote]]
200718|TRACE|GalComm2 |Connecting to: http://northwindcharters.net/gallery/main.php
200718|TRACE|GalComm2 |Path: /gallery/main.php
200718|TRACE|GalComm |Sending cookie: GALLERYSID=40daa590cc7e4fc5e69ab00ea6bf2368; path=/gallery/; domain=.northwindcharters.net
204562|TRACE|GalComm2 |Content-type: text/plain; charset=UTF-8
204890|TRACE|GalComm2 |#__GR2PROTO__
status=0
What is Lanczos and why does it report that ImageMagic isn't working? It's installed and everything was working fine just a week ago. The problem is that resize before upload is not working.
Posts: 32509
it's important to understand that the image tools (graphics toolkits) of gallery 2 have nothing to do with the upload applet's image toolkits.
the upload applet is a part of the Gallery Remote framework. it uses imagemagick as well, but the one from gallery 2. it uses the imagemagick binaries that are installed on your own computer (where the browser is running on).
so if talks about the "11765|TRACE|ImageUtils|Err: Invalid Parameter - Lanczos" error, then that's about the upload applet's attempt to run imagemagick.
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 394
OK so how do I fix that so it will resize before upload? I talked to a guy in the gym tonight that is familiar with Gallery2, and he said since it was installed twice under the same main domain, once for an "add-on" domain and once for the main site, both installs may be trying to use the same database. He said to change the database name to something different than the first install, because the databases should be named something sequential, like db01, db02 etc. Is this a possible problem? I'll take a look in a bit.
Posts: 394
I checked the database and they are named different names. So that isn't the problem. What could be causing the applet not to resize befire upload?