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
functions.php:
? 125 ? ? ?$meta_excludelist_string = '(' . implode( ')|(', $meta_excludelist ) . ')';
? 126: ? ? if ( strpos( $meta_excludelist_string, '*' ) !== false ) {
? 127 ? ? ? ? ?$meta_excludelist_string = str_replace( [ '*' ], [ '[a-zA-Z0-9_]*' ], $meta_excludelist_string );
revisionary_main.php:
? 28 ? ?function init() {
? 29: ? ? ? if (isset($_SERVER['REQUEST_URI']) && is_admin() && (false !== strpos(esc_url_raw($_SERVER['REQUEST_URI']), 'revision.php')) && (!empty($_REQUEST['revision']))) {
? 30 ? ? ? ? ? ?add_action('init', [$this, 'addFilters'], PHP_INT_MAX);
? 44 ? ? ? ?// Note: some filtering is needed to allow users with full editing permissions on the published post to access a Compare Revisions screen with Preview and Manage buttons
? 45: ? ? ? if (is_admin() && isset($_SERVER['REQUEST_Ufunctions.php:
126 if ( strpos( $meta_excludelist_string, ‘*’ ) !== false ) {
127: $meta_excludelist_string = str_replace( [ ‘*’ ], [ ‘[a-zA-Z0-9_]*’ ], $meta_excludelist_string );
128
revision-workflow_rvy.php:
51
52: $use_wp_roles = str_replace( ‘ ‘, ”, $use_wp_roles );
? ?53 ? ? ? ? ? ? ? ? ?$use_wp_roles = explode( ',', $use_wp_roles );
4 results - 2 files
lib\vendor\publishpress\instance-protection\core\Autoloader.php:
? ?86 ? ? ? ? ?// normalize the base directory with a trailing separator
? ?87: ? ? ? ? $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/';
? ?88 ?
? 131 ? ? ? ? ? ? ?// of strrpos()
? 132: ? ? ? ? ? ? $prefix = rtrim($prefix, '\\');
? 133 ? ? ? ? ?}
vendor\publishpress\publishpress-instance-protection\core\Autoloader.php:
? ?86 ? ? ? ? ?// normalize the base directory with a trailing separator
? ?87: ? ? ? ? $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/';
? ?88 ?
? 131 ? ? ? ? ? ? ?// of strrpos()
? 132: ? ? ? ? ? ? $prefix = rtrim($prefix, '\\');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.
- You must be logged in to reply to this topic.