Loading...
 
Development

Development


Error when attaching file in forum post

posts: 20

Not sure why I'm getting this. I've never been able to get the attach feature to work. The last item below, #6, shows what looks like the raw data of the image file I was trying to attach. It was too large for me to include.


System error.

The following error message was returned:

Got a packet bigger than 'max_allowed_packet' bytes

The query was:
insert into `tiki_forum_attachments`(`threadId`, `qId`, `filename`, `filetype`, `filesize`, `data`, `path`, `created`, `dir`, `forumId`) values(?,?,?,?,?,?,?,?,?,?)

Values:

1. 42
2. 0
3. IMG_12791.JPG
4. image/jpeg
5. 1474357

posts: 3665 United States

The attachment is too large for your db connection. Try:

  • Increasing the max_allowed_packets option in your php.ini file
  • Use the directory instead of database to store attachments.



HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Now Available: Tiki Essentials, the #1 (and only) book for Tiki! Learn more...

Need more help? Try Tiki for Dummies Smarties: A beginner's guide and Tiki Essentials: What all Smarties need to know about Tiki Wiki CMS Groupware.