Plugin Compatibility Issue with PHP 8.3
-
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 theabovefiles. It would be great if the plugin developers could investigate and update the codebase to ensure compatibility with PHP 8.3.
The topic ‘Plugin Compatibility Issue with PHP 8.3’ is closed to new replies.