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.

请访问该站点并查看所有错误。可能是什么原因造成的?

谢谢

4

1 回答 1

0

我认为问题已得到解决,但无论如何都要记录在案。问题在于 PHP 版本与当时开发视图模块的版本不同。每次您应该检查是否有任何新版本的 Views / CTools 以及模块问题页面上是否有可以解决您问题的补丁。您绝不是唯一一个遇到此类问题的人,而且问题很可能已经解决。

顺便说一句:禁用警告不会使问题消失:)。高级开发人员总是检查错误日志 - 看门狗并处理这些问题。

于 2014-05-29T23:47:44.250 回答