- Saved searches
- Use saved searches to filter your results more quickly
- PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded #376
- PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded #376
- Comments
- Solve PHP Warning: Module ‘imagick’ is already loaded
- Step #1: Find your php.ini location
- Step #2: Find and comment the imagick extension line
- Take your skills to the next level ⚡️
- About
- Search
- Tags
- Module imagick already loaded in unknown on line 0 – Quick Fix!
- Why does the module Imagick show an already loaded error?
- How we fix the error ‘module Imagick already loaded in Unknown on line 0’?
- Conclusion
- PREVENT YOUR SERVER FROM CRASHING!
- Issue PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
- Предупреждение PHP: модуль ‘imagick’ уже загружен в Unknown в строке 0
- 2 ответа
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded #376
PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded #376
Comments
In my hosting at Hostgator I am receiving this error without stopping in the «error_log» file.
The file «error_log» containing this message appears on several random pages.
In addition, I receive the following message every hour, in the standard cpanel email:
Title:
Cron / usr / bin / php -f /home2/delaio86/public_html/utilidadeninja.com/site/wp-cron.php> / dev / null
PHP Warning: Module 'imagick' already loaded in Unknown on line 0 PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
In contact with the Hosting, I was informed that this is an incompatibility of Imagick with versions 73 and 74 of PHP.
The attendant then said that he could not do anything because it is a shared hosting and suggested that I use an outdated version «72» of php.
I said that I would not use an outdated version, for obvious reasons.
I would like your help to try to stop generating these messages in the log for all my folders without having to outdate my PHP.
I often have to look for the files and delete them one by one, as they never stop growing.
I already tried to insert a .user.ini file containing the line:
imagick.skip_version_check = true
And a php.ini file with the line:
extension = imagick.so
Both, in the root folder of the hosting, the errors continue to appear randomly.
Thanks in advance to anyone who can help.
The text was updated successfully, but these errors were encountered:
Solve PHP Warning: Module ‘imagick’ is already loaded
Posted on Sep 28, 2022
PHP will show the Module “imagick” is already loaded message when you try to load the php_imagick extension more than once.
The full message is as follows:
Many people think this warning comes from their PHP code because the “line 0” part.
But this is actually a PHP configuration issue, so you can’t solve this warning by looking at your source code.
Here are the steps required to fix the issue:
Step #1: Find your php.ini location
You can find the location of your php.ini file by calling the phpinfo() function as shown below:
You need to open the file location in your Explorer window.
Step #2: Find and comment the imagick extension line
Once you open the php.ini file, search if any of the following lines exist:
You need to make sure that only one of the lines above is active and comment the rest.
For example, if you already have imagick.so , then you need to comment the php_imagick.dll line as follows:
This way, the imagick extension won’t be loaded twice.
I recommend you comment the first line of imagick that you found, then restart your Apache server.
This time, the warning message should disappear.
And that’s how you solve the PHP Warning: Module “imagick” is already loaded in Unknown on line 0.
Take your skills to the next level ⚡️
I’m sending out an occasional email with the latest tutorials on programming, web development, and statistics. Drop your email in the box below and I’ll send new stuff straight into your inbox!
About
Hello! This website is dedicated to help you learn tech and data science skills with its step-by-step, beginner-friendly tutorials.
Learn statistics, JavaScript and other programming languages using clear examples written for people.
Search
Type the keyword below and hit enter
Tags
Click to see all tutorials tagged with:
Module imagick already loaded in unknown on line 0 – Quick Fix!
Imagick is one of the most common PHP extensions that we use for creating and modifying any image using the ImageMagick library.
Here at Bobcares, we often receive requests regarding Imagick as a part of our Server Management Services.
Today, let’s see how our Support Engineers fix this IMagick error.
Why does the module Imagick show an already loaded error?
Many of our customers enable IMagick for modifying the images. However, they run into errors based on Imagick due to different reasons.
One of those errors is the ‘module Imagick already loaded in Unknown on line 0‘.
This error mainly occurs due to duplicate entry in the configuration file. And it specifies that the Imagick is loading twice in the server.
The error message appears as:
PHP Warning: Module imagick already loaded in Unknown on line 0.
How we fix the error ‘module Imagick already loaded in Unknown on line 0’?
Till now we’ve discussed the error message. Now, let’s discuss how our Support Engineers fix this error.
Recently, one of our customers approached us with an error relating to IMagick.
The exact error appeared as:
Conclusion
In short, the Imagick module already loaded error occurs when the Imagick PHP extension loads more than once. Today, we saw how our Support Engineers fix this error for our customers.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
Issue PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
I’m very happy with Plesk and even switched over completely to it on all sites but unfortunately if errors arise I’m a total noob when it comes to Linux.
So I checked my spam folder today and had 122 messages send through the server stating:
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
Non stop it keeps sending me this.
Googled it and still have no clue on how to fix it as I need a step by step answer.
I’m on the latest Plesk Onyx and OS=Ubuntu 16.04.6 LTS.
Cron [email protected]> [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean
And I read I had to put php —ini in the console and this was the result:
PHP Warning: Module 'imagick' already loaded in Unknown on line 0 Configuration File (php.ini) Path: /etc/php/7.0/cli Loaded Configuration File: /etc/php/7.0/cli/php.ini Scan for additional .ini files in: /etc/php/7.0/cli/conf.d Additional .ini files parsed: /etc/php/7.0/cli/conf.d/00-ioncube-loader-7.0.ini, /etc/php/7.0/cli/conf.d/10-mysqlnd.ini, /etc/php/7.0/cli/conf.d/10-opcache.ini, /etc/php/7.0/cli/conf.d/10-pdo.ini, /etc/php/7.0/cli/conf.d/15-xml.ini, /etc/php/7.0/cli/conf.d/20-calendar.ini, /etc/php/7.0/cli/conf.d/20-ctype.ini, /etc/php/7.0/cli/conf.d/20-curl.ini, /etc/php/7.0/cli/conf.d/20-dom.ini, /etc/php/7.0/cli/conf.d/20-exif.ini, /etc/php/7.0/cli/conf.d/20-fileinfo.ini, /etc/php/7.0/cli/conf.d/20-ftp.ini, /etc/php/7.0/cli/conf.d/20-gd.ini, /etc/php/7.0/cli/conf.d/20-gettext.ini, /etc/php/7.0/cli/conf.d/20-iconv.ini, /etc/php/7.0/cli/conf.d/20-imagick.ini, /etc/php/7.0/cli/conf.d/20-imap.ini, /etc/php/7.0/cli/conf.d/20-json.ini, /etc/php/7.0/cli/conf.d/20-mbstring.ini, /etc/php/7.0/cli/conf.d/20-mysqli.ini, /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini, /etc/php/7.0/cli/conf.d/20-pdo_sqlite.ini, /etc/php/7.0/cli/conf.d/20-phar.ini, /etc/php/7.0/cli/conf.d/20-posix.ini, /etc/php/7.0/cli/conf.d/20-readline.ini, /etc/php/7.0/cli/conf.d/20-shmop.ini, /etc/php/7.0/cli/conf.d/20-simplexml.ini, /etc/php/7.0/cli/conf.d/20-sockets.ini, /etc/php/7.0/cli/conf.d/20-sqlite3.ini, /etc/php/7.0/cli/conf.d/20-sysvmsg.ini, /etc/php/7.0/cli/conf.d/20-sysvsem.ini, /etc/php/7.0/cli/conf.d/20-sysvshm.ini, /etc/php/7.0/cli/conf.d/20-tokenizer.ini, /etc/php/7.0/cli/conf.d/20-wddx.ini, /etc/php/7.0/cli/conf.d/20-xmlreader.ini, /etc/php/7.0/cli/conf.d/20-xmlwriter.ini, /etc/php/7.0/cli/conf.d/20-xsl.ini, /etc/php/7.0/cli/conf.d/20-zip.ini, /etc/php/7.0/cli/conf.d/zend_extensions_psa.ini
So as I’m running php 7.3 I hoped when I uninstalled php 7.0 in plesk it would go away but unfortunately it didn’t.
Someone willing to guide me how to fix this?
Предупреждение PHP: модуль ‘imagick’ уже загружен в Unknown в строке 0
Теперь каждый раз, когда я запускаю файл, я получаю эту строку, добавленную PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0 в свой журнал ошибок. Любое предложение пожалуйста?
Спасибо CFreak, но это связано с этими тремя строками кода где-то. Вы видите здесь какие-либо проблемы?
Проблема не в этих трех строчках. Проблема в том, что библиотека imagick загружается более одного раза. Проблема либо в php.ini либо в dl где-то, который загружает библиотеку.
2 ответа
Просто для справки, так как это может помочь другим, кто находится на виртуальном хостинге (cPanel).
У меня была ошибка на виртуальном хостинге php7.2: модуль ‘imagick’ уже загружен в Unknown в строке 0
В начале хостинг-провайдер сказал, что это моя плохая конфигурация (работает Yii2.16). Но после того, как я показал им, что весь Интернет связал эту проблему с конфигурацией сервера -they, меня начали слушать. После того, как я доказал, что на php7.1 не было ошибок, они начали искать ошибку.
Они подтвердили, что обновили (до ошибки) 7.2 до новой версии (7.2.14), что исправило некоторые другие ошибки, но ошибка Imagick начала появляться. Теперь они также нашли решение этой проблемы. Как они сказали мне, ошибка была в конфигурации модулей PERL или пакета PEAR, но они не сообщили мне реальную проблему.
Решение, если вы находитесь на виртуальном хостинге — поговорите с вашим провайдером и поэкспериментируйте с версиями PHP (если вы можете изменить их).