Hey,

I upgraded to 4.0-alpha1 because I needed the token support. I did activate it, created a new webform and wanted to add a textfield when I got this error:

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => nl [:source] => Optional. You may organize your form by placing this component inside another fieldset. [:context] => ) in locale() (line 684 of /modules/locale/locale.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:455:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => nl [:source] => Optional. You may organize your form by placing this component inside another fieldset. [:context] => ) ";s:9:"%function";s:8:"locale()";s:5:"%file";s:77:"/modules/locale/locale.module";s:5:"%line";i:684;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => /node/40/webform/components/new/textfield?name=Test&mandatory=0&pid=0&weight=0 [:db_insert_placeholder_7] => /node/40/webform/components [:db_insert_placeholder_8] => 89.98.119.160 [:db_insert_placeholder_9] => 1337690508 ) in dblog_watchdog() (line 154 of /modules/dblog/dblog.module).


Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /includes/database/database.inc:2136 Stack trace: #0 /includes/database/database.inc(2136): PDOStatement->execute(Array) #1 /student/includes/database/database.inc(664): DatabaseStatementBase->execute(Array, Array) #2 /includes/database/database.inc(2315): DatabaseConnection->query('SELECT expire, ...', Array, Array) #3 /includes/lock.inc(167): db_query('SELECT expire, ...', Array) #4 /includes/lock.inc(146): lock_may_be_available('theme_registry:...') #5 /includes/theme.inc(447): lock_acquire('theme_registry:...') #6 /include in /includes/database/database.inc on line 2136

My drupal install:
lates release of drupal with locale enabled (Dutch locale)

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

I can't confirm this problem. You mentioned that you upgraded your site. Do you have other Webform-related modules installed? If you can provide steps to reproduce the problem from a fresh install of Drupal, I'll take a look. But right now I can't figure why the new tokens system would have anything to do with MySQL getting disconnected.

GBurg’s picture

I did have webform_rules and rules_forms enabled. But I both disabled an uninstalled those modules and als did this with the webform module. After reinstalling the alpha version, I got the same errors.

I have the latest Drupal install with the locale module enabled and a bunch of other modules, all unrelated to webform (like views, spamspan, colorbox, etc.)

quicksketch’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Nearly 2 years later and we haven't had any other reports of this problem, and I can't reproduce it either. If you can reproduce this issue on the latest releases of Webform 4.x, please reopen with instructions on how to do that. As is, there's nothing we can do to resolve this issue because we can't reproduce it.