Upload error :'( Upload error :'(
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Upload error :'(

Started by bmdsherman, August 08, 2009, 12:46:06 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bmdsherman

Any time I try to upload an image that is under the max size, but over the max dimensions (I have "Auto resize images that are larger than max width or height" set to "Yes:Everyone") I receive an error message.

Here is my gallery info:
url: http://dwyerclan.hostzi.com/photos/cpg14x/
username: test
password: test
Enable debug mode: Yes:Everyone
Display notices in debug mode: Yes

Let me know if you need me to enable/disable anything or post the debug messages.

Thanks for your help!

Joachim Müller

Quote from: bmdsherman on August 08, 2009, 12:46:06 AM
Any time I try to upload an image that is under the max size, but over the max dimensions (I have "Auto resize images that are larger than max width or height" set to "Yes:Everyone")
Then why don't you tell us what values you have specified for the config options you mentioned.
Quote from: bmdsherman on August 08, 2009, 12:46:06 AMI receive an error message.
Yes? Amazing. And which one?


Quote from: bmdsherman on August 08, 2009, 12:46:06 AMDisplay notices in debug mode: Yes
You're not meant to do so.

Quote from: bmdsherman on August 08, 2009, 12:46:06 AMLet me know if you need me to enable/disable anything or post the debug messages.
We have dedicated an entire section in the documentation that cocmes with coppermine to the settings you're suppossed to apply. We have asked that section "Upload troubleshooting" for no apparent reason ::). Please do as sugested there.

bmdsherman

Not sure what I did, but now it works.

Thanks!

bmdsherman

Okay, it worked when I was on Linux Ubuntu, but now on Vista I get an error.

Quote from: Joachim Müller on August 09, 2009, 08:49:33 AM
Then why don't you tell us what values you have specified for the config options you mentioned.
Max size for uploaded files (KB) = 1024
Max width or height for uploaded pictures/videos (pixels) = 2048
Max dimension of a thumbnail = 100
Quality for JPEG files = 80

Quote from: Joachim Müller on August 09, 2009, 08:49:33 AM
Yes? Amazing. And which one?

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home/a1646241/public_html/photos/cpg14x/include/picmgmt.inc.php on line 272


bmdsherman

Thanks for the help, I got it re-working again by changing "Max width or height for uploaded pictures/videos (pixels)" to a very high amount.

Joachim Müller

That's not the correct fix when you get that error message! In fact, that's silly imo.

bmdsherman

Quote from: Joachim Müller on August 10, 2009, 01:31:01 AM
That's not the correct fix when you get that error message! In fact, that's silly imo.

The problem was about running out of memory, I thought that was because it took so much memory to create the smaller image when auto-re size was on. I first edited the php script to make it a little more efficient but it didn't do any good.

Joachim Müller

Setting "Max width or height for uploaded pictures/videos (pixels)" to a very high value stops the resizing of the orginal images,but it will not make the "out of memory" error go away, as the script needs to create the intermediate image and thumbnail anyway. That's why it's not the right move. Not the target image (the dimensions of the resized image, no matter if it's the resizing process for the full-size, intermediate or thumb) is the problem, but the source file. The source file's dimensions will trigger the out of memory ("Allowed memory size of X bytes exhausted") error.

Quote from: bmdsherman on August 10, 2009, 03:31:38 AM
I first edited the php script to make it a little more efficient but it didn't do any good.
We'd love to hear of working ocde that made that routine more efficient too. ::)