Platform
Docs
Solutions
ContactLog In

Error: call to undefined function sendgrid curl_init

What's Causing This Error

cURL is a PHP extension that allows you to send data from a remote server. You may encounter a fatal PHP error indicating an undefined function curl init if the extension is not installed or configured on your web server.

Here's How To Resolve It

PHP is unable to locate the curl init function because the extension defining it has not been loaded. The PHP script will be terminated due to a fatal error. To prevent this type of error, make sure the cURL module is loaded before attempting to use it. Also, make sure curl is turned on. Run the following piece of code to see if cURL is enabled in your PHP system.

1 2 3 <?php //Call the phpinfo function. phpinfo();

The phpinfo function returns information about PHP's configurations. If a CTRL + F search for "curl" yields no results, your web server may not have loaded the curl extension. If you spot it, look under the cURL heading for the following line: cURL support: enabled.

Other Common SendGrid Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Platform

Users

Content

Channels

Sending

Workflows

Preferences

Inbox

Workspaces

Observability

API Status

Changelog

© 2024 Courier. All rights reserved.