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.
On every page I'm getting this error:
Strict warning: Declaration of SearchApiViewsHandlerFilterBoolean::value_form() should be compatible with that of SearchApiViewsHandlerFilter::value_form() in _registry_check_code()
I have used registry rebuild drush module and I use the latest dev release of search api module.
Comment | File | Size | Author |
---|---|---|---|
#2 | search_api.patch | 2.37 KB | Johnny vd Laar |
#1 | 1294828--die,-coding-standards,-DIE!.patch | 1.37 KB | drunken monkey |
Comments
Comment #1
drunken monkeySorry, I thought I had already weeded out all remaining traces of OOP coding standards in the Views integration code. Seem to have missed two places.
Please try the attached patch.
Comment #2
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedNo the problem is still there. I've ran the following patch as I found 2 other occurrences of the line you modified. But it didn't help.
Comment #3
drunken monkeyWhat notices are there now? Or still the same?
I didn't modify the field handlers as they will be removed in the next few days anyways – see #1231512: Use real Relationships instead of level magic in Views integration. So if the notices are from the field handlers, just wait a few days.
Comment #4
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedno it's still the same filterhandler error that I get:
Strict warning: Declaration of SearchApiViewsHandlerFilterBoolean::value_form() should be compatible with that of SearchApiViewsHandlerFilter::value_form() in _registry_check_code() (line 2701 of /home/johnny/www/rm-drupal/includes/bootstrap.inc).
Comment #5
drunken monkeyThen you applied the patch wrong. Or, you're possibly using a very old module version, but I don't think that's it.
Comment #6
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedYou are right I applied the patch wrong. It works now! Sorry for the misunderstanding and thanks a lot!
Comment #7
drunken monkeyCommitted.