我对 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.lid 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]:一般错误:2006 MySQL 服务器已消失:INSERT INTO {watchdog}(uid、类型、消息、变量、严重性、链接、位置、引用者、主机名、时间戳)值(: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. 版本来自 {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 = '默认'; 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] => 上下文 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] => 上下文 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_placeholder_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 行)。