• Resolved alexaung

    (@alexaung)


    Hi,

    can’t offload webp file. I got following error. I am using with Shortimagepixel plugin

    2020/11/28 08:22:19 [error] 39856#39856: *3196489 FastCGI sent in stderr: “ng or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/{mysite}/public/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-370×193.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/{mysite}/public/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-300×300.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/etak{mysite}lic/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-600×375.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/etak{mysite}lic/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-100×100.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/etak{mysite}lic/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-300×300.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/etak{mysite}lic/wp-content/uploads/2020/10/SSOM-I-Skirt-for-web-600×375.webp to provider: Found 1 error while validating the input provided for the PutObject operation:
    [ContentType] must be a string or an object that implements __toString(). Found bool(false)PHP message: AS3CF: Error offloading /www/etak{mysite}lic/wp-content/

Viewing 1 replies (of 1 total)
  • Plugin Author Delicious Brains Inc.

    (@deliciousbrains)

    WordPress currently does not understand what a WebP file is, and I have a feeling that ShortPixel might not be registering the WebP mime type with WordPress. You should raise this with ShortPixel support.

    In the meantime, add this to your child theme’s functions.php file…

    my_custom_mime_types( $mime_types ) {
      $mime_types['webp'] = 'image/webp';
    
      return $mime_types;
    }
    add_filter( 'mime_types', 'my_custom_mime_types' );

    -IJ

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.