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: Oauth.php on line 229 #1

Open
GoogleCodeExporter opened this issue Jun 25, 2015 · 3 comments
Open

Error: Oauth.php on line 229 #1

GoogleCodeExporter opened this issue Jun 25, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Catchable fatal error: Argument 1 passed to Oauth::authorize() must be an 
array, null given, called in /home/domain/public_html/test/includes/Oauth.php 
on line 150 and defined in /home/domain/public_html/test/includes/Oauth.php on 
line 229


Original issue reported on code.google.com by [email protected] on 26 Aug 2012 at 1:42

@GoogleCodeExporter
Copy link
Author

It's crapping out here:

// authorize app
                if(!isset($_GET['state']) && !isset($_GET['code'])){
                    $this->authorize($this->_scope);
                    return false;
                }
on the authorize() call...looks like _scope's not getting set.

Original comment by [email protected] on 17 Jun 2013 at 11:32

@GoogleCodeExporter
Copy link
Author

scope must be defined in /include/facebook.php for example:

protected $_scope = array("email", "user_likes", "user_birthday", 
"user_location");

Original comment by [email protected] on 17 Jul 2013 at 2:09

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

No branches or pull requests

2 participants
@GoogleCodeExporter and others