Hello.I'vei nstalled for first time that amazing gallery and when I tried to uploud one photo it show me some error - 262.I was searching 1,30 for someway to "kill" that problem...but I can't.Please somebody help me!!!
Thanks a lot!
Version: 1418
QuoteI tried to uploud one photo it show me some error - 262.
give us more details, but for a start, read the post it of this board http://forum.coppermine-gallery.net/index.php/topic,24088.0.html (http://forum.coppermine-gallery.net/index.php/topic,24088.0.html)
Thank you for the quickly answer!
It show me that error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9000 bytes) in /home/=====/public_html/include/picmgmt.inc.php on line 262
when I try to uploud HQ picture (860 kb )
Quote from: François Keller on June 03, 2008, 09:34:32 PM
read the post it of this board http://forum.coppermine-gallery.net/index.php/topic,24088.0.html (http://forum.coppermine-gallery.net/index.php/topic,24088.0.html)
Quotelternative 1 (ideal):Increase the memory limit allocation in php.ini. You must be the server's administrator to do this. Also, .htaccess files cannot change this configuration setting, and it cannot be changed using ini_set(). First, you locate the following block in php.ini:
Code:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
That is what I search.But I cant understand where I must to put that. :'( :'( :'(
ask your webhost if they can do it for you. If not, look at the others solutions or try to use a mod like coppermine java image uploader (http://www.aasted.org/coppermine/)
I just tried the Java but it miss some pictures.
The others ways - resize images and btw ... I must to uploud the photos in the original sizes.
So please if there is some way to do it alone (change something in some .php file) please tell me,I really need from that :'( :'(
php.net/ini_set() (http://php.net/ini_set())
Have a look into the PHP ini_set() function; if you can't edit your php.ini file then this is a very good alternative, it allows you to modify the pre-set PHP settings on a per-file basis. It could elevate your memory_limit like so - ini_set("memory_limit", "10M");
.
Also, you may wish to look at the Coppermine Home Uploader mod, as an alternative, it doesnt operate on your server, instead it works on your PC so it bypass's any PHP restrictions.