Page 1 of 1

Imagick does not work with PHP 7.1

PostPosted: 02. December 2016 18:23
by TomXampp
I've used Imagick successfully with all versions of PHP 7 through 7.0.13. The new version of PHP (7.1) issues the following error message:

[02-Dec-2016 16:46:32 UTC] PHP Warning: PHP Startup: imagick: Unable to initialize module Module compiled with module API=20151012
PHP compiled with module API=20160303 These options need to match in Unknown on line 0


Does anyone know a work-around?

Re: Imagick does not work with PHP 7.1

PostPosted: 02. December 2016 21:58
by Nobbie
As the message states, you have to find a php_imagick.dll which match the API module ( API=20160303). As php_imagick.dll is not part of Xampp (you must have it copied somewhere else), its on you to find a proper DLL. I think, instead you should ask Bitnami in order to adapt the Imagick API (i dont know, why they did not and i dont know, how they choose certain APIs).

Re: Imagick does not work with PHP 7.1

PostPosted: 03. December 2016 02:56
by TomXampp
The support for Imagick must have read my post, because an update to their DLLs has now been supplied here:

http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/

...and it now works :-)

Re: Imagick does not work with PHP 7.1

PostPosted: 03. December 2016 13:12
by Nobbie
Anyway, i think it would be easier if Bitnami includes imagick to their package, you should ask them to do so. Otherwise you will be in trouble each time they upgrade the API information.