oauth2-linkedin icon indicating copy to clipboard operation
oauth2-linkedin copied to clipboard

I have error on live server, but when local it's working

Open jeraldpunx opened this issue 5 years ago • 1 comments

I have error, I can't used it. I don't know how to trace this error. I've just composer install then copy all vendor files composer and etc to live server.

Live PHP version: 5.6.18 image

Local PHP version: 7.2.11 image

Code used:

require_once('vendor/autoload.php');
$provider = new League\OAuth2\Client\Provider\LinkedIn([
    'clientId'          => $linkedinApiKey,
    'clientSecret'      => $linkedinApiSecret,
    'redirectUri'       => $callbackURL,
]);

var_dump($provider->getAuthorizationUrl());

jeraldpunx avatar Jun 21 '19 04:06 jeraldpunx

Are you sure that is a error of your code?, I made a some clicks and anywhere links not work.

https://crowdrating.io/how-it-works

Note: add this code below that your require_once:

`use \League\OAuth2\Client\Provider\LinkedIn;`

NeftaliAcosta avatar Aug 03 '19 01:08 NeftaliAcosta