espresto/reclaim-social-media

twitter import fails

Closed this issue · 6 comments

My twitter import doesn't work anymore since a couple of days (I have latest updates of twitter.class.php).

reclaim-log shows that twitter BEGIN but no END:

Last working import:
[2014-01-23T16:33:33+00:00]: reclaim_twitter_locked is 0
[2014-01-23T16:33:33+00:00]: BEGIN twitter import
[2014-01-23T16:33:34+00:00]: Retrieved set of twitter messages: 0, last seen id: 426376175624019968, last id in batch: , req-ok: 0
[2014-01-23T16:33:34+00:00]: END twitter import
[2014-01-23T16:33:34+00:00]: reclaim_vine_locked is
[2014-01-23T16:33:34+00:00]: reclaim_youtube_locked is 0
[2014-01-23T16:33:39+00:00]: reclaim_bookmarks_locked is
...
since then, no more imports:
2014-01-28T15:57:09+00:00]: END facebook import
[2014-01-28T15:57:09+00:00]: BEGIN foursquare import
[2014-01-28T15:57:09+00:00]: END foursquare import
[2014-01-28T15:57:09+00:00]: BEGIN google_plus import
[2014-01-28T15:57:12+00:00]: END google_plus import
[2014-01-28T15:57:12+00:00]: BEGIN twitter import
[2014-01-28T16:05:10+00:00]: BEGIN facebook import
[2014-01-28T16:05:10+00:00]: GETTING for facebook from https://graph.facebook.com/1156781735/feed/?limit=400&locale=en&access_token=CAAHJcZA84rz8BAPmGZC9D9Ati8gS1JZABlndFF3hy6IGIo7RmIVpeh21b6kJRfHOvlMFZCpIJjVNgjK3kKsndZAbrAhxOSGsNetrk0GN6tkswRzQ8VliOEo9f6ykaSUKfZAE751iJcuIkIX4OPu2aOEvmZCLS0PNZB9WSsUaiPExoxtuyFkiVOWc&since=1390924628
[2014-01-28T16:05:11+00:00]: END facebook import
[2014-01-28T16:05:11+00:00]: BEGIN foursquare import
[2014-01-28T16:05:11+00:00]: END foursquare import
[2014-01-28T16:05:11+00:00]: BEGIN google_plus import
[2014-01-28T16:05:13+00:00]: END google_plus import
[2014-01-28T16:05:13+00:00]: BEGIN twitter import
[2014-01-28T16:11:24+00:00]: BEGIN twitter import 1
[2014-01-28T16:15:24+00:00]: BEGIN facebook import

Any idea?

I'd check your server's error.log. I assume it aborts because of a PHP error, otherwise you really should see more output. My secret guess is you need to run a composer update / install.

i set a very low $max_import_loops. that means twitter only gets 200 or 400 tweets to process. hm. but thats not it. did you try forcing the sync? maybe there are character issues, i have one, too: #63
this seems to interupt the import of at least the import of a single tweet.

from error logs :
Wed Jan 29 00:46:23.949187 2014] [:error] [pid 7558] [client 176.31.190.111:43509] PHP Fatal error: Class 'URLResolver' not found in /home/nxd4n/wp-content/plugins/reclaim/mods/twitter.class.php on line 244

@diplix: Then he'd see more output in the log, though. Either that it got messages or the GET failed.

@danito: Yeah, do a composer update & install.

yes, the composer update & install worked
reclaim-log:
[2014-01-28T23:59:22+00:00]: BEGIN twitter import 1
[2014-01-28T23:59:22+00:00]: starting twitter import
[2014-01-29T00:00:30+00:00]: Retrieved set of twitter messages (tweets): 83, last seen id: , last id in batch: 392116821765410816, req-ok: 0
[2014-01-29T00:00:30+00:00]: starting twitter-favs import

Thanks