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

Trying to get property of non-object libraries/tweet.php:205 #19

Open
divineslight opened this issue Sep 1, 2011 · 14 comments
Open

Trying to get property of non-object libraries/tweet.php:205 #19

divineslight opened this issue Sep 1, 2011 · 14 comments

Comments

@divineslight
Copy link

Hello,

I keep getting these errors no matter what.

I get redirected to twitter fine, login, and twitter redirects back to my call-back url with something like this:

http://loop.pk/twitter/auth?oauth_token=k6VX2VkQwXOLLxtGiKurt89jIFhPMkt42KjLMdba8&oauth_verifier=TX666l9qA4pfqUnsjDK1XPTcPMcou0ZBZuaCYpWTek

Now on this url I get the following error, the error is almost impossible for me to decipher, I have also enabled debugging but I can't get any more info, help please. Is this a BUG???


A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 205
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 205
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 370
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25c/b1454/d5.alihamza/public_html/loop/system/core/Exceptions.php:170)

Filename: helpers/url_helper.php

Line Number: 543

@divineslight
Copy link
Author

Anyone please? I am stuck :(

@skrobola
Copy link

skrobola commented Sep 5, 2011

I had the same problem.

In libraries/tweet.php replace:

private $_apiUrl = 'http://api.twitter.com/';

with

private $_apiUrl = 'http://api.twitter.com/1';

@divineslight
Copy link
Author

Thanks alot I will try it and let you know.
ߣ∂ςқ http://loop.pk

On Mon, Sep 5, 2011 at 9:56 PM, skrobma <
[email protected]>wrote:

I had the same problem.

In libraries/tweet.php replace:

private $_apiUrl = 'http://api.twitter.com/';

with

private $_apiUrl = 'http://api.twitter.com/1';

Reply to this email directly or view it on GitHub:

#19 (comment)

@divineslight
Copy link
Author

I tried your solution, it worked locally but still doesn't work on my server :(

I get exactly the same error when twitter sends user back to my callback URL :( :(

@skrobola
Copy link

skrobola commented Sep 7, 2011

Can you run with the supplied tweet_test.php. and send results of var_dump($user);

@divineslight
Copy link
Author

I had deleted tweet_test, but I re-uploaded it and got the same error when user returned at:

http://loop.pk/tweet_test/auth?oauth_token=Vs0YmMgvkt7ylYJ22xUpaJwWPNfY6pA0Lmttkx8o&oauth_verifier=KV64zLZHNt0j9iGQGSEaV1ZFnEpH4SooXoNHLAgif4

@skrobola
Copy link

skrobola commented Sep 7, 2011

I'm getting page not found


From: Munir Ahmad [email protected]
To: Mark [email protected]
Sent: Wednesday, September 7, 2011 3:43 PM
Subject: Re: [codeigniter-twitter] Trying to get property of non-object libraries/tweet.php:205 (#19)

I had deleted tweet_test, but I re-uploaded it and got the same error when user returned at:

http://loop.pk/tweet_test/auth?oauth_token=Vs0YmMgvkt7ylYJ22xUpaJwWPNfY6pA0Lmttkx8o&oauth_verifier=KV64zLZHNt0j9iGQGSEaV1ZFnEpH4SooXoNHLAgif4

Reply to this email directly or view it on GitHub:
#19 (comment)

@divineslight
Copy link
Author

try http://loop.pk/twit/

Sorry but I renamed it.

@divineslight
Copy link
Author

Strangely enough, it's working now just that I gave it a try after my previous message.

I doubt saving data in session causes hiccups, what do you think?

@drcongo
Copy link

drcongo commented Sep 8, 2011

_private $apiUrl = 'http://api.twitter.com/1';

I used this trick to make friends/ids work, but it breaks oath log in for me.

@divineslight
Copy link
Author

Magically it is working for me now. Don't know what made it work I just left
it our for a night, I mean Literally!

If it breaks again I am going to write a simple to the point Plugin for CI,
like my facebook one.

@hamadagabr
Copy link

I have the same problem
and i replaced the $_apiUrl , but no change occured ,please any one help me

@rajjagani021
Copy link

hey, couple of days ago my application works fine but now I am getting same error as mention above after redirecting twitter to my website...
I have tried the above solution but still i am getting this error....
anyone has idea why i m facing this error...???

@manojprabakaranm
Copy link

hello..
I need solution for this error..
anyone here

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

No branches or pull requests

6 participants