Version warning: Imagick was compiled against ImageMagick version 1801 but version 1802 is loaded

Hi all,

My nextcloud log is full of these messages:

Version warning: Imagick was compiled against ImageMagick version 1801 but version 1802 is loaded. Imagick will run but may behave surprisingly at Unknown#0

Does anyone have an easy solution for solving the problem of getting the versions to match so the log errors go away?

I install nextcloud and all php components using ‘pkg’ in FreeBSD, and I don’t believe there’s an easy way to roll back to a previous version that I can see with all the dependencies.

Thank you!


Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): FreeBSD 11.3
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0_20,2
PHP version (eg, 7.1): 7.4

Partially answering my own question. Adding this line to the php.ini file stops the message from appearing in the log:

imagick.skip_version_check = 1

However, it doesn’t correct the underlying problem of the mismatched versions.