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
freemius\config.php:
186 define( ‘WP_FS__IS_LOCALHOST_FOR_SERVER’, ( ! WP_FS__IS_HTTP_REQUEST ||
187: false !== strpos( $_SERVER[‘HTTP_HOST’], ‘localhost’ ) ) );
188 }
freemius\start.php:
403
404: if ( 0 === strpos( $file_path, $plugins_or_theme_dir_path ) ) {
405 // No symlinks
420 $sdk_symlink = $fs_active_plugins->plugins[ $this_sdk_relative_path ]->sdk_symlink;
421: if ( 0 === strpos( $sdk_symlink, $plugins_or_theme_dir_path ) ) {
admin\class-shortcodes-ultimate-admin.php:
211 // Replace plugin slug with template prefix
212: $page = str_replace( $this->plugin_prefix, '', $page );
213
225
226: $section = str_replace( $this->plugin_prefix, '', $args['id'] );
227
freemius\start.php:
232 . '/'
233: . str_replace( "../{$themes_directory_name}/", '', $this_sdk_relative_path )
234 . '/start.php' );
297 . '/'
298: . str_replace( "../{$themes_directory_name}/", '', $fs_active_plugins->newest->sdk_path )
299 . '/start.php' );admin\class-shortcodes-ultimate-admin-about.php:
11 $this->add_submenu_page(
12: rtrim( $this->plugin_prefix, '-_' ),
13 __( 'About', 'shortcodes-ultimate' ),
15 $this->get_capability(),
16: rtrim( $this->plugin_prefix, '-_' ),
17 array( $this, 'the_menu_page' )
admin\class-shortcodes-ultimate-admin-addons.php:
24 $this->add_submenu_page(
25: rtrim( $this->plugin_prefix, '-_' ),
26 __( 'Add-ons', 'shortcodes-ultimate' ),This issue seems to be related to deprecated functionality or compatibility issues in the
abovefiles. 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.