Undefined curl_init() Function Errors

Problem

This information only applies to self-hosted WHMCS installations. WHMCS Cloud handles automation and system cron configuration for you automatically.

You see the following error while attempting to run the system cron:

Error: Call to undefined function curl_init()

Cause

This error indicates that the system is terminating the cron job because the cURL extension is missing. To check this, run the following command:

php -m

A similar error may also occur if the curl_init function is disabled in your PHP configuration.

Solution

Make certain that the cURL extension is installed and that the curl_init function is enabled.

Last modified: 2025 October 17