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

Comments

pyxio’s picture

Can anybody help me troubleshoot this? Pretty please? Thanks, Kevin

S.Siva’s picture

StatusFileSize
new19.34 KB
new20.13 KB

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

pyxio’s picture

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.

budda’s picture

Version: 6.x-2.3 » 6.x-2.x-dev
Priority: Normal » Critical

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.

budda’s picture

Status: Active » Closed (duplicate)
vignesh_89’s picture

You should have the tokens module installed and enabled n set the appropriate permissions too if you want the % variables to get translated

nathanmcginty’s picture

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.

nathanmcginty’s picture

Yep. That did it. Fixed. I didn't have copy the twitter.inc file, either.

Thanks!

forestmars’s picture

Version: 6.x-3.x-dev » 6.x-2.x-dev

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 80

Looking 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

nerdymark’s picture

Title: Fatal erro when trying to setup a twitter action » Still a problem in the latest release
Version: 6.x-2.x-dev » 6.x-3.x-dev
Priority: Critical » Normal
Status: Closed (duplicate) » Active

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);
Antinoo’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

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.

darkrho’s picture

Issue tags: +trigger, +action, +twitter_authenticate
StatusFileSize
new768 bytes

Hi,

i attach the patch to fix twitter_authenticate missing function issue,
i use it to post to twitter every node created

Regards,

darkrho’s picture

Component: Code » Twitter Actions
Status: Active » Needs review
Issue tags: +twitter_set_status
StatusFileSize
new651 bytes

Here is another patch that fix twitter_set_status() function

socialnicheguru’s picture

Priority: Normal » Critical

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

Michsk’s picture

darkrho: Your fixes work like a char!! did completely the trick for me. These should be implemented in the latste csv asap

deltab’s picture

+1

digi24’s picture

#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.

digi24’s picture

Status: Needs review » Reviewed & tested by the community

@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?

sirkitree’s picture

Status: Reviewed & tested by the community » Needs work

If OAuth case still needs work, marking this as such.

garbanzito’s picture

tweaking 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()

garbanzito’s picture

woop, should be patch -p0 relative to the module for contrib

garbanzito’s picture

StatusFileSize
new595 bytes

fix typo in twitter_actions_fix_set_status_p0.patch in #21

greggles’s picture

Status: Needs work » Reviewed & tested by the community

This 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.

Michsk’s picture

Oauth i usless. In holland no one uses it.

As If’s picture

#21 and #22 tested and working under D6.16. +1 from me. Thanks garbanzito!

vitoabrusci’s picture

Status: Reviewed & tested by the community » Fixed

#21 and #22 worked for me.

greggles’s picture

Status: Fixed » Reviewed & tested by the community

@vitoabrusci - issues should not be marked "fixed" until the code is committed to CVS.

claudiu.cristea’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.55 KB

Here's a patch against DRUPAL-6--3

avpaderno’s picture

Title: Still a problem in the latest release » Fatal error when trying to setup a twitter action
sp_key’s picture

I 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

Tafa’s picture

i 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

videographics’s picture

No. 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.

pyxio’s picture

Rules 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.

videographics’s picture

I was using Messaging 6.x-2.3 and Twitter 6.x-3.0beta3 when I had all the trouble.

Tafa’s picture

I managed to get it work by downgrading Oauth version to 6.2x.

steinmb’s picture

Status: Needs review » Closed (duplicate)

There 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