Title: PHP Deprecated notice
Last modified: August 13, 2026

---

# PHP Deprecated notice

 *  [silverks](https://wordpress.org/support/users/silverks/)
 * (@silverks)
 * [3 weeks, 3 days ago](https://wordpress.org/support/topic/php-deprecated-notice-19/)
 * Hi,
 * I was going through our site’s debugging log, and noticed there are thousands
   of PHP deprecated notice below:
 *     ```wp-block-code
       PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in [...]/wp-content/plugins/wp-migrate-db/class/Common/Compatibility/Compatibility.php on line 278
       ```
   
 * Line 278 is a comparison:
 *     ```wp-block-code
       false === strpos( $request_path, $api_base )
       ```
   
 * and earlier (line 265):
 *     ```wp-block-code
       $request_path = parse_url( $request_uri, PHP_URL_PATH );
       ```
   
 * `parse_url()` can return `null` when `REQUEST_URI` is missing or has no path (
   e.g. on CLI, cron, etc.). That leads to `strpos( null, $api_base )`, which triggers
   the PHP deprecated notice.
 * Suggested fix in `wp-migrate-db/class/Common/Compatibility/Compatibility.php:
   265`:
 *     ```wp-block-code
       $request_path = parse_url( $request_uri, PHP_URL_PATH ) ?? '';
       ```
   

Viewing 1 replies (of 1 total)

 *  [Harper Holsinger](https://wordpress.org/support/users/plaidharper/)
 * (@plaidharper)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/php-deprecated-notice-19/#post-19003873)
 * Also noticing this issue. Have the paid plugin. Just noting to remember to track
   the progress on this.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-deprecated-notice-19%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-migrate-db/assets/icon.svg?rev=2851356)
 * [WP Migrate Lite - Migration Made Easy](https://wordpress.org/plugins/wp-migrate-db/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-migrate-db/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-migrate-db/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-migrate-db/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-migrate-db/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-migrate-db/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harper Holsinger](https://wordpress.org/support/users/plaidharper/)
 * Last activity: [1 week, 3 days ago](https://wordpress.org/support/topic/php-deprecated-notice-19/#post-19003873)
 * Status: not resolved