Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog

0 points

I installed a drupal module and I am getting the following error:
Installed module, checked help, all looks well, but when i attempt to go to modules, i get:

Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:1535046:\"Got a packet bigger than 'max_allowed_packet' bytes\nquery: UPDATE cache_menu SET data = 'a:946:{s:4:\\"node\\";a:26:{s:5:\\"title\\";s:7:\\"Content\\";s:13:\\"page callback\\";s:17:\\"node_page_default\\";s:16:\\"access arguments\\";a:1:{i:0;s:14:\\"access content\\";}s:4:\\"type\\";i:4;s:6:\\"module\\";s:4:\\"node\\";s:14:\\"load_functions\\";s:0:\\"\\";s:16:\\"to_arg_functions\\";s in /home/turfbur1/public_html/includes/database.mysql.inc on line 128

Created by Anonymous 20 weeks 6 days ago
  Tags:

Answer(s):

-1 points

Increase your max_packet_size in my.cnf and restart your mysql server after making the change. Make max_packet_size to be 32 or 64 or 128M.

Created by Anonymous

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options