• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

uploading attachments error

Sazar

F@H - Is it in you?
Staff member
Political User
#1
everytime I try and upload an attachment I get a php error

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5120 bytes) in /usr/home/main/public_html/forum/includes/functions_image.php on line 117

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 43 bytes) in /usr/home/main/public_html/forum/includes/functions.php on line 466
has been happening all evening...

just a headsup...

-edit- changed tags from CODE to QUOTE...
 

SPeedY_B

I may actually be insane.
#6
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6400 bytes) in /usr/home/main/public_html/forum/includes/functions_image.php on line 117

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 43 bytes) in /usr/home/main/public_html/forum/includes/functions.php on line 466
I got the same thing when trying to upload a larger file (jpeg, 1600x1200, 990,549 bytes)
 

X-Istence

*
Political User
#10
Found it, it has to do with the fact that imagecreatefromjpg is not relaly all that nice with memory and causes the max amount of memory to be used. Bumping up this setting is what is probably needed.

This only seems to be a problem now, when on the rackshack server it was not, eventhough it had the same limit as currently.

This could have to do with vB bad coding, or some other issue. Resizing using GD is just not all that nice on server resources.
 

j79zlr

Glaanies script monkey
Political User
#12
Check the php.ini, sound like you should up the memory limit,

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

8388608 is 8MB.
 

Sazar

F@H - Is it in you?
Staff member
Political User
#13
my file was only 64kb though... nothing big... nothing bigger than what I have uploaded before on the site...
 

j79zlr

Glaanies script monkey
Political User
#15
Sazar said:
my file was only 64kb though... nothing big... nothing bigger than what I have uploaded before on the site...
That just means x number of people are uploading at the same time and someone [you] are putting it over the limit. Just guesses here. I donno, this is a dedicated server, so someone could mod the php.ini file, up the allowed ram to 16MB and see if it stops happening? Remeber that 8MB of RAM is not the file size limit, but the limit of the memory that the php scripts can use. It might take alot of RAM to upload and encode an attachment into a db, again, guessing.
 

Sazar

F@H - Is it in you?
Staff member
Political User
#16
nope... i tried uploading the same thing about 15-20 times so far... then tried other files... same problem... but I think it works now :)

dunno what it was...
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies