Imagick Issues on new install

~]# php -v
PHP Warning:  Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP 8.2.22 (cli) (built: Aug  7 2024 13:02:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.22, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v13.3.1, Copyright (c) 2002-2024, by ionCube Ltd.
    with Zend OPcache v8.2.22, Copyright (c), by Zend Technologies
~]# dnf list installed | grep -i image
ImageMagick.x86_64                                 6.9.13.14-1.el8                                   @epel                 
ImageMagick-c++.x86_64                             6.9.13.14-1.el8                                   @epel                 
ImageMagick-c++-devel.x86_64                       6.9.13.14-1.el8                                   @epel                 
ImageMagick-devel.x86_64                           6.9.13.14-1.el8                                   @epel                 
ImageMagick-libs.x86_64                            6.9.13.14-1.el8                                   @epel                 

Rebuild PHP extensions. upcp -sbf php/install-extensions

This will be a problem going forward with newer imagick extensions whenever Red Hat releases a security update until worked around.

~]# upcp -sbf php/build-extensions

PLAY [localhost] *********************************************************************************************************************************************************************************************************************

PLAY RECAP ***************************************************************************************************************************************************************************************************************************
localhost                  : ok=6    changed=0    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0   
~]# php -v
PHP Warning:  Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP 8.2.22 (cli) (built: Aug  7 2024 13:02:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.22, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v13.3.1, Copyright (c) 2002-2024, by ionCube Ltd.
    with Zend OPcache v8.2.22, Copyright (c), by Zend Technologies

Correction: upcp -sbf php/install-extensions

1 Like

Does this apply to multiphp as well?

Mine is multi php so yes.

This was fixed in 3.2.45.