Error when trying to send a tweet via fabrik form

dkl

New Member
Hello,

I have a simple fabrik form for allowing registered users to send tweets to one twitter-account. Everything works fine on Joomla 3.3.6 with Fabrik 3.1

This week i made an update to Joomla 3.4.1 and Fabrik 3.3.1

After sending the form the following error occours now:

Code:
Fatal error: Class 'OAuthSignatureMethod_HMAC_SHA1' not found in [?]/components/com_fabrik/libs/abraham-twitteroauth/twitteroauth/twitteroauth.php on line 61

I also updated from github, but that didn't help.

Thanks for help,
Dan :)
 
Hmmm, well, you are one up on me, I can't add a twitter plugin, it won't let me auth, and leaving it blank to use user provided credential doesn't seem to work any more.

I'll raise a ticket for rob to look at this one.

-- hugh
 
Ok, thank you Hugh for your fast response.
Just let me know, if you like to have access to the website for testing purposes.
 
OK, I finally managed to get a twitter form plugin set up, and it seems to work OK for me.

The most likely explanation is that you have some other plugin which uses OAuth, has a file called OAuth.php, and it has added it's include path ahead of everything else.

Do you use Widget Kit? If so, try disabling that, see if that fixes it.

-- hugh
 
I did a search for another OAuth.php in my Joomla installation. It seems like fabrik is the only extension using a file like that. Only Joomla has some more as you can see in the attachment.
 

Attachments

  • searching_for_oauth_php.jpg
    searching_for_oauth_php.jpg
    217.5 KB · Views: 205
Hmm, wonder why I don't have that issue. Oh well. Sub optimal, but try editing the twitteroauth.php file, and modify line 11 to make it a full path:

Code:
require_once(JPATH_ROOT . '/components/com_fabrik/libs/abraham-twitteroauth/twitteroauth/OAuth.php');
That should get you going.
What I should really do is update the abraham-twitteroauth lib we ship, we are still using a version from several years ago, and it has undegone a lot of changes since then. But as it's been working, and we tend to go by the rule "if it ain't broke, don't fix it" ...
Let me know.
-- hugh
 
Mmh, I changed the path but the error is still there. After a short test I can say, that the right file is included. But i can't figure out why the class "OAuthSignatureMethod_HMAC_SHA1" couldn't be found.

edit: see next entry with new idea.
 
stop. the class is already existing. so the fabrik own file wouln't loaded.
is it possible, that the newer joomla oauth-file isn't compatible with fabrik twitter functions? you said, you have to update the abraham-twitterauth lib, maybe there are some changes in fabrik form twitter-plugin to do too.
 
Hard to say as I can't replicate the problem. You'll have to work out what it is your setup does differently that causes that other OAuth.php to load up. Probably some other twitter related feature in J! you use, and I don't.

If you can identify what it is, so I can replicate it, then I can fix it.

-- hugh
 
Oh, lucky me ... I know what is responsible for this error in my case. Some days ago I also switched the running PHP version from 5.3 to 5.4
For testing I switched back to 5.3 now and the twitter form works again.

Also testet PHO 5.5 and 5.6 and get the error too.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top