Updated to PHP 8.1 and WordPress 6.5 and now debugging shows these errors

[ad_1]

Is this anything to be concerned about? I tried to research the error messages but didn’t find much of an explanation.

The site seems to be working perfectly fine. It is a WooCommerce site, btw, which makes me more concerned that I’ll put this into production this way and find out the errors in fact are cause for concern.

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home2/my-site-name/public_html/wp-includes/functions.php on line 7288

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home2/my-site-name/public_html/wp-includes/functions.php on line 2187

Warning: Cannot modify header information – headers already sent by (output started at /home2/my-site-name/public_html/wp-includes/functions.php:7288) in /home2/my-site-name/public_html/wp-admin/includes/misc.php on line 1439

Warning: Cannot modify header information – headers already sent by (output started at /home2/my-site-name/public_html/wp-includes/functions.php:7288) in /home2/my-site-name/public_html/wp-includes/functions.php on line 7096

Warning: Cannot modify header information – headers already sent by (output started at /home2/my-site-name/public_html/wp-includes/functions.php:7288) in /home2/my-site-name/public_html/wp-admin/admin-header.php on line 9

I **think** the first 2 are nothing to worry about, but the last 3 “Warning: Cannot modify header information” seem more mysterious and not good.

[ad_2]
1 Comment
  1. The first 2 warnings being output cause the other 3. Simply disable WP_DEBUG or at least WP_DEBUG_DISPLAY.

 

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