Title: PHP8 deprecated strpos and str_replace
Last modified: April 24, 2023

---

# PHP8 deprecated strpos and str_replace

 *  Resolved [webparaplan](https://wordpress.org/support/users/webparaplan/)
 * (@webparaplan)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/)
 * Latest plugin, latest WP, php 8.1 cause errors in log:
 * [24-Apr-2023 09:48:52 UTC] PHP Deprecated: strpos(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /var/www/site/wp-includes/functions.
   php on line 7053
   [24-Apr-2023 09:48:52 UTC] PHP Deprecated: str_replace(): Passing
   null to parameter #3 ($subject) of type array|string is deprecated in /var/www/
   site/wp-includes/functions.php on line 2165

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

 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16682145)
 * Thanks for reporting, [@webparaplan](https://wordpress.org/support/users/webparaplan/).
 * It should be fixed in the next version, 4.3.3.
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16686860)
 * Hi, [@webparaplan](https://wordpress.org/support/users/webparaplan/).
 * We’re already fixing the “PHP Deprecated” messages from FIFU side. But the ones
   you reported happens on “functions.php”, that is not a FIFU file. So it can’t
   be fixed directly.
 * If you think they are related to FIFU in some way, please list the steps to reproduce
   the message.
    -  This reply was modified 3 years, 1 month ago by [fifu.app](https://wordpress.org/support/users/marceljm/).
 *  Thread Starter [webparaplan](https://wordpress.org/support/users/webparaplan/)
 * (@webparaplan)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16687795)
 * wp-includes/functions.php accumulate all errors from all plugins.
 * this errors is from YOUR plugin 100%
 * I install Query Minitor plugin that relate it’s errors to FIFU
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16688661)
 * Hi, [@webparaplan](https://wordpress.org/support/users/webparaplan/).
 * As I told you, I need the steps to reproduce the issue. What’s the action that
   triggers the message?
 * Also, could send me a screenshot of Query Monitor?
 * Thanks for the cooperation.
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16690769)
 * Doesn’t matter. I could reproduce the issue today, when activating/deactivating
   the plugin.
 * It’s already fixed and it will be available in the next version.
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16697129)
 * 4.3.3 is available. Please contact me if you still have troubles with that.

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

The topic ‘PHP8 deprecated strpos and str_replace’ is closed to new replies.

 * ![](https://ps.w.org/featured-image-from-url/assets/icon-256x256.png?rev=2776609)
 * [Featured Image from URL (FIFU)](https://wordpress.org/plugins/featured-image-from-url/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-from-url/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-from-url/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-from-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-from-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-from-url/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [fifu.app](https://wordpress.org/support/users/marceljm/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php8-deprecated-strpos-and-str_replace/#post-16697129)
 * Status: resolved