strstr() and str_contains() errors
-
Hi,
Your amazing plugin and its exactly what I was looking for to add my own panels to admin dashboard. Thanks.
However in page: wp-admin/index.php
When the plugin is active I get the following erros:
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/…/public/wp-includes/functions.php on line 1144
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/…/public/wp-includes/functions.php on line 1151
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/…/public/wp-includes/functions.php on line 1154
Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/…/public/wp-includes/functions.php on line 1161
Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/…/public/wp-includes/functions.php on line 1164
Page: wp-admin/edit.php?post_type=udb_widgets&page=udb_admin_bar also goes crazy with errors.
I’m running php 8.1. If I change server php to php 7.4 the errors go away.
How can I avoid these errors in php 8.1
Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘strstr() and str_contains() errors’ is closed to new replies.