Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded.
AnsweredI'm running a server with AlmaLinux v8 and WHM 122.0.17.
The Apache error log if filling up with the following ImageMagick errors (2 lines every second). My error log is 70MB and full of these warnings:
[24-Sep-2024 09:26:02 UTC] 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
[24-Sep-2024 09:26:02 UTC] 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
[24-Sep-2024 09:26:03 UTC] 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
[24-Sep-2024 09:26:03 UTC] 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
I tried uninstalling and re-installing Imagick from the instruction on this page, but I still get the same error.
ImageMagick does actually function correctly despite these warnings so I suppose we could either a) prevent the errors being logged, or b) solve the actual issue. Any ideas?
-
Hey there! There was a recent Imagick update that caused this issue. You'll just want to reinstall the PECL package using the specific PHP version. For example, if you're using PHP 8.1, you'd run these commands:
/opt/cpanel/ea-php81/root/usr/bin/pecl uninstall imagick
/opt/cpanel/ea-php81/root/usr/bin/pecl install imagickJust repeat that for every PHP version you're using and that should resolve the issue for you.
1 -
That worked, thanks!
0 -
I'm glad that did the trick!
0 -
When I run the install, I get this prompt, which I just leave empty and hit return. The installation then proceeds. Is that ok?
Please provide the prefix of ImageMagick installation [autodetect] :
0 -
jimlongo- correct!
0 -
Hello I have same problem I unistalled imagick and reinstalled but continue same problem
AlmaLinux v8.10.0 STANDARD standardcPanel Version[10-Dec-2024 03:59:07 UTC] PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded.
$ /opt/cpanel/ea-php74/root/usr/bin/pecl uninstall imagick
$ /opt/cpanel/ea-php74/root/usr/bin/pecl install imagick
[10-Dec-2024 03:59:07 UTC] 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
0 -
dexter2323 - if the reinstall isn't fixing the issue we would likely need to see a ticket. Could you submit one so this can be investigated?
0
Please sign in to leave a comment.
Comments
7 comments