【问题标题】:Drupal Menu Throws SQL ErrorDrupal 菜单引发 SQL 错误
【发布时间】:2012-09-28 10:42:25
【问题描述】:

我对 Drupal 菜单有一个奇怪的问题。当我尝试向任何 drupal 菜单添加链接时,它会引发以下 SQL 异常。我可以创建新菜单或删除现有菜单,但无法添加任何链接 :-) 有帮助吗?

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

原创

PDOException: SQLSTATE[HY000]: 一般错误: 2006 MySQL 服务器已消失: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t。盖子 AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => tr [:source] => 配置用户输入的内容如何被过滤,包括允许的 HTML 标签。还允许启用模块提供的过滤器。 [:context] => ) in locale() ( /home/predra/public_html/modules/locale/locale.module 的第 684 行)。

附加

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);数组 ( [: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:495:"SQLSTATE[HY000]: 一般错误:2006 MySQL 服务器已消失: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] => tr [:source] => 配置如何过滤用户输入的内容,包括允许的 HTML 标签。还允许启用模块提供过滤器。[:context] =>) ";s:9:"%function";s:8:"locale()";s:5:"%file";s:53:"/home/predra/ public_html/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] => http://predra.com/admin/structure/menu/manage/menu-header-menu/add [:db_insert_place holder_7] => http://predra.com/doktor/haldun-san [:db_insert_placeholder_8] => 78.180.179.155 [:db_insert_placeholder_9] => 1348828684 ) 在 dblog_watchdog() 中(/home/predra/public_html/modules/dblog/dblog.module 的第 154 行)。

【问题讨论】:

    标签: drupal drupal-navigation


    【解决方案1】:

    请在 mysql\bin\my.ini 中将 max_allowed_pa​​cket 更改为 20M 或更大(取决于您的 mysql 服务器配置路径。) 有效!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 2013-11-23
      • 2013-03-04
      • 1970-01-01
      • 2017-03-29
      • 2014-07-11
      • 1970-01-01
      相关资源
      最近更新 更多