Still a problem in the latest release

iteego - May 30, 2009 - 16:00
Project:Twitter
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

iteego - June 3, 2009 - 09:09

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

#2

S.Siva - June 3, 2009 - 12:02

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

AttachmentSize
before.jpg 20.13 KB
after.jpg 19.34 KB

#3

iteego - June 4, 2009 - 04:42

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

budda - June 4, 2009 - 11:14
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.

#5

budda - June 4, 2009 - 11:31

#6

vignesh_89 - June 5, 2009 - 05:38

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

#7

nathanmcginty - June 6, 2009 - 15:59

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

nathanmcginty - June 6, 2009 - 16:05

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

Thanks!

#9

f - August 22, 2009 - 19:06
Title:Fatal erro when trying to setup a twitter action» Still a problem in the latest release
Priority:critical» normal
Status:duplicate» active

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

#10

nerdymark - August 22, 2009 - 18:56
Version:6.x-2.x-dev» 6.x-3.x-dev

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

Antinoo - August 26, 2009 - 20:19

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

darkrho - September 9, 2009 - 00:35

Hi,

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

Regards,

AttachmentSize
twitter_actions_fix_authenticate.patch 768 bytes

#13

darkrho - September 9, 2009 - 04:34
Component:Code» Twitter Actions
Status:active» needs review
Issue tags:+twitter_set_status

Here is another patch that fix twitter_set_status() function

AttachmentSize
twitter_actions_fix_set_status.patch 651 bytes

#14

SocialNicheGuru - October 7, 2009 - 20:41
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

#15

lasac - November 11, 2009 - 23:10

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

#16

deltab - November 14, 2009 - 17:03

+1

#17

digi24 - November 22, 2009 - 03:25

#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

digi24 - November 22, 2009 - 03:31
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?

#19

sirkitree - December 3, 2009 - 01:52
Status:reviewed & tested by the community» needs work

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

 
 

Drupal is a registered trademark of Dries Buytaert.