Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error logging in with new Gmail account #9

Open
mrprowse opened this issue Sep 20, 2015 · 0 comments
Open

Error logging in with new Gmail account #9

mrprowse opened this issue Sep 20, 2015 · 0 comments

Comments

@mrprowse
Copy link

Logging in with my ages-old Gmail account worked fine. When I tried to login with a newly-created Gmail email address, I got the following error:

Notice (8): Undefined index: oid [APP/Controller/AppUsersController.php, line 107]
Code Context
$this->SocialProfile->recursive = -1;
$existingProfile = $this->SocialProfile->find('first', array(
'conditions' => array('oid' => $incomingProfile['oid'])
$incomingProfile = array(
'given_name' => 'Josh',
'family_name' => 'Prowse',
'picture' => 'https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg',
'locale' => 'en',
'username' => 'Josh Prowse',
'raw' => '{
"id": "103780668085339462184",
"name": "Josh Prowse",
"given_name": "Josh",
"family_name": "Prowse",
"picture": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg",
"locale": "en"
}
',
'provider' => 'Google'
)
$accessToken = 'ya29.9AFkPJkBYKt5UFrICM6HkHyuGRn2iaiq0sj-yNneFKWwS5k8qP7Qo9hDuokgYZyyLFiC'
AppUsersController::__successfulExtAuth() - APP/Controller/AppUsersController.php, line 107
AppUsersController::auth_callback() - APP/Controller/AppUsersController.php, line 94
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Vendor/pear-pear.cakephp.org/CakePHP/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - APP/Vendor/pear-pear.cakephp.org/CakePHP/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - APP/Vendor/pear-pear.cakephp.org/CakePHP/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant