Error with undefined method after OAuth request

thekidd253

New Member
I'm using cakephp with this vendor: \[code\]oauth_consumer.php\[/code\]
It requires OAuth PHP library \[code\]oauth.php\[/code\]Inside my controller, I successfully get a request token using a method call in \[code\]oauth_consumer\[/code\] which successfully calls a static method in \[code\]oauth.php\[/code\]:\[code\]$request = OAuthRequest::from_consumer_and_token($consumer, $token, $httpMethod, $url, $parameters);\[/code\]However, when I get redirected back to my controller function \[code\]google_callback()\[/code\] and call a method in \[code\]oauth_consumer\[/code\] which calls a method in \[code\]oauth.php\[/code\], it reports me an error: \[quote\] Call to undefined method OAuthUtil::parse_parameters()OAuthUtil::parse_parameters()\[/quote\]I'm confused as to why I am getting an undefined method error now, and yet before the redirect, the method call to \[code\]oauth\[/code\] works just fine. I've checked the oauth.php file, and everything should check out just fine.Solved: Putting in the full path in Require(...) fixed it...
 
Back
Top