This morning my Drupal 7 site suddenly not working. I get the "PDOException: SQLSTATE[08S01]: Communication link failure: 1153" error. The error goes away when I disabled "Aggregate JavaScript files." in config/development/performance page. I clear the cache several time, but when I re-enable "Aggregate JavaScript files" the error comes back.

This error happens only on certain pagee.

Can anyone shed some light on this problem? It doesn't make any sense to me. Thansk.

2 Answers 2


i think you need to increase your max_allowed_packet in your my.cnf/my.ini in mysql, maybe the problem is with packet size.

  • But why would enabling javascript aggregation affect this? Commented May 18, 2012 at 15:25
  • 1
    @Patrick Probably because during aggregation a string is being written to the cache table that's bigger than the max_allowed_packet for whatever reason. This used to happen to me all the time and it was always related to the cache tables
    – Clive
    Commented May 18, 2012 at 16:53

Error 1153 is to do with the MySQL configuration option, max_allowed_packet. If you increase this then you shouldn't have this problem anymore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.