Call to undefined function curl_init()

271 views
Skip to first unread message

Sabri Karagönen

unread,
Jan 17, 2016, 6:04:23 PM1/17/16
to AdWords API Forum
Hi,

I upgraded my PHP version to 7.
Even Curl is installed and working properly, I get Curl error when I try to get data from AdWords API:

FatalThrowableError in CurlUtils.php line 108:Fatal error: Call to undefined function curl_init()

  1. in CurlUtils.php line 108
  2. at CurlUtils->Init('https://accounts.google.com/o/oauth2/token') in CurlUtils.php line 52
  3. at CurlUtils->CreateSession('https://accounts.google.com/o/oauth2/token') in SimpleOAuth2Handler.php line 108
You can see last 3 steps of my error log. 

How can I fix it? What am I doing wrong?
Thanks

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jan 20, 2016, 2:03:49 AM1/20/16
to AdWords API Forum
Hi Sabri,

Are you sure you've set up the curl module correctly?
From the error message, it seems you haven't done properly.
Do you have curl appearing in the result from php --info?

Can you use curl merely in a simple PHP file?

Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages