Announcement

Collapse
No announcement yet.

Fatal error when I try to upload an attachment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fatal error when I try to upload an attachment

    Its been working flawlessly since I installed vb, but today my users have been getting error messages when trying to upload files, and error messages has been sent to me containing the filecode or something.

    On the website Im getting this error when trying to upload an attachment:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1331200 bytes) in /www/s/svenarild/htdocs/Forum/admin/db_mysql.php on line 232

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0


    Then in my email I recive:

    Database error in vBulletin 2.3.0:

    Invalid SQL: SELECT attachmentid
    FROM attachment
    WHERE userid = '1'
    AND filedata = '

    Then there come alot of strange looking letters and symbols
    In the end of the email this error msg comes:

    mysql error: Got a packet bigger than 'max_allowed_packet'

    mysql error number: 1153

    Date: Friday 28th of November 2003 04:05:37 PM
    Script: http://www.myllclan.com/Forum/Forum/newreply.php
    Referer: http://www.myllclan.com/Forum/newrep...y&threadid=398


    Now, Ive tried to set the filesize allowed on the forums bigger, but it still gives the same error message. So Im wondering what I can do to fix this error (Its quite frustrating to get a few 1mb error messages in the email several times when your sitting on a modem connection)

  • #2
    For the 'allowed memory size' error, read this:

    http://www.vbulletin.com/forum/showt...ed+memory+size

    For the packet error, you (or your host) will need to edit my.cnf:

    set-variable=max_allowed_packet=xM

    Change it to the size ('x') you want in Megabytes. Restart the webserver and MySQL after making these changes.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    Loading...
    Working...
    X