简体   繁体   English

严格警告:非静态方法

[英]strict warning: Non-static method

I am getting an errors on www.westerford.co.za on all the pages. 我在所有页面的www.westerford.co.za上遇到错误。 These errors are causing the content to be hidden. 这些错误导致内容被隐藏。

Some of the errors include... 一些错误包括...

strict warning: Non-static method view::load() should not be called statically in /path/sites/all/modules/views/views.module on line 906.
strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /path/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /path/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
strict warning: Declaration of views_handler_filter_term_node_tid::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /path/sites/all/modules/views/modules/taxonomy/views_handler_filter_term_node_tid.inc on line 302.
strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /path/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.

Please go to the site and see all the errors. 请转到该网站,查看所有错误。 What might be causing them? 是什么原因引起的?

Thanks 谢谢

I assume that the issue was fixed but answering anyway for the record. 我认为问题已解决,但仍在回答以作记录。 The problem was that the PHP version was different than the one on which the views module was developed on back then. 问题是PHP版本与当时开发views模块的版本不同。 Every time you should check if there is any new version of Views / CTools and if there is a patch on the modules issue page that would fix your problem. 每次您应该检查是否有Views / CTools的任何新版本,以及模块问题页面上是否有可解决您问题的补丁。 You're never the only one having such problems and it's highly possible that the issue is already solved. 您永远不是唯一一个遇到此类问题的人,而且该问题很可能已经解决。

BTW: disabling warnings doesn't make the problem go away :). 顺便说一句:禁用警告并不能解决问题:)。 An advanced developer always checks the error log - watchdog and handles those issues. 高级开发人员始终检查错误日志-看门狗并处理这些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM