PHP 8.1 deprecated strpos | WordPress.org

[ad_1]

After upgrading to PHP 8.1, WordPress 6.3.1, and plugin version 3.4, then opening the WordPress dashboard, I see “Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated” repeated over and over at the top. If I disable the Watu Quiz plugin, these go away. We have WP_DEBUG enabled in our testing site.

Full error message:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/web/wp-includes/functions.php on line 7127 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/wp-includes/functions.php on line 2182

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer