Posted by Canadaka on April 7, 2012 at 5:15am
5 followers
Jump to:
| 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
See #1170192: Port Hierarchical Select Taxonomy Views (for exposed filters in Views) to Drupal 7.
#2
It's an issue with NOT using a reference sign before
$optionsargument.I changed it, and the error message is gone.
In
views_handler_filter_term_node_tid.inc, line 13this is the header:
<?phpclass 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<?phpclass 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()):#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.