Loading...
 
Skip to main content

Development


Error when attaching file in forum post

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

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,

- RickQuestion | My Tiki Blog | My Tiki UserPage

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

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