forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: dynsight on June 09, 2010, 04:33:46 am

Title: File upload problems even with php.ini memory set to 18mb
Post by: 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.

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
Title: Re: File upload problems even with php.ini memory set to 18mb
Post by: onthepike on June 09, 2010, 04:48:35 am
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)
Title: Re: File upload problems even with php.ini memory set to 18mb
Post by: Joachim Müller on June 09, 2010, 08:44:05 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 (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support)

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
Then http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize applies to you!

In 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.

Considering 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.
Title: Re: File upload problems even with php.ini memory set to 18mb
Post by: dynsight on June 14, 2010, 09:00:04 pm
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.