MyBB Community Forums

Full Version: MyBB has experienced an internal SQL error and cannot continue.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

One of our moderators reported this long error when he was trying to ban a username. The error persist even when i deactivate the akismet plugin (i thought that was the problem, thought wrong i guess)


MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1153 - Got a packet bigger than 'max_allowed_packet' bytes
Query:
REPLACE INTO mybb_datacache SET title='banned',cache='a:3516:{i:772;a:10:{s:3:\"uid\";s:3:\"772\";s:3:\"gid\";s:1:\"7\";s:8:\"oldgroup\";s:1:\"2\";s:19:\"oldadditionalgroups\";s:0:\"\";s:15:\"olddisplaygroup\";s:1:\"0\";s:5:\"admin\";s:1:\"0\";s:8:\"dateline\";s:10:\"1275733524\";s:7:\"bantime\";s:4:\"perm\";s:6:\"lifted\";s:1:\"0\";s:6:\"reason\";s:56:\"Automatically banned by the Akismet system for spamming.\";}i:135;a:10:{s:3:\"uid\";s:3:\"135\";s:3:\"gid\";s:1:\"7\";s:8:\"oldgroup\";s:1:\"2\";s:19:\"oldadditionalgroups\";s:0:\"\";s:15:\"olddisplaygroup\";s:1:\"0\";s:5:\"admin\";s:1:\"1\";s:8:\"dateline\";s:10:\"1265979834\";s:7:\"bantime\";s:3:\"---\";s:6:\"lifted\";s:1:\"0\";s:6:\"reason\";s:4:\"Spam\";}i:140;a:10:{s:3:\"uid\";s:3:\"140\";s:3:\"gid\";s:1:\"7\";s:8:\"oldgroup\";s:1:\"2\";s:19:\"oldadditionalgroups\";s:0:\"\";s:15:\"olddisplaygroup\";s:1:\"0\";s:5:\"admin\";s:1:\"1\";s:8:\"dateline\";s:10:\"1266022677\";s:7:\"bantime\";s:3:\"---\";s:6:\"lifted\";s:1:\"0\";s:6:\"reason\";s:20:\"comportament deviant\";}i:256;a:10:{s:3:\"uid\";s:3:\"256\";s:3:\"gid\";s:1:\"7\";s:8:\"oldgroup\";s:1:\"2\";s:19:\"oldadditionalgroups\";s:0:\"\";s:15:\"olddisplaygroup\";s:1:\"0\";s:5:\"admin\";s:1:\"0\";s:8:\"dateline\";s:10:\"1266921024\";s:7:\"bantime\";s:4:\"perm\";s:6:\"lifted\";s:1:\"0\";s:6:\"reason\";s:56:\"Automatically banned by the Akismet system for spamming.\";}i:707;a:10:{s:3:\"uid\";s:3:\"707\";s:3:\"gid\";s:1:\"7\";s:8:\"oldgroup\";s:1:\"2\";s:19:\"oldadditionalgroups\";s:0:\"\";s:15:\"olddisplaygroup\";s:1:\


Any help is much appreciate it. Thanks.
Try doing if you've access to MySQL's my.ini file or ask your host to increase the value of max_allowed_packet from 1M to something bigger.

By default, it is:

max_allowed_packet = 1M

or depending upon your host's specs. Am not sure though if it would work, but prolly it'd.
Thank you for your answer crazy4cs. I have contacted my host now and i asked them about increasing the value of max_allowed_packet.
Good Jobs So Dont Be Tired Thanks