Closed (duplicate)
Project:
Twitter
Version:
6.x-3.x-dev
Component:
Twitter Actions
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2009 at 16:00 UTC
Updated:
19 Nov 2011 at 23:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
pyxio commentedCan anybody help me troubleshoot this? Pretty please? Thanks, Kevin
Comment #2
S.Siva commentedThe 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
Comment #3
pyxio commentedthanks 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.
Comment #4
buddaNo 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.
Comment #5
buddaduplicate of #375402: WSOD when submitting twitter action from rules, maybe actions
Comment #6
vignesh_89 commentedYou should have the tokens module installed and enabled n set the appropriate permissions too if you want the % variables to get translated
Comment #7
nathanmcginty commentedYeah, 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.
Comment #8
nathanmcginty commentedYep. That did it. Fixed. I didn't have copy the twitter.inc file, either.
Thanks!
Comment #9
forestmars commentedI 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
Comment #10
nerdymark commentedI 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?
Comment #11
Antinoo commentedSubscribing.
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.
Comment #12
darkrho commentedHi,
i attach the patch to fix twitter_authenticate missing function issue,
i use it to post to twitter every node created
Regards,
Comment #13
darkrho commentedHere is another patch that fix twitter_set_status() function
Comment #14
socialnicheguru commentedI 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
Comment #15
Michsk commenteddarkrho: Your fixes work like a char!! did completely the trick for me. These should be implemented in the latste csv asap
Comment #16
deltab commented+1
Comment #17
digi24 commented#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.
Comment #18
digi24 commented@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?
Comment #19
sirkitree commentedIf OAuth case still needs work, marking this as such.
Comment #20
garbanzito commentedtweaking patches from #12 & #13 so they apply with patch -p0 instead of patch -p1, for compatibility with drush make
(now i can point my make script here and the patches will apply)
also noted a dupe #721048: Fatal error: Call to undefined function twitter_authenticate()
Comment #21
garbanzito commentedwoop, should be patch -p0 relative to the module for contrib
Comment #22
garbanzito commentedfix typo in twitter_actions_fix_set_status_p0.patch in #21
Comment #23
gregglesThis feature is pretty broken without this patch. Why do we need to hold it back for OAuth support when Oauth is obviously not all that popular (if it were popular they would have provided code for it in a patch here already).
I suggest we commit this and the people who really need/want OAuth support should create a new issue for that.
Comment #24
Michsk commentedOauth i usless. In holland no one uses it.
Comment #25
As If commented#21 and #22 tested and working under D6.16. +1 from me. Thanks garbanzito!
Comment #26
vitoabrusci commented#21 and #22 worked for me.
Comment #27
greggles@vitoabrusci - issues should not be marked "fixed" until the code is committed to CVS.
Comment #28
claudiu.cristeaHere's a patch against DRUPAL-6--3
Comment #29
avpadernoComment #30
sp_key commentedI think this module should not be available for download just yet.
None of the available versions works with D6.
Not trying to start an argument but it's simply not ready yet
Comment #31
Tafa commentedi too have the same problem. Creating a rule with post to twitter is not working either.
Has anyone been able to make it owrk?
Thanks
T
Comment #32
videographics commentedNo. I can't get this work at all. Saving the configuration at admin/messaging/settings/method/twitter kills me every time with a
Fatal error: Call to undefined function twitter_authenticate() ... sites/all/modules/messaging/messaging_twitter/messaging_twitter.module on line 165
I too am a bit surprised to see this in the wild.
Triple-checked all of the twitter app settings (callback address correct, no trailing spaces, etc.) and I'm stopped dead in my tracks once I try to save my configuration.
Even the reset to defaults kills it.
Comment #33
pyxio commentedRules and twitter don't work (at least as far as I can tell). The fatal error is likely a configuration problem between oauth, twitter apps api, and your drupal config.
Comment #34
videographics commentedI was using Messaging 6.x-2.3 and Twitter 6.x-3.0beta3 when I had all the trouble.
Comment #35
Tafa commentedI managed to get it work by downgrading Oauth version to 6.2x.
Comment #36
steinmb commentedThere is work in progress splitting the action functions into a separate sub menu. Closing this, pls chime in and help out testing the code #1317196: Implement Actions and Rules integration for Drupal 7