欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Multiple php errors "Declaration of views..."

Every page generates multiple errors like below. Using PHP version 5.4.6. Did not have errors under PHP 5.3.x

Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /var/www/sites/all/modules/views/handlers/views_handler_argument.inc on line 744.
Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /var/www/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /var/www/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /var/www/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 159.
Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /var/www/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.
Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /var/www/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.

Comments

ibnkhaldun’s picture

 

I'm using some utilities from Data module. Every pages usign views send a at least 1 similar warning:

Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) ... I did not test over php 5.3 so can't say more.
Are there a patch to fix it?
A few days ago I posted a similar issue on views method declarations see A warning from Views just activated in D6.29
I guess, there is a compatibility issue D6.2x - PHP 5.4.6+

NOPE !!! not a compatibility issue ! there are a real missdeclaration problem I found signature differences on extending classes. See comment on signatures

DamienMcKenna’s picture

 

Status:Active» Closed (duplicate)

来自 https://www.drupal.org/node/2019795
普通分类: