Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT name, machine_name, vid FROM {taxonomy_vocabulary}; Array ( ) in taxonomy_vocabulary_get_names() (line 792 of C:\xampp\xampp\htdocs\drupal\modules\taxonomy\taxonomy.module).

Additional
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:134:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT name, machine_name, vid FROM {taxonomy_vocabulary}; Array ( ) ";s:9:"%function";s:31:"taxonomy_vocabulary_get_names()";s:5:"%file";s:61:"C:\xampp\xampp\htdocs\drupal\modules\taxonomy\taxonomy.module";s:5:"%line";i:792;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://localhost/drupal/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => ::1 [:db_insert_placeholder_9] => 1299395791 ) in dblog_watchdog() (line 155 of C:\xampp\xampp\htdocs\drupal\modules\dblog\dblog.module).

--------------------------------------------------------------------------------

Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 204 of C:\xampp\xampp\htdocs\drupal\includes\session.inc).

Comments

vera.ventures’s picture

am a newbie, dont know how to uninstall this module for me to get onto the Drupal Login / Landing Page. Can you please help me.
Rehman

berdir’s picture

Project: Drupal.org security advisory coverage applications » Drupal core
Version: » 7.x-dev
Component: new project application » taxonomy.module

This is not the right place to report bugs. Moving...

EvanDonovan’s picture

Title: Drupal 7 - Taxonomy Module - Crash Landing Page / Drupal Login "Additional uncaught exception thrown while handling exception" » Drupal 7 - Taxonomy Module - "MySQL server has gone away" + "Additional uncaught exception"
Assigned: vera.ventures » Unassigned
Priority: Critical » Normal
Issue tags: -taxonomy

A "MySQL server has gone away" error usually means that you've lost connection to MySQL. It is most likely not a problem with Drupal itself, which is why I have lowered the priority.

For us to help you debug this issue, you will have to provide more details on your operating system, PHP, MySQL, and Web server configuration. You should also check to see if this error always occurs, or if it is only sporadic. Also, is this install of Drupal on a local machine, or on a remote Web server?

Also, you should not assign issues to yourself, unless you will be the person responsible for resolving them.

EvanDonovan’s picture

Oh, I just saw in the error message that this you are using Windows with XAMPP. I would imagine this is probably an issue with XAMPP, then. The standard XAMPP MySQL resource limits are too low; you should try raising them in my.cnf.

EvanDonovan’s picture

Title: Drupal 7 - Taxonomy Module - "MySQL server has gone away" + "Additional uncaught exception" » Taxonomy module MySQL errors w/XAMPP - "MySQL server has gone away" + "Additional uncaught exception"
Issue tags: +XAMPP

Retagging accordingly.

joris.verschueren’s picture

This seems to be a problem with Xampp settings, see e.g. here: http://minorpoint.blogspot.com/2007/09/mysql-server-has-gone-away.html .
it should come down to your database exceeding the allowed size.
edit: I forgot to mention, the proposed solution (editing the my.cnf file) worked for me.

xjm’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)
Issue tags: -XAMPP

This was a local environment issue, not a Drupal issue.