phpMyAdmin: Ошибки Use of undefined constant CURLOPT... и Use of undefined constant CURLPROTO...

phpMyAdmin: Ошибки Use of undefined constant CURLOPT... и Use of undefined constant CURLPROTO...

Описание и решение проблемы

При использовании веб-приложения phpMyAdmin на свежеустановленной системе, при заходе на страницу экспорта, столкнулся со следующими ошибками:

Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_MAXREDIRS - assumed 'CURLOPT_MAXREDIRS' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_PROTOCOLS - assumed 'CURLOPT_PROTOCOLS' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLPROTO_HTTPS - assumed 'CURLPROTO_HTTPS' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLPROTO_HTTP - assumed 'CURLPROTO_HTTP' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLPROTO_FTP - assumed 'CURLPROTO_FTP' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLPROTO_FTPS - assumed 'CURLPROTO_FTPS' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_SSL_VERIFYHOST - assumed 'CURLOPT_SSL_VERIFYHOST' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_USERAGENT - assumed 'CURLOPT_USERAGENT' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' (this will throw an Error in a future version of PHP)

Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' (this will throw an Error in a future version of PHP)

Как оказалось, в системе не был установлен модуль curl для php. Соответственно, для исправления ошибки достаточно лишь установить данный модуль. Например, в Debian/Ubuntu это делается следующей командой:

apt-get install php-curl
Была ли эта статья Вам полезна?

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Напоминаем Вам, что Ваше сообщение будет опубликовано только после проверки администратором сайта. Обычно это занимает 1-2 рабочих дня.