Advanced search  

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]

Pages: [1]   Go Down

Author Topic: File upload problems even with php.ini memory set to 18mb  (Read 8533 times)

0 Members and 1 Guest are viewing this topic.

dynsight

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
File upload problems even with php.ini memory set to 18mb
« 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
Logged

onthepike

  • Guest
Re: File upload problems even with php.ini memory set to 18mb
« Reply #1 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)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: File upload problems even with php.ini memory set to 18mb
« Reply #2 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

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

dynsight

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: File upload problems even with php.ini memory set to 18mb
« Reply #3 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.

Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 20 queries.