uploading attachments error

Discussion in 'Site Problems & Feedback' started by Sazar, Mar 24, 2004.

  1. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    everytime I try and upload an attachment I get a php error

    has been happening all evening...

    just a headsup...

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

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Problem Fixed, I presume?
     
  3. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    What were you trying to upload mate?
     
  4. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    upload d'top in d'top thread... and am still getting the same problem...
     
  5. ~bk

    ~bk I Political User

    Messages:
    3,768
    Location:
    Canada
    I'm having the same problem. I can't attach files.
     
  6. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    I got the same thing when trying to upload a larger file (jpeg, 1600x1200, 990,549 bytes)
     
  7. ~bk

    ~bk I Political User

    Messages:
    3,768
    Location:
    Canada
    So I guess that everyone is having problems attaching a large file.
     
  8. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    I'll give it the once over, when I find some time for it to be convenient :D
     
  9. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Hrm weird error. Will look into it.
     
  10. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    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.
     
  11. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
     

    Attached Files:

  12. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    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.
     
  13. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    my file was only 64kb though... nothing big... nothing bigger than what I have uploaded before on the site...
     
  14. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Test

    (edit) that's the file I got the error with before.. :confused:
     
  15. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    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.
     
  16. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    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...