Twitter trigger problem

Hi,
just testing out the update to Twitter trigger



but am receiving the following error messages.



PHP Notice

Undefined index: request_token



PHP Notice Undefined index: request_token



PHP Warning Invalid argument supplied for foreach()



Error: failed to gain request token



[color="#000000"]this occurs after entering the connection details and hitting save.



any ideas?



[quote]
Hi,

just testing out the update to Twitter trigger



but am receiving the following error messages.



PHP Notice

Undefined index: request_token



PHP Notice Undefined index: request_token



PHP Warning Invalid argument supplied for foreach()



Error: failed to gain request token



[color="#000000"]this occurs after entering the connection details and hitting save.



any ideas?





[/quote]



Hi,

When this happens, what does the "Authentication status" on the trigger action say?

Does it come up with some errors?



Also the above PHP notice/error, can you mention the line number it is coming from? It should be there in error.log.





Ash

[quote]
Hi,

When this happens, what does the "Authentication status" on the trigger action say?

Does it come up with some errors?



Also the above PHP notice/error, can you mention the line number it is coming from? It should be there in error.log.





Ash

[/quote]

Hi Ash,



Authentication status: Error: failed to gain request token



Error logs:

(/core/assets/system/triggers/trigger_action_types/trigger_action_update_twitter_status/trigger_action_update_twitter_status.inc:464) - Undefined index: request_token

(/core/assets/system/triggers/trigger_action_types/trigger_action_update_twitter_status/trigger_action_update_twitter_status.inc:306) - Invalid argument supplied for foreach()



this is all I can find.

[quote]
Hi Ash,



Authentication status: Error: failed to gain request token



Error logs:

(/core/assets/system/triggers/trigger_action_types/trigger_action_update_twitter_status/trigger_action_update_twitter_status.inc:464) - Undefined index: request_token

(/core/assets/system/triggers/trigger_action_types/trigger_action_update_twitter_status/trigger_action_update_twitter_status.inc:306) - Invalid argument supplied for foreach()



this is all I can find.

[/quote]



I can see in the code that Matrix is trying to get the Request Token. Which it seems to be failing to do so. And instead of getting errors from OAuth Matrix is trying to get the value for key 'request_token' from the Array.



If you have access to you shell and can introduce some code in the files, I can provide some debugging code that can help us get a better idea as to what is going on. Alternately if you are Squiz Client, you can lodge a Support ticket.



Ash

Hey there, I just recently had the same issue. I cross referenced all changes on Twitter's side and the connection still works - there's no code update needed. I got this working again by resetting the APP on Twitter's side. Then deleting the trigger and setting the whole thing up again. This seems to have fixed the problem.