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

hi, i got some errors testing the library #3

Closed
kakomerengue opened this issue Mar 9, 2011 · 5 comments
Closed

hi, i got some errors testing the library #3

kakomerengue opened this issue Mar 9, 2011 · 5 comments

Comments

@kakomerengue
Copy link

hello, these are the errors I get when I use the library, I hope you can help me

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/Tweet.php

Line Number: 205

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/Tweet.php

Line Number: 478

@rayfranco
Copy link

Hi,

What version of PHP/CI do you use ?
Do you have cURL installed on your server ?
Could you also tell us the code that generate these errors ?

@kakomerengue
Copy link
Author

PHP 5.216 / CI.2.0
Yes i have curl installed

exception 'tweetException' with message '401 | Request Failed: - ' in /public_html/application/libraries/Tweet.php:205
Stack trace:
#0 /public_html/application/libraries/Tweet.php(172): tweetConnection->_getResponse('Resource id #46')
#1 /public_html/application/libraries/Tweet.php(110): tweetConnection->_addCurl('http://api.twit...', Array)
#2 /public_html/application/libraries/Tweet.php(502): tweetConnection->get('http://api.twit...', Array)
#3 /public_html/application/libraries/Tweet.php(483): tweetOauth->_httpRequest('GET', 'http://api.twit...')
#4 /public_html/application/libraries/Tweet.php(477): tweetOauth->_getRequestToken()
#5 /public_html/application/libraries/Tweet.php(389): tweetOauth->_getAuthorizationUrl()
#6 /public_html/application/libraries/Tweet.php(34): tweetOauth->login()
#7 /public_html/application/controllers/tweet_test.php(31): tweet->login()
#8 /public_html/system/core/CodeIgniter.php(267): Tweet_test->__construct()
#9 /public_html/index.php(163): require_once('/public_html/app...')
#10 {main}

@rayfranco
Copy link

In your second exception message, Twitter return a 401, wich is returned when you do not have the right credentials. Have you tried it with your own function instead of the tweet_test controller ?
I've seen some bugs too in the default_controller, but I think it's not intended to be exectuted, but for references purpose.
What it says ?

EDIT : It could be easier to find what is wrong with the code you write (if it's not the default tweet_test controller code) to see what's going mad.

@kakomerengue
Copy link
Author

I will not to write any code before default tweet_test controller works, that's my reference to continue. I tested this twitteroauth library https://github.com/abraham/twitteroauth with same consumer key and secret key and it works, I hope the error was mine, because have seen on several websites that recomends elliothaughin library and i actually use CI for almost all my projects

@divineslight
Copy link

I am having similar issues, any help please?

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

This issue was closed.
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

3 participants