Download & Extend

Declaration of hs_taxonomy_views_handler_filter_term_node_tid should be compatible with that of...

Project:Hierarchical Select
Version:7.x-3.0-alpha5
Component:Code - Taxonomy Views
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Everytime I run Drupal update.php I get the following error

Strict warning: Declaration of hs_taxonomy_views_handler_filter_term_node_tid::init() should be compatible with that of views_handler_filter_term_node_tid::init() in require_once() (line 9 of \sites\all\modules\contrib\hierarchical_select\modules\hs_taxonomy_views_handler_filter_term_node_tid.inc).

As far as I can tell the functionality of Hierarchical Select is working fine and this error doesn't showup any other time.

Comments

#1

#2

Status:closed (duplicate)» active

It's an issue with NOT using a reference sign before $options argument.
I changed it, and the error message is gone.

In views_handler_filter_term_node_tid.inc, line 13
this is the header:

<?php
class views_handler_filter_term_node_tid extends views_handler_filter_many_to_one {
 
// .........
  
function init(&$view, &$options) {
     
// ..........
  
}
  
// ............
}
?>

in hs_taxonomy_views_handler_filter_term_node_tid.inc, line 9

<?php
class hs_taxonomy_views_handler_filter_term_node_tid extends views_handler_filter_term_node_tid {
  
// ............
 
function init(&$view, $options) {
    
// ............
 
}
  
// ............
}
?>

So there's no reference sign before $options.

==============================================================

By the way, I got a little bit different error (not referring to require_once()):

Strict warning: Declaration of hs_taxonomy_views_handler_filter_term_node_tid::init() should be compatible with that of views_handler_filter_term_node_tid::init() in _registry_check_code() (line 3062 of ...../includes/bootstrap.inc).

#3

Yes, this works. I added the reference sign before $options in hs_taxonomy_views_handler_filter_term_node_tid.inc, line 9 and the warning disappeared.