• Resolved Argument

    (@argument)


    On startup, I see this error: “Php GD Extension or libavif is not installed/enabled. Please contact the server admin!” I have Ubuntu 22.04 installed on my server. I understand that this system comes with the libavif-dev package. That is, the package is installed, but the plugin doesn’t see it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Pijush Gupta

    (@pijush_gupta)

    Hi,
    Thanks for the question. Can you please run a PHP script on the same server with the following code and share the output here?

    ‘ print_r(gd_info()); ‘


    So I can have a better understanding of the issue you are currently facing.

    • This reply was modified 1 year, 9 months ago by Pijush Gupta.
    Plugin Author Pijush Gupta

    (@pijush_gupta)

    Now the plugin can work without GD or libavif if ImageMagick ver 7.0.25 is present in the server.

    Thread Starter Argument

    (@argument)

    @pijush_gupta

    Thank you very much! I will try to install ImageMagick.
    However, after updating the plugin I encountered this error. I had to remove the plugin for a while until the critical error is resolved.

    WordPress 6.1.1
    Problem plugin: AVIF Express (version 2023.02.26)
    Версия PHP 8.1.14
    
    Details of the error
    
    ===================================
    
    Error E_ERROR on the line 21 of file /wp-content/plugins/avif-express/core/app/common/Image.php. Message of error: Uncaught Error: Undefined constant "Avife\common\AVIFE_IMAGICK_VER" in /wp-content/plugins/avif-express/core/app/common/Image.php:21
    
    Stack trace:
    
    #0 /wp-content/plugins/avif-express/core/app/app.php(38): Avife\common\Image::activate()
    
    #1 /wp-content/plugins/avif-express/avif-express.php(73): require_once('...')
    
    #2 /wp-includes/class-wp-hook.php(308): initiate_plugin()
    
    #3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    #4 /wp-includes/plugin.php(517): WP_Hook->do_action()
    
    #5 /wp-settings.php(480): do_action()
    
    #6 /wp-config.php(100): require_once('...')
    
    #7 /wp-load.php(50): require_once('...')
    
    #8 /wp-admin/admin.php(34): require_once('...')
    
    #9 {main}
    
    ? thrown
    Thread Starter Argument

    (@argument)

    @pijush_gupta

    I installed ImageMagick version 7.1.0-63 on my server. I tried to install the Avif express plugin again, but a critical error occurs immediately after activation.

    Plugin Author Pijush Gupta

    (@pijush_gupta)

    Hi, Thanks for the update. It’s the same issue, you pointed out earlier. Updated the code, please wait for 1-2 hrs. The code will be updated ASAP after I complete the QA checks.

    Also added your issue in the Change log.

    Sorry for the inconvenience.

    • This reply was modified 1 year, 9 months ago by Pijush Gupta.

    Problem solved?

    Plugin Author Pijush Gupta

    (@pijush_gupta)

    Hi Pressport,
    Yes, it now use Image Magic ver >= 7.0.25 as a fallback for libavif. Many users/servers facing the same issue even without this plugin. Managing server-related stuff is beyond the scope of this plugin.

    The plugin just checks if the image magic version is above 7.0.25 or libavif is installed or not via Php script.

    If you have any specific issue, please mention it. So I can have total exposure to the issue.

    Thanks for your comment. Happy to help

    Regards,
    Pijush G.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin don’t see libavif-dev on ubuntu 22.04’ is closed to new replies.