Re: Trouble with upload.php Re: Trouble with upload.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Re: Trouble with upload.php

Started by natrlhy, March 16, 2007, 06:39:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

natrlhy

I have been having the same issue where after uploading a 1.2MB image I get the same blank page after clicking on Continue after a successful upload.

I have modified my php.ini settings (yes, these are all very hight but I wanted to rule out any resource issues)

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30
max_input_time = 120   
memory_limit = 16M     

post_max_size = 8M
upload_max_filesize = 90M


In my Config I have always had "Method for resizing images" set to GD version 2.x.

I recently rebuilt my CentOS system and for some reason it seems like GD is chewing up all my system resources. Even after setting the memory_limit to 16M, i still get these types of errors:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 9600 bytes) in /path/to/my/site/picmgmt.inc.php on line 262

When I change the "Method for resizing images" to use ImageMagick, I can upload just fine.

What else should I try to use GD as the preferred method for resizing pictures?  It seems like I'm missing something on my server but I'm not seeing it.

Thanks!

Nibbler

Apparently 16M is not enough, raise it further.

natrlhy

Nibbler,

I supposed this would be the next logical step. I'm just comparing an old OS installation that only had it set to 8M and it worked fine.

After googling around it seems that Image Magick is better suited to resizing images anyway.  I use to use Image Magick but switched to GD in my config a while ago based on something I read here in the forums.

What is the general consensus here? GD or Image Magick? ;)

I'm testing chagning the memory_limit = 32M and I'll see if that helps or not.

Thanks for the help!

natrlhy

Changing the memory_limit = 32M worked when using GD 2.x in the coppermine config.