Title: Errors on PHP 8.1
Last modified: June 17, 2023

---

# Errors on PHP 8.1

 *  Resolved [relleenbetts](https://wordpress.org/support/users/relleenbetts/)
 * (@relleenbetts)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/errors-on-php-8-1/)
 * Hi,
 * I’ve recently updated my website to PHP 8.1 and I’ve noticed a PHP error on Query
   Monitor regarding the Newsletter plugin. The messages I’ve gotten are the following:
 * _strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated_
 * _str\_replace(): Passing null to parameter #3 ($subject) of type array|string
   is deprecated_
 * Could you take a look at it for a further update? Thanks a lot in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-on-php-8-1%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/errors-on-php-8-1/#post-16827643)
 * Hi, are you using only the Newsletter plugin or even some addons? If you’re using
   addons, could you send me a screenshot of them (from the blog plugins panel).
   Even privately at stefano at thenewsletterplugin dot com.
 * I suspect it is a problem with our code when adding menu entries in WP, but hat
   should have been fixed a few versions ago in Newsletter.
 * Thank you!
 *  Thread Starter [relleenbetts](https://wordpress.org/support/users/relleenbetts/)
 * (@relleenbetts)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/errors-on-php-8-1/#post-16988407)
 * Hi Stefano!
 * Sorry for my late reply, I didn’t get the email notification from WP and totally
   missed your message. In the attached image you can see the addons I’m using (
   besides the plugin itself).
 * ![](https://i0.wp.com/i.postimg.cc/8zQkXqD0/Captura-de-pantalla-2023-08-21-a-
   las-10-52-44.png?resize=537%2C275&ssl=1)
 * Have a great day!
 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/errors-on-php-8-1/#post-16994290)
 * Hi, it was a problem with code adding entries to the menu, but it should have
   been solved. We’re checking if some of the older addon are using that code as
   well.

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

The topic ‘Errors on PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/errors-on-php-8-1/#post-16994290)
 * Status: resolved