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

TwitterAPIAccessorOAuth.php errors on update #1500

Closed
brandonnn opened this issue Mar 2, 2013 · 5 comments
Closed

TwitterAPIAccessorOAuth.php errors on update #1500

brandonnn opened this issue Mar 2, 2013 · 5 comments

Comments

@brandonnn
Copy link

Apologies if this something super obvious, but I'm not quite sure where to start in diagnosing this! I just installed the app, successfully set up several Twitter & Facebook accounts, but when I update the app, it throws several hundred errors & times out.

Here's a collapsed view of the errors it's throwing:

[Sat Mar 02 15:42:46 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$to_user_id in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterAPIAccessorOAuth.php on line 249, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:46 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: .TwitterAPIAccessorOAuth.php on line 249, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:55 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined variable: friend_ids in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 842, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:56 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined variable: follower_ids in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 609, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:59 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined variable: inserted_post_key in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 284, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:59 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$to_user_id in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterAPIAccessorOAuth.php on line 249, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:42:59 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined variable: http_status in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 276, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:43:02 2013] [warn] [client 70.113.30.232] mod_fcgid: stderr: PHP Notice: Undefined variable: friendship_call in /var/www/vhosts/mydomain.com/httpdocs/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 1035, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:44:23 2013] [warn] [client 70.113.30.232] mod_fcgid: read data timeout in 45 seconds, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:44:23 2013] [warn] client 70.113.30.232Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://mydomain.com/thinkup/crawler/updatenow.php

Any help greatly appreciated!

@squircle
Copy link
Contributor

squircle commented Mar 3, 2013

I'm experiencing similar issues with TwitterAPIAccessorOAuth and TwitterCrawler after the 1.3.1 upgrade:

PHP Notice:  Undefined property: stdClass::$to_user_id in /path/to/thinkup/plugins/twitter/model/class.TwitterAPIAccessorOAuth.php on line 249
PHP Notice:  Undefined variable: follower_ids in /path/to/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 600
PHP Notice:  Undefined variable: friendship_call in /path/to/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 1114
PHP Notice:  Undefined variable: http_status in /path/to/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 1221
PHP Notice:  Undefined variable: tweets in /path/to/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 1230
PHP Notice:  Undefined variable: payload in /path/to/thinkup/plugins/twitter/model/class.TwitterCrawler.php on line 1230

I'm back on 1.2.1 for now so I can't tell whether 1.3 or 1.3.1 broke this functionality, but it was definitely one of those two releases. Possibly problems with the change to Twitter's 1.1 API?

@ginatrapani
Copy link
Member

Thanks for the bug report - there are definitely issues here that need to be fixed (and we will), but even with the notices I'm able to complete the crawl successfully here. Questions: What version of PHP are you running? Who is your web host?

@squircle
Copy link
Contributor

squircle commented Mar 3, 2013

Personally, I'm on PHP 5.3.10-1ubuntu3.5 running on an old Linux box on my LAN. I do all of my crawls with a cron job, and (now that I check) you're right; it does still crawl successfully despite the errors.

@brandonnn
Copy link
Author

I'm on 5.3.3 on a MediaTemple (dv), running ThinkUp 2.0-beta.4!

@ginatrapani
Copy link
Member

Thanks to both of you. So we've got a few PHP Notices here in TwitterAPIAccessorOAuth and TwitterCrawler. I've opened up individual tickets for each, #1503 and #1504.

But the crawl should complete for you successfully despite the notices. @brandonnn, these lines:

[Sat Mar 02 15:44:23 2013] [warn] [client 70.113.30.232] mod_fcgid: read data timeout in 45 seconds, referer: http://mydomain.com/thinkup/crawler/updatenow.php
[Sat Mar 02 15:44:23 2013] [warn] client 70.113.30.232Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://mydomain.com/thinkup/crawler/updatenow.php

Seem to indicate your server is timing out before the crawl completes. This is something hopefully your web host can help fix. Googling I found this:

http://stackoverflow.com/questions/12477627/mod-fcgid-ap-pass-brigade-failed-in-handle-request-function

Going to close this ticket since we've captured the ThinkUp PHP Notices in those other tickets.

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