Hi, I'm using cakephp with this vendor: oauth_consumer.php
It requires OAuth PHP library oauth.php
Inside my controller, I successfully get a request token using a method call in oauth_consumer
which successfully calls a static method in oauth.php
:
$request = OAuthRequest::from_consumer_and_token($consumer, $token, $httpMethod, $url, $parameters);
However, when I get redirected back to my controller function google_callback()
and call a method in oauth_consumer
which calls a method in oauth.php
, it reports me an error:
Call to undefined method OAuthUtil::parse_parameters()OAuthUtil::parse_parameters()
I'm confused as to why I am getting an undefined method error now, and yet before the redirect, the method call to oauth
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...