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)

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 24 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.8 x86_64 + EPEL + remi + remi-php70

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!