Still a problem in the latest release
iteego - May 30, 2009 - 16:00
| Project: | |
| Version: | 6.x-3.x-dev |
| Component: | Twitter Actions |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs work |
| Issue tags: | action, trigger, twitter_authenticate, twitter_set_status |
Description
Fatal error: Call to undefined function twitter_authenticate() in /users/ittags.com/htdocs/sites/all/modules/twitter/twitter_actions/twitter_actions.module on line 77
i have both actions and triggers and enabled so not sure what the problem is. any pointers would be much appreciated. thanks. Kevin

#1
Can anybody help me troubleshoot this? Pretty please? Thanks, Kevin
#2
The problem is because your twitter_authenticte() function has not been defined in your C:\xampp\htdocs\sites\all\modules\twitter\twitter_actions.MODULE file.
Heres how to rectify it:
1)Copy the twitter.inc file from C:\xampp\htdocs\sites\all\modules\twitter
2) Paste it into C:\xampp\htdocs\sites\all\modules\twitter\twitter_actions
3)Include this line of code in your twitter_actions.MODULE in the function:twitter_actions_set_status_action_validate($form, $form_state)
+ module_load_include('inc', 'twitter');
Check out the images if youre still not clear
#3
thanks s.siva! the action works perfectly now. I really appreciate it. however the %variables are not converting. In my action it looks like %title %node_type just updated! and it looks exactly the same on twitter. Should i open another issue for this or am i missing something basic? Cheers, Kevin.
#4
No need to copy the twitter.inc file. It finds it in the main twitter module folder just fine.
Without this fix the twitter actions module basically kills the site, so pretty critical to be fixed IMO.
#5
duplicate of #375402: WSOD when submitting twitter action from rules, maybe actions
#6
You should have the tokens module installed and enabled n set the appropriate permissions too if you want the % variables to get translated
#7
Yeah, guys same here.
Twitter worked fine under individual users. Trying to setup an action to use the global account results in the WSOD. I'll try these solutions out above.
#8
Yep. That did it. Fixed. I didn't have copy the twitter.inc file, either.
Thanks!
#9
I am still having this problem with the Official release from CVS tag: DRUPAL-6--2-6.
Creating a Twitter action returns the error:
Fatal error: Call to undefined function twitter_authenticate() in /modules/twitter/twitter_actions/twitter_actions.module on line 80Looking at twitter_actions.module I see it is patched: (http://drupal.org/files/issues/twitter_actions.module.patch)
71 function twitter_actions_set_status_action_validate($form, $form_state) {
72 module_load_include('inc', 'twitter');
Where is twitter_authenticate?
thanks,
Forest
#10
I am getting this too, using dev version 3. I've also blown the folder away and went from CVS. I don't see a twitter_authenticate function in this version of twitter.inc. Where did it go?
~/cvs/twitter-DRUPAL-6--3# grep -R twitter_authenticate *twitter_actions/twitter_actions.module: $valid = twitter_authenticate($name, $pass);
#11
Subscribing.
Even bypassing this error (setting $valid to TRUE without checking for auth), when the action is run I get another undefined function fatal error:
Fatal error: Call to undefined function twitter_set_status() in /home/a3292292/public_html/sites/all/modules/twitter/twitter_actions/twitter_actions.module on line 176
Oh, in the twitter_actions_set_status_action_validate() function, the Twitter module is loaded twice.
I really think Twitter Actions module is unusable at the moment.
#12
Hi,
i attach the patch to fix twitter_authenticate missing function issue,
i use it to post to twitter every node created
Regards,
#13
Here is another patch that fix twitter_set_status() function
#14
I get the following error:
array(4) { ["type"]=> int(1) ["message"]=> string(50) "Call to undefined function twitter_authenticate()" ["file"]=> string(108) "/drupal/sites/all/modules/messaging/messaging_twitter/messaging_twitter.module" ["line"]=> int(165) } n/a
#15
darkrho: Your fixes work like a char!! did completely the trick for me. These should be implemented in the latste csv asap
#16
+1
#17
#12 and #13 work well for me. Without them, the actions module is broken, so please commit them.
But, as a reminder, we should not forget about OAuth. Above patches only cover the simple auth case.
#18
@SocialNicheGuru Your error seems to be related to the "Messaging" module that seems to use a function no longer present within the twitter module. I would suggest to post in the other modules issue queue in case you haven't already done so.
I guess we can set the status to rtbtc?
#19
If OAuth case still needs work, marking this as such.