• Hello.

    Wanted to make you aware of something odd with your plugin.

    Overnight on 3 of our sites PHP logged fatal errors with Better images.

    • No server or site updates were performed at this time
    • No changes to the site occurred during this time

    I have had to deactivate the plugin to prevent the fatal errors from affecting the websites.

    The 3 error are as follows (if you need the stack trace too, just LMK).

    thrown in /chroot/home/a6487e66/bdb6c0c77f.nxcli.io/html/wp-content/plugins/better-images/better-images.php on line 632 [05-Mar-2024 07:46:38 UTC] PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `PAM’ @ error/constitute.c/ReadImage/616 in /chroot/home/a6487e66/bdb6c0c77f.nxcli.io/html/wp-content/plugins/better-images/better-images.php:632</p> <p class=””>[05-Mar-2024 03:52:13 UTC] PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `JPEG’ @ error/constitute.c/ReadImage/581 in /chroot/home/aa2d5efa/38d2470e29.nxcli.io/html/wp-content/plugins/better-images/better-images.php:632

    [05-Mar-2024 14:56:56 UTC] PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `PNG’ @ error/constitute.c/ReadImage/581 in /chroot/home/acd3e294/97f68d9fdd.nxcli.net/html/wp-content/plugins/better-images/better-images.php:632

    Do you have any idea what would be the cause of this and how to fix it?

Viewing 1 replies (of 1 total)
  • Plugin Author svunz

    (@svunz)

    Hi @nauran81.

    First of all, I apologize for the late response and sorry to hear that the plugin is not working properly for you. Also, thank you for using the plugin.

    The error you’re encountering is when wordpress is trying to make new intermediate sizes for an image (hook: image_make_intermediate_size) and the plugin sees that you have Imagick installed via the check (extension_loaded( ‘imagick’ )) but it cannot find any delegate to decode the image.

    In this context, a decode delegate refers to the library or module that Imagick uses to interpret and process different image file formats like JPEG and PNG.

    You can check your installation by creating a simple PHP page with the following content: <?php echo phpinfo(INFO_MODULES); ?>

    1. Look under the section for Imagick to see which formats are supported.
    2. Make sure that the underlying image libraries such as libjpeg (for JPEG) and libpng (for PNG) are installed on your server. These libraries are necessary for Imagick to handle these formats.

    This seems most likely to be a server issue rather an issue with the plugin itself. Could it be that some other plugins are doing something fishy at the time or that the host provider is doing some server maintenance that is causing the glitch?

    If you provide a larger stack trace we can take a look and see if we can find something.

    Best regards / Mikael

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Errors – Uncaught ImagickException: no decode delegate for this image form’ is closed to new replies.