PHP-Warning refesh_token() using OAuth

If I try to refresh the 'access_token' I always get a php warning:

"Warning: array_key_exists() expects parameter 2 to be array, null given in <path>/createsend-php-4.0.2/class/transport.php on line 299"
Same for the lines 303 and 307

The warning happens just after:
"list($new_access_token, $new_expires_in, $new_refresh_token) =
            $wrap->refresh_token();"

Except to this waring everythings seems to work fine: I get a new access_token that I can use without any errors.

terryt terryt, 2 years ago

Hi mash71,

Would you be able to send more of the code to support@campaignmonitor.com? Unfortunately I'm not able to reproduce the warning you are seeing so I'd like to take a closer look at what you are sending through.

Cheers,
Terry Tice


Terry Tice
Campaign Monitor

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free
1-888-533-8098