After upgrading to 6.x-5.1 from 6.x-3.0 the tweets view that originally was installed by the twitter module ceased to work.

The view is throwing a php fatal error for Call to undefined function twitter_get_user_accounts() which I see has been removed. Is there something that I need to upgrade in views as well? I didn't notice anything in the release notes. Also, what is the appropriate replacement for this in custom code?

Thanks!

CommentFileSizeAuthor
#1 2098519-01.twitter_get_user_account.patch536 bytesekes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ekes’s picture

Issue summary: View changes
FileSize
536 bytes

The function was removed http://drupalcode.org/project/twitter.git/commitdiff/c3cd3c5 at the same time that the accounts were added to the user object in hook_load.

Now there are at least a couple of modules in their 'supported' versions that still use this function: messaging and facebook_status. I'm guessing there may be more. So for backwards API compatibility this attached patch may help - but I'm not guaranteeing much about what they can still do with it mind, it may well require other changes to those modules.

DamienMcKenna’s picture

Status: Active » Fixed

You need to rebuild the views using the new ones included with the module, sorry.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.