uploading attachments error

Sazar

F@H - Is it in you?
Staff member
Political User
Joined
Apr 12, 2002
Messages
14,905
#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...
 

Sazar

F@H - Is it in you?
Staff member
Political User
Joined
Apr 12, 2002
Messages
14,905
#4
upload d'top in d'top thread... and am still getting the same problem...
 

SPeedY_B

I may actually be insane.
Joined
Mar 31, 2002
Messages
15,800
#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
Joined
Dec 5, 2001
Messages
6,498
#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
Joined
Feb 16, 2003
Messages
2,725
#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
Joined
Apr 12, 2002
Messages
14,905
#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
Joined
Feb 16, 2003
Messages
2,725
#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
Joined
Apr 12, 2002
Messages
14,905
#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

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,027
Messages
673,527
Members
89,037
Latest member
MichaelPowers