0

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).
4

2 回答 2

0

尝试增加 my.cnf 中的 max_allowed_pa​​cket(或者,如果在 MAMP 上,my-medium.cnf 或您使用的任何大小。)。

于 2014-03-11T18:35:27.040 回答
0

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

于 2019-04-11T04:56:45.813 回答