PHP Fatal error: Uncaught Error: Call to undefined function curl_init()1 min read
Hi all, this document deals with how to fix the error “PHP Fatal error: Uncaught Error: Call to undefined function curl_init()”.
This is an exception by PHP when it detects the required plugin is missing. Here the missing PHP library is curl.
Step 1: check your PHP version.
Step 2: Now you can see the PHP version is 7.2 using
Step 3: Now install the dependency packages such as gd and ImageMagick
Step 4: choose the package for your version.
Step 5: Now choose the PHP curl package for your PHP version and install it.
Step 6: Install the package.
Step 7: Once the package is installed, restart your web server.