Author Topic: How to update Imagick?  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to update Imagick?
« on: September 02, 2024, 08:22:08 PM »
Hello people!

I have this error on my CWP, how I can update it?

Quote
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

Thank you so much!

Offline
**
Re: How to update Imagick?
« Reply #1 on: September 03, 2024, 10:12:42 AM »
Try to update ImageMagick using:

(for centos-8, almalinux-8/9, rockylinux-8/9)
Code: [Select]
dnf update ImageMagick
In case you use older OS (Centos-6/7, etc) then most likely you need to recompile ImageMagick manually.
« Last Edit: September 03, 2024, 10:14:36 AM by cyberspace »

Offline
*
Re: How to update Imagick?
« Reply #2 on: September 06, 2024, 10:14:48 AM »
hello,

we are also seeing that the error
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


dnf update ImageMagick
wont fix.
In our case we also see that prestashop stop working as it should ie: combinations and cart arenn't working as should be.


Any idea why  imagick comes with this problem and how to solve?

Offline
*****
Re: How to update Imagick?
« Reply #3 on: September 06, 2024, 11:38:48 AM »
On some systems, using dnf to remove & install and rebuilding PHP fixes the problem.

But doesn't seem 100%.

Offline
**
Re: How to update Imagick?
« Reply #4 on: September 06, 2024, 07:08:27 PM »
Then try to recompile imagick manually. Follow the steps listed bellow:

Code: [Select]
cd /usr/local/src/
wget https://pecl.php.net/get/imagick-3.7.0.tgz
tar -xvzf imagick-3.7.0.tgz
cd imagick*
/opt/alt/phpXX/usr/bin/phpize
./configure --with-php-config=/opt/alt/phpXX/usr/bin/php-config
make
make install

Make sure to replace "phpXX" with path to the correct php version.
« Last Edit: September 06, 2024, 07:31:30 PM by cyberspace »