簡體   English   中英

嚴格警告:非靜態方法

[英]strict warning: Non-static method

我在所有頁面的www.westerford.co.za上遇到錯誤。 這些錯誤導致內容被隱藏。

一些錯誤包括...

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.

請轉到該網站,查看所有錯誤。 是什么原因引起的?

謝謝

我認為問題已解決,但仍在回答以作記錄。 問題是PHP版本與當時開發views模塊的版本不同。 每次您應該檢查是否有Views / CTools的任何新版本,以及模塊問題頁面上是否有可解決您問題的補丁。 您永遠不是唯一一個遇到此類問題的人,而且該問題很可能已經解決。

順便說一句:禁用警告並不能解決問題:)。 高級開發人員始終檢查錯誤日志-看門狗並處理這些問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM