Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some security reason I have upgraded the views module (using Views 6.x-2.16) and it display this message after the upgrade:
Error Description:
Fatal error: Call to a member function init() on a non-object in /www/sites/all/modules/views_hacks/views_filters_selective/views_filters_selective.module on line 262
I have try the last dev release but steel the same problem.
Thanks
Comments
Comment #1
ChrisValentine CreditAttribution: ChrisValentine commentedI get this too but only on views created since the update of Views - older views don't generate the error.
Comment #2
soulfroysSame here...
Comment #3
jvieille CreditAttribution: jvieille commentedSame problem.
It lies here:
1) $query_options is empty - get_option does not get anything
2) views_get_plugin('query', $plugin) gets nothing.from the plugin 'views_query'
consequently, $query->init... fails as $query does not exist.
I notice that $this is empty too, though get_option needs it.
Is this module definetly broken since views 2.16, or are we unlucky?
Comment #4
soulfroysHello @jvieille
Unfortunately I couldn't fix the bug, I just disabled the module and removed the fields... :-(
Better luck for us!
Comment #5
infojunkieThis module is no longer maintained for D6 and has been deprecated in favour of https://drupal.org/project/views_selective_filters for D7. Please test there and reopen if necessary.
Comment #6
jvieille CreditAttribution: jvieille commentedHere is the fix