PHP8.1 – Fatal Error in members.php
-
After upgrading to PHP8.1 – I started getting a fatal error on a template page -members.php – around line 117. It is complaining about the parameter 1 not being an array.
$search_filters = apply_filters( ‘um_frontend_member_search_filters’, array_unique( array_filter( $args[‘search_fields’] ) ) );
I have had to wrap the line in an if (is_array($args[‘search_fields’])) {}
I have NOT changed anything else in the plugin but I did not see any way around this issue. PHP7.4 is now at EOL – so if this is not just an isolated issued perhaps it can be looked into?
Thank you for any advice.
- The topic ‘PHP8.1 – Fatal Error in members.php’ is closed to new replies.