I have the flag module setup. The site currently has 10 flags setup using the flag module. When i edit a flag i get this fatal error. When i unload the flag module the fatal error goes away.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /home/btrubel0/public_html/djbillboard.com/includes/database/database.inc:2168 Stack trace: #0 /home/btrubel0/public_html/djbillboard.com/includes/database/database.inc(2168): PDOStatement->execute(Array) #1 /home/btrubel0/public_html/djbillboard.com/includes/database/database.inc(680): DatabaseStatementBase->execute(Array, Array) #2 /home/btrubel0/public_html/djbillboard.com/includes/database/database.inc(2347): DatabaseConnection->query('SELECT expire, ...', Array, Array) #3 /home/btrubel0/public_html/djbillboard.com/includes/lock.inc(167): db_query('SELECT expire, ...', Array) #4 /home/btrubel0/public_html/djbillboard.com/includes/lock.inc(146): lock_may_be_available('theme_registry:...') #5 /home/btrubel0/public_html/djbillboard.com/includes/theme.inc(449): lock_acquire('theme_registry:...') #6 /home/btrubel0/public_html/djbillboard.com/includes/bootstrap.inc(446): ThemeRegistry->set(Array) in /home/btrubel0/public_html/djbillboard.com/includes/database/database.inc on line 2168
Comments
Comment #1
joachim commented> General error: 2006 MySQL server has gone away
That's not something that PHP code can do -- that's a problem with your server. See https://drupal.org/node/259580.