File upload problems even with php.ini memory set to 18mb File upload problems even with php.ini memory set to 18mb
 

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

File upload problems even with php.ini memory set to 18mb

Started by dynsight, June 09, 2010, 04:33:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dynsight

I have read carefully many posts on this problem, and followed the instructions in the FAQ carefully.

I installed version of the application here:
http://iponly206190.tempwebpage.com/wwgallery/

you can see a 1.4 mb picture here:

http://iponly206190.tempwebpage.com/wwgallery/albums/ftpuploads/TEAM_0248.jpg

permissions are set properly, and php memory is set to 18 MB. 

Fatal error: Allowed memory size of 18874368 bytes exhausted (tried to allocate 10424 bytes) in /vservers/iponly206190/htdocs/wwgallery/include/picmgmt.inc.php on line 262

In addition, I wrote my own PHP file upload using dmxzone php uploader... and it works fine.

Considering everyone seems to be having problems with this, is there a bug?  Is there some setting that is incorrect?

Support is greatly appreciated

onthepike

Your site is being reported as having an active virus infection as noted here:

http://safeweb.norton.com/report/show?url=tempwebpage.com

I don't know if the affected subdomain is within your control, or if you are on a freebie/shared hosting plan.

You might want to begin (if within your control) sanitizing your webspace by following the instructions outlined here:

http://forum.coppermine-gallery.net/index.php/topic,51927.0.html

(Faces obfuscated intentionally by me)

Joachim Müller

Quote from: dynsight on June 09, 2010, 04:33:46 AM
I have read carefully many posts on this problem, and followed the instructions in the FAQ carefully.
No, you haven't followed instructions at all. Read up Documentation for cpg1.4.x: Asking for support on upload issues

Quote from: dynsight on June 09, 2010, 04:33:46 AMFatal error: Allowed memory size of 18874368 bytes exhausted (tried to allocate 10424 bytes) in /vservers/iponly206190/htdocs/wwgallery/include/picmgmt.inc.php on line 262
Then http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize applies to you!

Quote from: dynsight on June 09, 2010, 04:33:46 AMIn addition, I wrote my own PHP file upload using dmxzone php uploader... and it works fine.
That's fine. Then use that if it works better than the one built-into coppermine. However, the error doesn't come from uploading, but is caused when the image library attempts to resize the image you uploaded. It needs to load your image into memory, which fails, because the image alone will eat up 14 MB in memory. Given the overhead of the script, you won't get away with your memory limitations. You need to understand though that we can not instruct you how to set up your webserver - that's beyond the scope of this board.

Quote from: dynsight on June 09, 2010, 04:33:46 AMConsidering everyone seems to be having problems with this, is there a bug?  Is there some setting that is incorrect?
Shouting bug without even having read the docs is a very blatant insult to me. I suggest reviewing your attitude.

dynsight

Um, thanks, but I was not Shouting bug!

I simply asked, if there was one. 

Per your dodument recommendations, My resize does not take me over the allocated 18 mb, and you pointed out that you cannot handle the resizing.  By my calculations, I am running into a wall and getting error message around 12 mb, or whenever the photo is over 2mb... PHP max upload is set to 4 mb.

I appreciate the response, but there is no need to be insulting.

I can mass upload using DMX Zones mass image uploader (http://www.dmxzone.com/go?15505), which lead me to believe this could be handled.

So, I am creating my own admin section for resizing the images, which is working nicely.