2013-07-18 126 views
2

我在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. 

請去到現場,看到所有的錯誤。 什麼可能導致他們?

感謝

+0

可能重複的[我怎樣才能解決]非靜態方法xxx:xxx()不應該在PHP 5.4中靜態調用?](http://stackoverflow.com/questions/10768576/how-can-i -solve-non-static-method-xxxxxx-should-be-called-static-in) – user20232359723568423357842364

+1

Views does not support> = PHP5.4 yet。It works,but you'll get a ton of these types of通知 – Clive

+0

@Clive,我怎麼讓這個網站再次工作?它在上週工作 –

回答

0

我認爲這個問題是固定的,但無論如何回答備案。 問題在於PHP版本與當時在其上開發視圖模塊的版本不同。 每次您應該檢查是否有任何新版本的Views/CTools,並且在模塊問題頁面上是否有修補程序可以解決您的問題。你從來不是唯一有這種問題的人,這個問題很可能已經解決了。

BTW:禁用警告不會使問題消失:)。 高級開發人員總是檢查錯誤日誌 - 看門狗並處理這些問題。

相關問題