• Resolved Prachi Vashishtha

    (@prachi-vashishtha)


    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, ‘?’ );

      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

    (@johnny5)

    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

    (@prachi-vashishtha)

    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

    (@johnny5)

    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, 3 months ago by John Godley.
Viewing 3 replies - 1 through 3 (of 3 total)

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