PHP cannot find the enabled extension although the extension is configured in the ini file and the dll file exists
P粉617237727
P粉617237727 2023-09-11 11:28:51
0
1
549

I keep getting this error: Warning PHP Warning: PHP cannot load dynamic library 'imagick' on startup (tried: C:\php\ext\imagick (specified module not found), C:\ php\ext\php_imagick.dll (specified module not found)) is located at line 0 of an unknown location.

I'm using php 8.1.20. I got the ddl file for imagick from: https://pecl.php.net/package/imagick/3.7.0/windows exists in my ext folder and I have added the following lines in my ini file: extension=imagick

Why do I keep getting this error? Does anyone know what the problem might be?

I've double checked the path to the ddl file and that's not the problem. I've double checked that the correct php ini file is being used.

P粉617237727
P粉617237727

reply all(1)
P粉276064178

I am using the wrong version of php_imagick.dll. This dll file is for php version 8.1.2, and I am using php version 8.1.20. I downgraded to php 8.1.2 and the problem has been resolved.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!