How do you download this?
Where is the download link?
How do you download this?
Where is the download link?
For the extension page (it also contains the download link for the current release):
The second line is error because of the first error, and I dont know why that line would give you an error if the login works, that same Yii::app()->controller->module->config is ran on login to… hmm
Yes…that’s why i think the problem shouldn’t be there…
So weird…
Is that works on you?
Hm, I will test it. I misread your first post, didnt see what method you were using.
I dont have time for it right now, but I will probably do it tomorrow:p
Thanks so much! That’s a great great module! ![]()
Ah, It didnt work for me either first, I found I had typo.
At approximately line 145
public function updateStatus($provider,$status){
$this->newAuth();
//Change to
public function updateStatus($provider,$status){
$hybridauth = $this->newAuth();
Then it should work,atleast did so for me:)
I found that typo and had corrected it yesterday…So this is not the problem…
Still give me "Trying to get property of non-object"…
Don’t know why the same method is just not working here…!!!
-.-
I think I’ve followed every instruction verbatim, but I’m afraid I’m getting this:
Error 404
The system is unable to find the requested action "authenticatewith?openid=http:".
This looks really good!
Soon I will try this out and report back. Please keep up the good work ![]()
I can’t seem to get this to work; after following the instructions I get:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /protected/modules/yiiauth/components/Yiiauth.php on line 31
Any ideas what I’m doing wrong?
edit Ignore, it’s a fresh install and I haven’t setup the User class yet.
A few notes from me playing with this for a bit…
Be sure to extend your base controller as stated in the instructions…
class Controller extends yiiauth
and
class DefaultController extends Controller //yiiauth default controller
social extends Model (doesn’t exist in my case) - for most I believe this will be CActiveRecord
UrlFormat is assumed to be path
path to images assumes app is in webroot…it should prob be prefixed with Yii::app()->basePath or something to be more universal
now trying to figure out why I’m getting this error
The provider 'Facebook' is not enabled.
when using Twitter as the provider
You have many good points, I’m not relly good at module making. The social extending model is as you say for most CActiveRecord, I have created a Model class in app/components, so that is not really needed for this Yiiauth module.
Can you tell me where u get this error? it is hopefully solved with just an if statement.
Else, I wouldnt mind if others updated errors they find because I have almost no time at all to work on this currently 
Has anyone tried to use the "update status" function…?
Still not works for me…
The login works like a charm. You need to fixed some typos though.
I’m sorry I dont know what can cause that error for you… what provider are you logged in
"Trying to get property of non-object" means a $variable is empty, that should contain an object:p I dont know whats diffrent between my code and yours. Perhaps you missed some step?
Haha…I’ve never created a module before so prob aren’t much help on that front, but figured it might be helpful for others trying to use it.
I get the error after clicking on the Twitter provider icon (defautl /yiiauth)…haven’t had a chance to try to fix it yet…but you’re probably right about the “if”…
ok, that was a bit idiotic…the reason I was getting the error was that it was trying to redirect back to the profile page, which has
// Example, ask facebook for friends list
$response = $this->facebookApi('/me/friends');
if($response){
echo "<h1> Example fb api call for friends</h1>";
var_export($response);
}
as the first few lines…I don’t know why it took me so long to realize that the error was actually being thrown by the profile view, and not any of the Yiiauth controllers.
haha Well, good notice, I fix that right away. When you get the error message, you can see the stack trace… in where it almost always shows what line causes the error ![]()
The stack trace showed that the error was actually in the Hybridauth file (provider_adapter.php i think), which was the confusing part…either way, definitely my fault, not yours!
Hi,
What license is your code under please? Essentially I need a auth provider like this, but looking at this code it’s a bit scrappy ![]()
I’d like to pull it to pieces and write a new extension that is tidier and more isolated from the application. I’d probably borrow some ideas if not actual code from this extension though if that’s ok?