Title: php 8.1 errors
Last modified: December 19, 2022

---

# php 8.1 errors

 *  [jessy86](https://wordpress.org/support/users/jessy86/)
 * (@jessy86)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-1-errors-4/)
 * hi,
   On php 8.1, your plugin gives several php errors. On some pages I get 40 
   php notices from the woody insert snippet plugin.
 * Can you please fix this ?
   `str_replace(): Passing null to parameter #3 ($subject)
   of type array|string is deprecatedstrpos(): Passing null to parameter #1 ($haystack)
   of type string is deprecatedstr_replace(): Passing null to parameter #3 ($subject)
   of type array|string is deprecated
 * thank you !

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-1-errors-4/#post-16305646)
 * Hello.
 * These warnings most likely relate to the code of your snippets.
 *  [JCV](https://wordpress.org/support/users/psykonevro/)
 * (@psykonevro)
 * [3 years ago](https://wordpress.org/support/topic/php-8-1-errors-4/#post-16640064)
 * Hi [@webtemyk](https://wordpress.org/support/users/webtemyk/)
 * I deactivated all snippets and still get errors. Only deactivating Woody code
   snippets gets rid of errors.
 * The errors I get are several identical lines:
 * Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string
   is deprecated in wp-includes/functions.php on line 7053
 * Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array
   |string is deprecated in wp-includes/functions.php on line 2165

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php 8.1 errors’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [JCV](https://wordpress.org/support/users/psykonevro/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/php-8-1-errors-4/#post-16640064)
 * Status: not resolved