i used Bundle copy to copy content types from site a to b but when i copied i didn't install token.
error is:

Additional uncaught exception thrown while handling exception.

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] => fa [:source] => Token [:context] => ) in locale() (line 720 of C:\xampp\htdocs\site\modules\locale\locale.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT lid, location FROM {locales_source} WHERE source = :source AND context = :context AND textgroup = 'default'; Array ( [:source] => Edit [:context] => ) in _locale_parse_js_file() (line 1563 of C:\xampp\htdocs\site\includes\locale.inc).

Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 1210283629555b75c14194f6.07278135 ) in lock_release_all() (line 269 of C:\xampp\htdocs\site\includes\lock.inc).


Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in C:\xampp\htdocs\site\includes\database\database.inc:2171 Stack trace: #0 C:\xampp\htdocs\site\includes\database\database.inc(2171): PDOStatement->execute(Array) #1 C:\xampp\htdocs\site\includes\database\database.inc(683): DatabaseStatementBase->execute(Array, Array) #2 C:\xampp\htdocs\site\includes\database\database.inc(2350): DatabaseConnection->query('SELECT expire, ...', Array, Array) #3 C:\xampp\htdocs\site\includes\lock.inc(167): db_query('SELECT expire, ...', Array) #4 C:\xampp\htdocs\site\includes\lock.inc(146): lock_may_be_available('theme_registry:...') #5 C:\xampp\htdocs\site\includes\theme.inc(449): lock_acquire('theme_registry:...') #6 C:\xampp\htdocs\site\includes\bootstrap.inc(455): ThemeRegistry->set(Array) #7 [internal function]: DrupalCacheArray->__destruct() #8 {main} thrown in C:\xampp\htdocs\site\includes\database\database.inc on line 2171

Comments

Dave Reid’s picture

Status: Active » Closed (cannot reproduce)

I don't see anything in the error as to why Token module would be at fault here, and no one else has reported this recently, so I would guess it is specific to your local install.

alireza.13’s picture

it's for max_allowed_packet.
i set max_allowed_packet = 128M and the problem was solved.