The cURL library is not installed

The PHP cURL extension is enabled, and almost all cURL functions are enabled (except for curl_multi_exec, but very few websites need that).

Looking at the particular bit of code, it looks like it does this:

if (!(extension_loaded('curl') and (empty($sys_info['disable_functions']) or (!empty($sys_info['disable_functions']) and !preg_grep('/^curl\_/', $sys_info['disable_functions']))))) {
    exit('The cURL library is not installed or its underlying functions are blocked');
}

This code appears to check if any cURL function is disabled, and will say cURL is disabled if it is. Even if the particular cURL function is not used at all.

I would chalk this up as a bug in the software, because it refuses to run because functions are disabled that it probably doesn’t use at all.

Please consider contacting the developer about this that they should improve their check to only check for the disabled functions they actually need. You can also work around this issue by manually editing the source code to remove these three lines from the file includes/ini.php.

4 Likes