Drupal 7.编辑内容类型时出现此错误

时间:2013-11-14 13:03:56

标签: drupal

Drupal 7.编辑内容类型时出现此错误。

处理异常时抛出了额外的未捕获异常。

原始

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] => ru [:source] => Configure how content input by users is filtered, including allowed HTML tags. Also allows enabling of module-provided filters. [:context] => ) in locale() (line 720 of S:\home\go\www\modules\locale\locale.module).

其他

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] => ru [:source] => A field which is not visible to the user, but is recorded with the submission. [:context] => ) in locale() (line 720 of S:\home\go\www\modules\locale\locale.module).

在会话处理程序中抛出未捕获的异常。

PDOException: SQLSTATE[HY000]: General error: 
2006 MySQL server has gone away in _drupal_session_write() (line 209 of S:\home\go\www\includes\session.inc).

2 个答案:

答案 0 :(得分:0)

尝试在my.cnf中增加你的max_allowed_pa​​cket(或者在MAMP,my-medium.cnf或你正在使用的任何尺寸。)

答案 1 :(得分:0)

我在Windows 10上使用了wamp。遇到了同样的问题。 将max_allowed_packet中的C:\wamp64\bin\mysql\mysql5.7.23\my.ini更改为20M,完成。