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

Undefined property: stdClass::$email preventing account creation #13

Open
marafa opened this issue Jul 6, 2014 · 5 comments
Open

Undefined property: stdClass::$email preventing account creation #13

marafa opened this issue Jul 6, 2014 · 5 comments
Labels

Comments

@marafa
Copy link

marafa commented Jul 6, 2014

hi
when i have the settings "Allow visitors to request account registration" enabled i get this error:
ERROR 8: Undefined property: stdClass::$email
0 Error occurred on line 492 of file module.php in function login_or_register
1 called from line 304 of file module.php in function connect
2 called from line 71 of file module.php in function modAction
3 called from line 33 of file module.php

Notice: Undefined property: stdClass::$email in /home/shagarat/public_html/modules_v3/facebook/module.php on line 492

ERROR 8: Undefined property: stdClass::$email
0 Error occurred on line 533 of file module.php in function login_or_register
1 called from line 304 of file module.php in function connect
2 called from line 71 of file module.php in function modAction
3 called from line 33 of file module.php

Notice: Undefined property: stdClass::$email in /home/shagarat/public_html/modules_v3/facebook/module.php on line 533

when it is disabled i get this error:

ERROR 8: Undefined property: stdClass::$email
0 Error occurred on line 492 of file module.php in function login_or_register
1 called from line 304 of file module.php in function connect
2 called from line 71 of file module.php in function modAction
3 called from line 33 of file module.php

Notice: Undefined property: stdClass::$email in /home/shagarat/public_html/modules_v3/facebook/module.php on line 492

in both cases, my users are unable to login

pls advise

@marafa
Copy link
Author

marafa commented Jul 6, 2014

i found this in the logs underneath the error i posted above:
Facebook: Couldn't create the user account

@marafa
Copy link
Author

marafa commented Jul 17, 2014

just noticed the login page has this line below the php errors

Unable to create your account. Please try again.

@mnoorenberghe mnoorenberghe changed the title login issues Undefined property: stdClass::$email preventing account creation Oct 18, 2014
@mnoorenberghe
Copy link
Owner

Did you grant the Facebook application access to your email address the first time you used it? You can check in your App Settings on Facebook. I just added a nicer error message if this happens in 5ce1638

@mnoorenberghe
Copy link
Owner

It would be nice to let the user re-auth and add the email permission as described at https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.0#re-asking-declined-permissions but I haven't seen how to do this without an SDK yet.

@marafa
Copy link
Author

marafa commented Oct 25, 2014

hello
yes, i have 4 users who are authenticated via facebook and the rest get that error

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

No branches or pull requests

2 participants