Topic: Imagemagick error

Hi folks,

Is anyone seeing an error like this when calling imagemagick from php scripts? The programmers on the system I run say they are seeing this:

"PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1683 but version 1684 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0"

We are running:
ImageMagick-6.7.8.9-13.el7_2.x86_64
ImageMagick-last-libs-6.9.4.4-1.el7.remi.x86_64
php-cli-5.6.22-1.el7.remi.x86_64
php-pecl-imagick-3.4.2-1.el7.remi.5.6.x86_64

If I need to provide any more info, just let me know and I will collect it.

Cheer,
Gervais

Re: Imagemagick error

In /etc/php.d/40-imagick.ini you have

    imagick.skip_version_check=1

So this, warning is not displayed (and compatibility is checked using soname on linux)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Imagemagick error

I was running a php script on the command line on CentOS 7, so it was ignoring the php.d ini files, but your suggestion led me to a quick solution.

Thanks Remi!