How To Fix: Error: Call to undefined function curl_init()

| Drupal Development | 50 seen

After upgrading from Ubuntu 12 to Ubuntu 16 I discovered an error for Drupal website sending e-mails using Mailsystem + Postmark

here is the error code:

Error: Call to undefined function curl_init() in Mail_Postmark->send() (line 322 of /srv/www/reinisfischer.com/public_html/sites/all/libraries/postmark-php/Postmark.php).

Luckily there is an easy solution, installing missing curl:

sudo apt-get install php-curl

Hope, that helps!

 

Latest articles

Why I Sold Put Options on Lufthansa Stock (LHA) – Earning 14.5% Annualized Yield

Recently, after booking a trip to Ireland with Lufthansa, I found myself taking a closer look at the company's stock.As I commented on LinkedIn:"Another interesting European stock to play with is Lufthansa (LHA). After booking a trip to Ireland with them, I decided to sell some short put options on the stock. As long as it doesn't go belly up,…

Options trading |

Titanic Chaussee Hotel in Berlin

At the start of April 2026, we spent about six nights at Titanic Hotel Berlin (Chausseestraße 30). The trip was primarily work-related—my fiancée attended a conference in the translation industry—but it turned into a relaxed family stay, as I tagged along with our child during the Easter school break.The hotel sits in a convenient part of Berlin…

Germany |