I have read similar issues but I believe that the solution to mine might be new:
I have recently upgraded my Windows 10 to PHP 8.2.1, and today I added extension=ext/php_imagick
to php.ini, and when running php -v
I get the following error:
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
I have tried downgrading to PHP 8.1, but the module API version was still more recent, plus I have been downloading Imagick from sources that said it was compatible with PHP 8.2...
I have tried installing the latest version of Imagick from various sources, following this guide, but I keep getting the error.
Thinking that there might not be yet an official packaged version of Imagick compiled with the latest module API, I have been following this guide to compile Imagick by myself, I have put the bin folder URL into the Path, relaunched the command prompt and this time received the error:
the procedure entry point MagickSetSeed could not be located
That was my whole day, I am out of ideas...
Module compiled with module API=20190902
andPHP compiled with module API=20200930
– Burt