Fatal Error Fatal Error
 

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

Fatal Error

Started by Chefkochx, January 28, 2004, 12:37:21 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Chefkochx

Hi
When I want to upload a picture directly, this error is shown to me.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6400 bytes) in /usr/export/www/vhosts/funnetwork/hosting/netfriends/include/picmgmt.inc.php on line 176


I don't know what this means.
My Batch-upload isn't working, too. It says that the files are uploaded correctly and then... no files are in any direktory.
Crazy: before 2 days it worked perfectly.
Sometimes only one or two pics are shown, but never more.
Oh, my maximum file size is 500 kb :-)

please help me

Chefkoch

hyperion

The memory error is due to improper php.ini configuration for the high resolution photos you are trying to upload. (Note: It's not the size of the file, it's the number of pixels that determine memory use in GD.)  You must give the process memory limit more than 8MB.

This could cause the batch problem, or you could be FTPing to the userpics directory.  Another consideration is a timeout due to a large number of files.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Chefkochx

thx
I will test it and post if I solved my problem

Chefkochx

Hi
I have tested it and it doesn't work because I don`t know where I can edit this memory size.

Besides... which programm is better GD or Image Magic?

hyperion

Look for this block in your php.ini file (assuming you are the server admin -- only he/she can do this)

;;;;;;;;;;;;;;;;;;;
; 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)


Image Magic is better.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

bad

Got the same problem. Can't find php.ini hehe. Where is it located?

hyperion

Depends on your OS.  For example, in Windows, it is in the C:\WINDOWS directory. Refer to your PHP documentation and installation procedures.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

bad

I have my page hosted by b-one.net. Do they have to change the php.ini if i get the error. I found the php.ini in the windows folder and it says:

;;;;;;;;;;;;;;;;;;;
; 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)

What should i change it to if i want to upload pictures that are bigger?

hyperion

That depends on the picture resolution.  Anywhere from 9M to 16M works for most applications.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

bad

But how does it help to change the php.ini if it's on my computer and not where i have coppermine installed? Coppermine is hosted by a webhotel that i pay for. Do they need to change the php.ini on the server then?

Joachim Müller

sure, like hyperion already said: only the server admin can change the (relevant) php.ini - the file on your pc is probably only garbage, unless you run a webserver on your pc as well.
Your webhost has to change it for you, but may be reluctant to do so, since you're probably sharing your webspace with many other websites, changing the overall server config isn't something your server admin will do lightheartedly.
To put it in more general terms: only upload pics with reduced size (resize them on your client before uploading) - this will result in quicker uploads, less webspace consumption and smoother batch-adding.

GauGau

zelal

Quote from: Chefkochx on January 28, 2004, 12:37:21 AM
Hi
When I want to upload a picture directly, this error is shown to me.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6400 bytes) in /usr/export/www/vhosts/funnetwork/hosting/netfriends/include/picmgmt.inc.php on line 176


I don't know what this means.
My Batch-upload isn't working, too. It says that the files are uploaded correctly and then... no files are in any direktory.
Crazy: before 2 days it worked perfectly.
Sometimes only one or two pics are shown, but never more.
Oh, my maximum file size is 500 kb :-)

please help me

Chefkoch

Don't know whether this will work.

Open your Notepad and type:

php_value memory_limit 256M

Save it with filename .htaccess (actually no filename, but with an extension "htaccess"). You may have to enter .htacess with surrounding the double-quote i.e. ".htacess" in the filename box and choose All Files in the file type box when saving with Notepad.

Then upload the .htaccess file to your coppermine root directory.

Alternatively, if you do not want to create own one, you can download my attached .htaccess file and upload it to your coppermine root directory.

Hope this will solve your memory related problem.

Regards.

Zelal

phill104

I'm sure you are trying to help but this thread is 5years old and for an unsupported version.

Locking.
It is a mistake to think you can solve any major problems just with potatoes.