WordPress
Diagnose a duplicate PHP imagick extension warning
A duplicate warning can mean that more than one loaded configuration enables the extension. Start with the PHP configuration used by the affected application.

A PHP startup warning that imagick is already loaded often means the same extension is enabled in more than one configuration file. The relevant configuration is the one used by the failing process. A command-line PHP binary and the website’s PHP runtime can read different settings.
Find the relevant check
Identify the runtime
Record where the warning appears and which action triggers it. On managed or shared hosting, give the host the warning, timestamp and affected application. Administrative commands intended for a private server are inappropriate on an account you do not administer.
Find the duplicate configuration
An authorised operator can use php --ini to identify the files read by the CLI binary. For a web-server or PHP-FPM process, inspect that runtime’s own configuration through approved private administration tools. PHP can scan additional ini directories after the main file. A package-managed entry and a manual extension declaration can therefore both be active.
Make one reversible change
Back up the affected configuration and identify which declaration the package manager owns. Remove only the redundant declaration and reload the relevant service using its documented procedure. Check that the warning has gone and that the extension still works in the affected runtime. Verify a representative image operation in staging. The PHP 7.4 paths used in the original tutorial were specific to that environment.



