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) =

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 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.

Terry Tice

Terry Tice
Campaign Monitor

Join 150,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free