简体   繁体   中英

Google Adwords API Refresh Token Error

When trying to generate a refresh token for the Adwords APi I get the following error.

PHP Fatal error:  Call to undefined function GuzzleHttp\Handler\curl_reset() in /var/www/vhosts/instalmentlending.com/httpdocs/wp-content/plugins/sfprepo/inc/requests/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 78

This is not something I would have expected to see. I'm guessing its a Curl issue but I user curl on the server already so I know it work's.

Any ideas community?

According to this post it is a PHP version issue: Fatal error curl_reset() undefined why?

They suggest upgrading PHP on the server or remove the curl_reset calls.

So I fixed this by forcing php in SSH to run at 7.

It turns out that via SSH my php version was dropped to the vendor prefixed 5.4.

For my server /opt/plesk/php/7.0/bin/php is what worked.

If you are not using plesk just check the docs to find your php version locations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM