Problem still present in LocalWP v6.1.4+5521, only applicable to php 7.4.1 (.16 in my case)
The weird thing is; the error shows a file path to the php_imagick.dll and that file exists. it is present and exists in the correct location.
I also tried a full path to the dll and that does not help.
I changed the php.ini.hbs file to read extension=php_gd2.dll, a file in the same directory as php_imagick.dll, and then I got “module gd already loaded” so I KNOW the config file is correct, PHP knows where to find the modules.
I copied php_imagick.dll to php_i.dll and set that in the php.ini, same error “module not found”
I then copied php_gd2.dll to php_i.dll; “module already loaded”
This confirms that the php.ini.hbs changes are correct and the file path is evaluated without problems; the problem is the DLL file itself.
I then proceeded to download several (read: almost all x64) versions from windows.php.net, all versions of the dll responded the same … except for 2.
The 3.5.0-7.4-nts-vc15-x64 and 3.4.4-7.4-nts-vc15-x64 versions of the dll do not produce the error and load perfectly fine.
So there is a solution; https://windows.php.net/downloads/pecl/releases/imagick/3.5.0/php_imagick-3.5.0-7.4-nts-vc15-x64.zip (or https://windows.php.net/downloads/pecl/releases/imagick/3.4.4/php_imagick-3.4.4-7.4-nts-vc15-x64.zip)
I cannot tell if this is the solution. I don’t know what the differences between ‘ts’ and ‘nts’ are, I don’t know why the 3.5.0 nts and 3.4.4 nts versions do work, but the 3.5.1 nts version does not and neither do older versions or ts versions. All I know is; 3.5.0 and 3.4.4 nts versions work, the rest don’t.
R.
(p.s. I typed the URLs by hand, because, two computers, so please forgive typos)