• Resolved thanawatsukwibul

    (@thanawatsukwibul)


    Hi,

    I got a message showing that “WebP rules verified, but self-test failed: WebP response failed mime-type test.”. But if I used JS WebP Rewriting, It worked.

    And I did the configure following “Rewriting (via map) with Nginx” but still not work.
    link

    I also did search and try to fix it before asking for help.

    This is the log.

    checking active plugins
    EIO_Base::content_url()
    upload_url: https://herbist.live/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://herbist.live/wp-content/ewww/
    plugin (resource) content_dir: /home/herbist/web/herbist.live/public_html/wp-content/ewww/
    home url: https://herbist.live/
    relative home url: //herbist.live/
    home domain: herbist.live
    site/upload url: https://herbist.live
    site/upload domain: herbist.live
    EIO_Lazy_Load::__construct()
    request uri is /wp-admin/options-general.php?page=ewww-image-optimizer-options
    is_admin
    ewww_image_optimizer_admin_init()
    EIO_Base::content_url()
    upload_url: https://herbist.live/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://herbist.live/wp-content/ewww/
    plugin (resource) content_dir: /home/herbist/web/herbist.live/public_html/wp-content/ewww/
    home url: https://herbist.live/
    relative home url: //herbist.live/
    home domain: herbist.live
    site/upload url: https://herbist.live
    site/upload domain: herbist.live
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_upgrade()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_cron_setup()
    EWWWIO_Tracking::schedule_send()
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /home/herbist/web/herbist.live/public_html/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /home/herbist/web/herbist.live/public_html/wp-content/plugins/ewww-image-optimizer/binaries/jpegtran-linux
    /home/herbist/web/herbist.live/public_html/wp-content/plugins/ewww-image-optimizer/binaries/optipng-linux
    /home/herbist/web/herbist.live/public_html/wp-content/plugins/ewww-image-optimizer/binaries/gifsicle-linux
    /home/herbist/web/herbist.live/public_html/wp-content/plugins/ewww-image-optimizer/binaries/pngquant-linux
    /home/herbist/web/herbist.live/public_html/wp-content/plugins/ewww-image-optimizer/binaries/cwebp-linux
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/optipng
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/gifsicle
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/pngquant
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: webp
    Linux/UNIX style OS, checking permissions
    ewww_image_optimizer_check_permissions()
    permissions for /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp: 0755
    permissions ok
    ewww_image_optimizer_settings_script()
    ewww_image_optimizer_bulk_script()
    ewww_image_optimizer_tool_script()
    ewww_image_optimizer_webp_script()
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: webp
    ewww_image_optimizer_path_check()
    ewww_image_optimizer_find_nix_binary()
    found /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran: c0a44f6f16ddc78d8d027ffd3e09c512d637876833c5ffaaf5b1e7acd5ce3cda
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: j at /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9d 12-Jan-2020
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_JPEGTRAN
    ewww_image_optimizer_find_nix_binary()
    found /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp, testing...
    ewww_image_optimizer_md5check()
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp: 5fec3397c56b74b8a8ac8c9bac99dc11d40f9528a6c05e4108f1cd65d5a0a4fc
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: w at /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp
    /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp: 1.2.0
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_CWEBP
    using: /home/herbist/web/herbist.live/public_html/wp-content/ewww/jpegtran
    using: /home/herbist/web/herbist.live/public_html/wp-content/ewww/cwebp
    defining EWWW_IMAGE_OPTIMIZER_OPTIPNG
    defining EWWW_IMAGE_OPTIMIZER_GIFSICLE
    defining EWWW_IMAGE_OPTIMIZER_PNGOUT
    defining EWWW_IMAGE_OPTIMIZER_PNGQUANT
    defining EWWW_IMAGE_OPTIMIZER_SVGCLEANER
    ewww_image_optimizer_options()
    ewww_image_optimizer_savings()
    savings query avoided via (single-site) cache
    herbist
    EWWW IO version: 640.0
    WP version: 5.9
    PHP version: 80015
    libxml version: 20912
    core plugin
    ABSPATH: /home/herbist/web/herbist.live/public_html/
    WP_CONTENT_DIR: /home/herbist/web/herbist.live/public_html/wp-content
    home url (Site URL): https://herbist.live
    site url (WordPress URL): https://herbist.live
    wp_upload_dir (baseurl): https://herbist.live/wp-content/uploads
    wp_upload_dir (basedir): /home/herbist/web/herbist.live/public_html/wp-content/uploads
    content_width: 668
    registered stream wrappers: https,ftps,compress.zlib,php,file,glob,data,http,ftp,compress.bzip2,phar,zip
    not external cache
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: 2.3.0
    FreeType Support: 1
    FreeType Linkage: with freetype
    GIF Read Support: 1
    GIF Create Support: 1
    JPEG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    WebP Support: 1
    BMP Support: 1
    TGA Read Support: 1
    JIS-mapped Japanese Font Support:
    ewww_image_optimizer_gmagick_support()
    ewww_image_optimizer_imagick_support()
    3FR,3G2,3GP,AAI,AI,APNG,ART,ARW,AVI,AVIF,AVS,BGR,BGRA,BGRO,BIE,BMP,BMP2,BMP3,BRF,CAL,CALS,CANVAS,CAPTION,CIN,CIP,CLIP,CMYK,CMYKA,CR2,CR3,CRW,CUR,CUT,DATA,DCM,DCR,DCX,DDS,DFONT,DJVU,DNG,DOT,DPX,DXT1,DXT5,EPDF,EPI,EPS,EPS2,EPS3,EPSF,EPSI,EPT,EPT2,EPT3,ERF,EXR,FAX,FILE,FITS,FRACTAL,FTP,FTS,G3,G4,GIF,GIF87,GRADIENT,GRAY,GRAYA,GROUP4,GV,H,HALD,HDR,HEIC,HISTOGRAM,HRZ,HTM,HTML,HTTP,HTTPS,ICB,ICO,ICON,IIQ,INFO,INLINE,IPL,ISOBRL,ISOBRL6,J2C,J2K,JBG,JBIG,JNG,JNX,JP2,JPC,JPE,JPEG,JPG,JPM,JPS,JPT,JSON,K25,KDC,LABEL,M2V,M4V,MAC,MAGICK,MAP,MASK,MAT,MATTE,MEF,MIFF,MKV,MNG,MONO,MOV,MP4,MPC,MPG,MRW,MSL,MSVG,MTV,MVG,NEF,NRW,NULL,ORF,OTB,OTF,PAL,PALM,PAM,PANGO,PATTERN,PBM,PCD,PCDS,PCL,PCT,PCX,PDB,PDF,PDFA,PEF,PES,PFA,PFB,PFM,PGM,PGX,PICON,PICT,PIX,PJPEG,PLASMA,PNG,PNG00,PNG24,PNG32,PNG48,PNG64,PNG8,PNM,POCKETMOD,PPM,PREVIEW,PS,PS2,PS3,PSB,PSD,PTIF,PWP,RADIAL-GRADIENT,RAF,RAS,RAW,RGB,RGBA,RGBO,RGF,RLA,RLE,RMF,RW2,SCR,SCT,SFW,SGI,SHTML,SIX,SIXEL,SPARSE-COLOR,SR2,SRF,STEGANO,SUN,SVG,SVGZ,TEXT,TGA,THUMBNAIL,TIFF,TIFF64,TILE,TIM,TTC,TTF,TXT,UBRL,UBRL6,UIL,UYVY,VDA,VICAR,VID,VIDEO,VIFF,VIPS,VST,WBMP,WEBM,WEBP,WMF,WMV,WMZ,WPG,X,X3F,XBM,XC,XCF,XPM,XPS,XV,XWD,YCbCr,YCbCrA,YUV
    ewww_image_optimizer_find_nix_binary()
    ewww_image_optimizer_tool_found()
    testing case: n at /usr/bin/nice
    /usr/bin/nice: 0
    nice found
    1374 images have been optimized
    automatic compression enabled
    remove metadata: on
    jpg level: 10
    png level: 0
    gif level: 0
    pdf level: 0
    svg level: 0
    bulk delay:
    backup mode: off
    cloudinary upload: off
    ExactDN enabled: off
    ExactDN all the things: on
    ExactDN lossy: 1
    ExactDN resize existing: off
    ExactDN attachment queries: on
    Easy IO exclusions:
    
    add missing dimensions: off
    lazy load: on
    ewwwio_other_lazy_detected()
    LL autoscale: on
    LQIP: off
    S(VG)IIP: on
    external CSS background (all things):
    LL exclusions:
    
    optipng level: 2
    pngout disabled: yes
    pngout level: 2
    svgcleaner disabled: yes
    ewww_image_optimizer_jpg_quality()
    configured quality: 82
    ewww_image_optimizer_jpg_quality()
    effective quality: 82
    ewww_image_optimizer_webp_quality()
    webp quality: 50
    effective WebP quality: 50
    parallel optimization: off
    background optimization: on
    scheduled optimization: off
    include media library: off
    include originals: off
    folders to optimize:
    
    folders to ignore:
    
    skip images smaller than: bytes
    skip PNG images larger than: bytes
    exclude originals from lossy: off
    exclude originals from metadata removal: off
    use system binaries: no
    resize detection: off
    max media dimensions: 0 x 0
    max other dimensions: x
    resize existing images: on
    resize existing (non-media) images: off
    ewww_image_optimizer_get_image_sizes()
    sizes: thumbnail
    medium
    medium_large
    large
    1536x1536
    2048x2048
    epcl_admin_thumb
    epcl_classic_post
    epcl_single_standard
    epcl_single_related
    epcl_single_content
    epcl_page_header
    epcl_slider
    epcl_widget_thumb
    epcl_large
    Array
    (
    [thumbnail] => Array
    (
    [width] => 150
    [height] => 150
    [crop] => 1
    )
    [medium] => Array
    (
    [width] => 300
    [height] => 300
    [crop] =>
    )
    [medium_large] => Array
    (
    [width] => 768
    [height] => 9999
    [crop] =>
    )
    [large] => Array
    (
    [width] => 1024
    [height] => 1024
    [crop] =>
    )
    [1536x1536] => Array
    (
    [width] => 1536
    [height] => 1536
    [crop] =>
    )
    [2048x2048] => Array
    (
    [width] => 2048
    [height] => 2048
    [crop] =>
    )
    [epcl_admin_thumb] => Array
    (
    [width] => 100
    [height] => 100
    [crop] =>
    )
    [epcl_classic_post] => Array
    (
    [width] => 950
    [height] => 500
    [crop] => 1
    )
    [epcl_single_standard] => Array
    (
    [width] => 1200
    [height] => 500
    [crop] => 1
    )
    [epcl_single_related] => Array
    (
    [width] => 600
    [height] => 550
    [crop] => 1
    )
    [epcl_single_content] => Array
    (
    [width] => 700
    [height] => 450
    [crop] =>
    )
    [epcl_page_header] => Array
    (
    [width] => 1950
    [height] => 600
    [crop] => 1
    )
    [epcl_slider] => Array
    (
    [width] => 1600
    [height] => 450
    [crop] => 1
    )
    [epcl_widget_thumb] => Array
    (
    [width] => 120
    [height] => 120
    [crop] => 1
    )
    [epcl_large] => Array
    (
    [width] => 1600
    [height] => 1200
    [crop] =>
    )
    [pdf-full] => Array
    (
    [width] => 99999
    [height] => 99999
    [crop] =>
    )
    )
    
    disabled resizes:
    thumbnail: optimization=+ creation=+
    medium: optimization=+ creation=+
    medium_large: optimization=+ creation=+
    large: optimization=+ creation=+
    1536x1536: optimization=+ creation=+
    2048x2048: optimization=+ creation=+
    epcl_admin_thumb: optimization=+ creation=+
    epcl_classic_post: optimization=+ creation=+
    epcl_single_standard: optimization=+ creation=+
    epcl_single_related: optimization=+ creation=+
    epcl_single_content: optimization=+ creation=+
    epcl_page_header: optimization=+ creation=+
    epcl_slider: optimization=+ creation=+
    epcl_widget_thumb: optimization=+ creation=+
    epcl_large: optimization=+ creation=+
    pdf-full: optimization=+ creation=+
    delete originals: off
    jpg2png: off
    png2jpg: off
    gif2png: off
    png2jpg fill:
    ewww_image_optimizer_jpg_background()
    webp conversion: on
    js webp rewriting: off
    picture webp rewriting: off
    WebP Rewrite exclusions:
    
    webp paths:
    
    forced webp: on
    forced gif2webp: off
    enable help beacon: no
    origin (SERVER_ADDR): 116.204.183.124
    EIO_Base::content_url()
    upload_url: https://herbist.live/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://herbist.live/wp-content/ewww/
    plugin (resource) content_dir: /home/herbist/web/herbist.live/public_html/wp-content/ewww/
    home url: https://herbist.live/
    relative home url: //herbist.live/
    home domain: herbist.live
    site/upload url: https://herbist.live
    site/upload domain: herbist.live
    checking 116.204.183.124 from gethostbyname
    not a Cloudflare host: 116.204.183.124
    PHP module: fpm-fcgi
    possibly missing mod_rewrite
    possibly missing mod_headers
    ewww_image_optimizer_test_webp_mime_error()
    webp mime check failed: 89504e
    ewww_image_optimizer_webp_rewrite_verify()
    EIO_Base::content_url()
    upload_url: https://herbist.live/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://herbist.live/wp-content/ewww/
    plugin (resource) content_dir: /home/herbist/web/herbist.live/public_html/wp-content/ewww/
    home url: https://herbist.live/
    relative home url: //herbist.live/
    home domain: herbist.live
    site/upload url: https://herbist.live
    site/upload domain: herbist.live
    checking 116.204.183.124 from gethostbyname
    not a Cloudflare host: 116.204.183.124
    ewww_image_optimizer_htaccess_path()
    using /home/herbist/web/herbist.live/public_html/.htaccess
    current rules:
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{REQUEST_FILENAME} (.*)\.(jpe?g|png|gif)$
    RewriteCond %{REQUEST_FILENAME}.webp -f
    RewriteCond %{QUERY_STRING} !type=original
    RewriteRule (.+)\.(jpe?g|png|gif)$ %{REQUEST_URI}.webp [T=image/webp,L]
    
    Header append Vary Accept
    
    AddType image/webp .webp
    all good
    webp .htaccess rewriting enabled
    max_execution_time: 30
    ewww_image_optimizer_stl_check()
    disable_functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
    detected memory limit is: 268435456

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Based on that error, it sounds like there is another cache in the pipeline that doesn’t support varying the content. The server-based rules work without changing the URL, so if the content can’t be varied properly, such caches will cause issues for non-WebP browsers.
    At any rate, I can’t view your site, but if you want me to take a look when you have it running again, let me know.

    I also have the same issue, although browsers do show the Webp image.

    ewww_image_optimizer_test_webp_mime_error()
    webp (real-world) verification succeeded
    png mime check failed: 524946

    The content of the test request I see in the debugger starts with: RIFF? WEBPVP8L

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WebP rules verified, but self-test failed: WebP response failed mime-type test.’ is closed to new replies.