我将使用drupal cms开发的网站移动到使用php 5.4.14的新Windows主机但我遇到以下错误。如何解决?
strict warning: Non-static method view::load() should not be called statically....
我不是php开发人员所以我是新手。 我读了很多博客,他们提供了一些补丁。但我不知道如何使用补丁。 请帮帮我。
完成错误:
strict warning: Non-static method view::load() should not be called statically in D:\HostingSpaces\Roodmajan\roodmajan.com\wwwroot\sites\all\modules\views\views.module on line 903.
strict warning: Declaration of views_handler_field::query() should be compatible with views_handler::query($group_by = false) in D:\HostingSpaces\Roodmajan\roodmajan.com\wwwroot\sites\all\modules\views\includes\handlers.inc on line 90.
strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in D:\HostingSpaces\Roodmajan\roodmajan.com\wwwroot\sites\all\modules\views\includes\handlers.inc on line 90.
strict warning: Declaration of views_handler_filter::query() should be compatible with views_handler::query($group_by = false) in D:\HostingSpaces\Roodmajan\roodmajan.com\wwwroot\sites\all\modules\views\includes\handlers.inc on line 90.
strict warning: Declaration of views_plugin_query::init() should be compatible with views_plugin::init(&$view, &$display) in D:\HostingSpaces\Roodmajan\roodmajan.com\wwwroot\sites\all\modules\views\includes\handlers.inc on line 90
答案 0 :(得分:2)
在PHP中,您可以使用以下代码隐藏严格警告:
error_reporting(E_ALL ^ E_STRICT);
使用drupal你有两个选择:
您可以转到管理员>停用所有屏幕警告网站配置>错误报告,然后选择将错误写入日志
使用Disable Messages模块,安装后浏览到 admin / settings / disable-messages 并确保选中“启用过滤”,然后将其放入“消息”被禁用:“ 字段:严格。*。