marig345 / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Missing argument 2 for OAuthStoreSQL::getConsumer() #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Adjust links in templates to my use case (logon.php and register.php, instad 
of /logon and /register)
2.Run the provided example in /server/www/register.php

What is the expected output? What do you see instead?
It should echo the requester's key and secret instead I get:

Warning: Missing argument 2 for OAuthStoreSQL::getConsumer(), called in 
/xxx/xxx/xxx/www.example.com/oauth/example/server/www/register.php on line 14 
and defined in 
/xxx/xxx/xxx/www.example.com/oauth/library/store/OAuthStoreSQL.php on line 1111
Error: No access to the consumer information for consumer_key 
"89a596ae1017d82df3ac7d27a85e40fc04cab6c70"

What version of the product are you using? On what operating system?
oauth-php-155.tar.gz

Please provide any additional information below.
No wonder it is outputting an error: the function getConsumer() requires to be 
passed in the $user_id, which is not the case in the example.

Original issue reported on code.google.com by pnp.anc...@gmail.com on 5 Oct 2010 at 7:03

GoogleCodeExporter commented 9 years ago
Fixed on r159, thanks for the report.

Original comment by brunobg%...@gtempaccount.com on 5 Oct 2010 at 9:40