【问题标题】:Error on the top of every drupal page?每个drupal页面顶部的错误?
【发布时间】:2015-01-23 07:06:41
【问题描述】:

我用 drupal 6.34 创建了一个网站。

当我浏览我的 drupal 6.34 站点时,我在页面顶部收到以下错误。我搜索了 drupal 但无法弄清楚它的设置在哪里。我想知道我是否应该更改错误框架中提到的代码? 它是什么以及如何在 drupal 6.34 中关闭它。

strict warning: Non-static method view::load() should not be called statically in /home/b15040be/public_html/sites/all/modules/views/views.module on line 903.

严格警告:views_handler_field::query() 的声明应与 /home/b15040be/public_html/sites/all/modules/views/handlers/views_handler_field.inc 中的 views_handler::query($group_by = false) 兼容第 726 行。 严格警告:views_handler_filter::options_validate() 的声明应与 /home/b15040be/public_html/sites/all/modules/views/handlers/views_handler_filter.inc 中的 views_handler::options_validate($form, &$form_state) 兼容517. 严格警告:views_handler_filter::query() 的声明应与第 517 行 /home/b15040be/public_html/sites/all/modules/views/handlers/views_handler_filter.inc 中的 views_handler::query($group_by = false) 兼容。 严格警告:views_plugin_query::init() 的声明应与 /home/b15040be/public_html/sites/all/modules/views/plugins/views_plugin_query.inc 中的 views_plugin::init(&$view, &$display) 兼容第 139 行。 严格警告:views_plugin_row::options_validate() 的声明应与 /home/b15040be/public_html/sites/all/modules/views/plugins/views_plugin_row.inc 中的 views_plugin::options_validate(&$form, &$form_state) 兼容第 137 行。

【问题讨论】:

  • 你使用的是什么版本的 PHP?

标签: drupal content-management-system drupal-6


【解决方案1】:

在您的 php.ini/.htaccess/settings.php 中始终可以关闭严格警告,所以这不是问题

http://drupal.org/node/465332#comment-1600034 解释了我们无法修复它的一些原因。

【讨论】:

  • 我使用上面链接中的一条评论来解决如下问题。安装了“disable_messages”模块。并禁用所有与 strict .*. 相关的消息。
猜你喜欢
  • 2012-01-15
  • 2021-11-26
  • 1970-01-01
  • 2012-10-11
  • 1970-01-01
  • 2021-02-13
  • 1970-01-01
  • 2017-01-13
  • 1970-01-01
相关资源
最近更新 更多