【问题标题】:Drupal 7. When editing the content type appears this errorDrupal 7. 编辑内容类型时出现此错误
【发布时间】:2013-11-14 13:03:56
【问题描述】:

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

【问题讨论】:

  • 当您的连接超时或您的数据库服务器遇到内存问题时,MySQL 服务器“消失”。请提供有关您的 apache/mysql 和站点配置的详细信息,以更好地了解正在发生的事情。进一步详细说明您在编辑内容类型时实际在做什么可能会很有用。

标签: drupal


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2013-09-05
      • 2015-07-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-17
      • 1970-01-01
      • 2012-07-14
      • 1970-01-01
      • 2012-12-23
      相关资源
      最近更新 更多