Affiliate Impact Community

Website Design, Programming & Webhosting => Website Design & Programming => Topic started by: christogonus on May 29, 2019, 03:00:48 PM

Title: Call to undefined function League\OAuth2\Client\Provider\random_byte() : SOLVED
Post by: christogonus on May 29, 2019, 03:00:48 PM
Hi,

I was doing an integration recently for a client's application to aweber using OAuth2 and I ran into the error stated below

Code: [Select]
Fatal error: Call to undefined function League\OAuth2\Client\Provider\random_bytes() in /path/to/admin/aweber/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 305
It took a while to figure this out, but it was simply fixed by upgrading PHP version from 5.6 to PHP7.2

I hope this helps save someone's time :)

Regards.