Title: Plugin Compatibility Issue with PHP 8.3
Last modified: December 27, 2024

---

# Plugin Compatibility Issue with PHP 8.3

 *  Resolved [Prachi Vashishtha](https://wordpress.org/support/users/prachi-vashishtha/)
 * (@prachi-vashishtha)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/plugin-compatibility-issue-with-php-8-3-6/)
 * I wanted to report that the plugin is not fully compatible with PHP 8.3. Upon
   running it in a PHP 8.3 environment, the following warning is generated:
 * **Deprecated**: strpos(): Passing null to parameter #1 ($haystack) of type string
   is deprecated in **/var/www/csi/html/wp-includes/functions.php** on line **7329**
 * **Deprecated**: str_replace(): Passing null to parameter #3 ($subject) of type
   array|string is deprecated in **/var/www/csi/html/wp-includes/functions.php**
   on line **2189**
 * **Deprecated**: rtrim(): Passing null to parameter #1 ($string) of type string
   is deprecated in **/var/www/csi/html/wp-includes/formatting.php** on line **2819**
 * redirection-front.php:
 *   100  
 *   101:      if ( strpos( $ip, ‘:’ ) !== false ) {
 *   102           // phpcs:ignore
 * actions\pass.php:
 *   28        // Another URL on the server
 *   29:       $pos = strpos( $target, ‘?’ );
 *     ```wp-block-code
         30        $_SERVER['REQUEST_URI'] = $target;database\database-status.php:  153       $this->result = self::RESULT_ERROR;  154:      $this->reason = str_replace( "\t", ' ', $error );  155  database\database-upgrader.php:  115   public static function get( $version ) {  116:      include_once dirname( __FILE__ ) . '/schema/' . str_replace( [ '..', '/' ], '', $version['file'] );  117  fileio\apache.php:  24        // Remove any comments  25:       $data = str_replace( "\n", "\r", $data );
       ```
   
 * models\importer.php:
 *   304       $new_path = wp_parse_url( $new, PHP_URL_PATH );
 *   305:      $old = rtrim( dirname( $new_path ), ‘/’ ) . ‘/’ . rtrim( $redirect-
   >meta_value, ‘/’ ) . ‘/’;
 *   306       $old = str_replace( ‘\\’, ”, $old );
 * models\monitor.php:
 *   106       if ( $path ) {
 *   107:          return rtrim( $path, ‘/’ ) . ‘/’;
   This issue seems to be related
   to deprecated functionality or compatibility issues in the` above` files. It 
   would be great if the plugin developers could investigate and update the codebase
   to ensure compatibility with PHP 8.3.

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/plugin-compatibility-issue-with-php-8-3-6/#post-18217868)
 * The warnings are in core WP functions. How have you connected them to Redirection?
   What are you doing to cause these warnings? I am unable to reproduce them and
   they don’t look related to PHP 8.3.
 *  Thread Starter [Prachi Vashishtha](https://wordpress.org/support/users/prachi-vashishtha/)
 * (@prachi-vashishtha)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/plugin-compatibility-issue-with-php-8-3-6/#post-18219657)
 * We are updating WordPress, the theme, and several plugins to their latest versions,
   we have started noticing warnings on the website. Additionally, since the PHP
   version was upgraded to 8.3, some compatibility issues may have surfaced, leading
   to these warnings.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/plugin-compatibility-issue-with-php-8-3-6/#post-18219722)
 * Ok, but how have you associated the warnings to those lines in Redirection? It
   looks like you’ve just done a search for references to `strpos`, `rtrim`, and`
   str_replace` and found them in Redirection?
 * Many people are using Redirection with PHP 8.3 (including myself) without warnings
   so it would be useful to know how you are able to cause Redirection to output
   those warnings in core WordPress files.
    -  This reply was modified 1 year, 5 months ago by [John Godley](https://wordpress.org/support/users/johnny5/).

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

The topic ‘Plugin Compatibility Issue with PHP 8.3’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/plugin-compatibility-issue-with-php-8-3-6/#post-18219722)
 * Status: resolved