Quantcast
Channel: WordPress.org Forums » [Search Exclude] Support
Viewing all articles
Browse latest Browse all 95

Plugin Compatibility Issue with PHP 8.3

$
0
0

Replies: 0

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

7 results - 4 files

jetpack_vendor\automattic\jetpack-assets\src\class-assets.php:

  452  

  453:      if ( strpos( $lang_dir, $content_dir ) === 0 ) {

  454           $data['baseUrl'] = content_url( substr( trailingslashit( $lang_dir ), strlen( trailingslashit( $content_dir ) ) ) );

  455:      } elseif ( strpos( $lang_dir, $abspath ) === 0 ) {

  456           $data['baseUrl'] = site_url( substr( trailingslashit( $lang_dir ), strlen( untrailingslashit( $abspath ) ) ) );

jetpack_vendor\quadlayers\wp-plugin-suggestions\src\Page.php:

  132           if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'install-plugin' ) {

  133:              if ( strpos( $url, 'plugins.php' ) !== false ) {

  134                   $url = self_admin_url( $path );

jetpack_vendor\quadlayers\wp-plugin-suggestions\src\Table.php:

   46           function( $url, $path ) {

   47:              if ( strpos( $url, 'tab=plugin-information' ) !== false ) {

   48                   $url = network_admin_url( $path );

   59           function ( $url, $path ) {

   60:              if ( strpos( $url, 'plugins.php' ) !== false ) {

   61                   $url = self_admin_url( $path );

  158       }

  159:      if ( $tab === 'beta' || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {

  160           $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );

vendor\composer\ClassLoader.php:

  532              foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {

  533:                 if (0 === strpos($class, $prefix)) {

  534                      foreach ($dirs as $dir) {

vendor\automattic\jetpack-composer-plugin\src\class-plugin.php:

  147       // Fixup syntax a little.

  148:      $code = str_replace( ‘array (‘, ‘array(‘, $code );

  149       $code = preg_replace( ‘/ => \n\s*array\(/’, ‘ => array(‘, $code );

vendor\composer\platform_check.php:

  18          } elseif (!headers_sent()) {

  19:             echo ‘Composer detected issues in your platform:’ . PHP_EOL.PHP_EOL . str_replace(‘You are running ‘.PHP_VERSION.’.’, ”, implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;

  20          }

This issue seems to be related to deprecated functionality or compatibility issues in theabove files. It would be great if the plugin developers could investigate and update the codebase to ensure compatibility with PHP 8.3.


Viewing all articles
Browse latest Browse all 95

Trending Articles