• 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

    1 result – 1 file

    build\shortpixel\filesystem\src\Model\File\FileModel.php:

      511         $abspath =  $this->getFS()->getWPAbsPath();

      512:        $path = str_replace($site_url, rtrim($abspath->getPath(),’/’), $url);


    thumbnail_updater.php:

      111        $diff = abs($old_width – $new_width);

      112:       $closest_file = str_replace($this->relPath, ”, $this->newMeta[‘file’]);


    build\shortpixel\PackageLoader.php:

      75                      if ($psr4) {

      76:                         $classname = str_replace($namespace, “”, $classname);

      77                      }

      81                      $filename = ltrim($classname .’.php’, ‘\\’);

      82:                     $filename = str_replace(‘\\’,’/’, $filename);



    classes\uihelper.php:

      175  

      176:     if (strpos($mime_type, ‘svg’) !== false && $width <= 5)

      177      {

      453           {

      454:                if (strpos($mime, $extension) !== false )

      455                       return true;

    classes\Controller\ReplaceController.php:

      322                   false === file_exists($source_file) &&

      323:                  $source_file && 0 !== strpos( $source_file, ‘/’ )

      324                   && ! preg_match( ‘|^.:\\\|’, $source_file ) )

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

Viewing 1 replies (of 1 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Prachi,

    From our side everything is working correctly.

    Could you please tell us the steps you are following to reproduce the issue? Also, in order to help you troubleshoot this, it would be helpful if you could provide us with some additional information, including:

    • Your site information. Please navigate to Tools > Site Health > Info, click on the “Copy site info to clipboard” button and paste the information in your reply.
    • Is the issue occurring in more than one web browser (Chrome, Firefox, Edge, Safari, etc.)?

    Thank you!

Viewing 1 replies (of 1 total)

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