Error Fatal error: Class ‘Oauth’ not found when using OAuth

I using code demo from link http://djpate.com

When I run http://localhost:8080/test/OAuthProviderExample/client/index.php is it get error Fatal error: Class ‘Oauth’ not found in C:/wamp/www/test/OAuthProviderExample/client/index.php on line 2

in client/index.php i using:

$oauth_client = new Oauth("key","secret"); // line 2
$oauth_client->enableDebug();

How to fix it, i using wampserver in windows 7



Fatal error: Class ‘OAuth’ not found in

I’m trying to connect to the LinkedIn API but everytime I try to access it I get the following error: Fatal error: Class ‘OAuth’ not found in /home/vhosts/*/test.php on line 8 I’m using a free serv

PHP Fatal error: Class ‘OAuth’

I searched the site for hours looking for answer and nothing helped me. I’ve installed PHP/Apache2/PECL/OAuth and edited php.ini for extension=oauth. I get this error everything I type php example.ph

Fuelphp Class ‘OAuth/Fuel’ not found error

I’ve been trying to set up ninjauth but see to have run into a problem for some reason fuel doesn’t seem to be recognizing the oauth package correctly and I am getting the following error ErrorExcepti

twitteR R Package OAuth issue: Error in registerTwitterOAuth(cred) : oauth argument must be of class OAuth

twitteR R Package OAuth issue: Error in registerTwitterOAuth(cred) : oauth argument must be of class OAuth This is the code I am using in R to load in the Authentication once I have authenticated the

Asana Javascript Oauth Error no route found

So I keep Receiving an error when I’m trying to use OAuth with Asana’s API. The error I’m receiving is Error no route found. What am I doing wrong? I know that the request is most likely correct, bu

Getting a 401 error code when using OAuth with Reddit

I keep getting {error : 401} when trying to OAuth into Reddit on ruby using the oauth2 gem. The wiki page says that this is because of incorrect or non-existent credentials but I’m positive I have t

Fatal error: Class ‘XSLTProcessor’ not found

I’m using XAMPP Server 1.7.7 While opening the php file, i receive the error Fatal error: Class ‘XSLTProcessor’ not found

Evernote oAuth error php (oauth )

while I am trying to run PHP SDK for evernote it gives following error The PHP OAuth Extension is not installed !! any help?? I am able to successfully create note using EDAMTest.php but it doesn’t as

Fatal error: Class ‘ZipArchive’ not found in

I have a problem that I install ‘Archive_Zip 0.1.1’ on Linux server, but when I try to run the script to create the zip file it gives the fatal error Fatal error: Class ‘ZipArchive’ not found in —

401 error when using authlogic oauth

So I’m trying to get the oauth authlogic plugin (https://github.com/jrallison/authlogic_oauth) to work on my rails app which already has regular authlogic installed. I believe I’ve set up everything i

Answers

remember there’s one step in the tutorial:

sudo pecl install oauth

This is installing the oauth lib, in Windows OS it should be “oauth.dll” liked file, check where to get the lib file for Windows. and see if the problem solved.

Oauth for PHP 5.4 Windows x86

PHP/5.4.7 http://zahymaka.com/314/php-5-4-oauth-x86-windows

This is not my source so im not sure how stable ,but it was the only option I’ve found after about an hour and a half of searching.

Throw the file into your php/ext folder

Edit your php.ini to include the extension

extension=php_oauth.dll

I had this same problem. I think wamp installs using win32 bits by default. Even if you are running windows 64bit OS. So download the 86x version here For PHP version 5.5 .
Extract the Zip file and copy the php_oauth.dll found in your extract to C:/wamp/bin/php/php5.5.12/ext Click on your wamp server, goto PHP>php.ini, add thisextension=php_oauth.dll to a place where you find similar text or anywhere. Now exit your wamp server. Start it up again and in PHP>PHP extensions you should see php_oauth ticked. However, if you still encounter problems goto PHP error logto get a clue. Cheers!