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.
If I enable the user relationship views module I get following error message for the lines 3024 und 3046 in ...\includes\bootstrap.inc:
"Strict warning: Declaration of views_handler_filter_user_relationships_type::value_submit() should be compatible with that of views_handler_filter_in_operator::value_submit() in _registry_check_code()"
How can I fix this error?
Comments
Comment #1
G Gavitt CreditAttribution: G Gavitt commentedI saw this same notice on user pages when I moved a project to a server using PHP Version 5.3.8
In the comments for the file that's generating the warning, you can see that its based on views_handler_filter_user_name. My change mirrors that submit function. I am not really sure how this change will effect this module..this part of the code looks like its part of the views relationship admin section? So use this fix at your own risk till somebody else can confirm this wont blow things up.
Line 114 in user_relationships_views/views_handler_filter_user_relationships_type.inc
Old
function value_submit() { }
New
function value_submit($form, &$form_state) { }
Comment #2
absoludo CreditAttribution: absoludo commentedI can confirm that this sollution solves the strict warnings and I think the sollution is valid, but I cannot test this thoroughly at this time.
If I have tested this and no patch is provided I will try and create a patch.
@G Gavitt cheers!
Comment #3
mrf CreditAttribution: mrf commentedClosing this as a duplicate of #1551792: Strict warning: Declaration of views_handler_filter_user_relationships_type::value_submit()