Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Postby GreenMamba » 30. April 2023 14:05

Hi Folks - I cannot get IMAGICK to load on the following fresh XAMPP and WordPress install. I hope someone can help:

The WordPress Site Health error message is: "The optional module, imagick, is not installed, or has been disabled."

Imagick is not listed by phpinfo.php

php -version reports:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20220829
These options need to match in Unknown on line 0


Windows 11 X64 22H2 (all updates installed)
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.32.31938 installed (also x86 v14.32.31322) - both latest
XAMPP 8.2.4 / PHP 8.2.4
Thread Safety: enabled (as reported by phpinfo.php)
Compiler: Visual C++ 2019 (as reported by phpinfo.php)
WordPress 6.2

ImageMagick-7.1.1-8-Q16-HDRI-x64-dll.exe (latest) has been installed and tests ok with the following command line tests:
a) magick logo: logo.gif
b) magick identify logo.gif
c) magick logo.gif win:

php_imagick-3.7.0-8.1-ts-vs16-x64.zip files (latest) have been copied as follows:
a) php_imagick.dll file into c:\xampp\php\ext
b) CORE_*.dll and IM_MOD_*.dll to c:\xampp\apache\bin
I note that the most recent version from https://pecl.php.net/package/imagick/3.7.0/windows is only PHP 8.1 (there is no PHP 8.2 version)

"extension=php_imagick.dll" inserted in c:\xampp\php\php.ini
c:\xampp\apache\bin added to the PATH
Rebooted
Imagick dos not load and the errors listed above are displayed.

Please can someone help understand what the cause is, and how to solve this. I suspect it has something to be the module mismatch but I have no further idea how to get Imagick working on XAMPP 8.2.4.

Help would be much appreciated.
Thanks
GreenMamba
 
Posts: 4
Joined: 30. April 2023 13:15
XAMPP version: Probably latest
Operating System: Windows latest

Re: Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Postby Altrea » 30. April 2023 16:24

GreenMamba wrote:php_imagick-3.7.0-8.1-ts-vs16-x64.zip

This is compiled against PHP 8.1 x64 TS VS16, you would need this module for PHP 8.2
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Postby GreenMamba » 30. April 2023 17:16

Thanks, I'm starting to understand the dependencies... Since there isn't a php_imagick module for PHP 8.2, is the only way to get imagick working to revert to PHP 8.1 on my WordPress site?
I read at https://windows.php.net/ that PECL DLLs for PHP 8.1 were the last released.
GreenMamba
 
Posts: 4
Joined: 30. April 2023 13:15
XAMPP version: Probably latest
Operating System: Windows latest

Re: Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Postby Altrea » 30. April 2023 17:37

Generally speaking it depends on your own skills.
e.g. You could try to compile this PECL extension by yourself
or try to find a third party binary for this specific PHP version.
But yes, the easiest way would be to switch back to PHP 8.1
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Imagick won't load on XAMPP 8.2.4 / WordPress 6.2

Postby GreenMamba » 08. May 2023 08:30

Thanks, I wouldn't know where to find a trustworthy 3rd party binary, so I'll try switching back to PHP 8.1 on my Prod and Dev environments. Good suggestion.
GreenMamba
 
Posts: 4
Joined: 30. April 2023 13:15
XAMPP version: Probably latest
Operating System: Windows latest


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 213 guests