Quantcast

Class 'CakePlugin' not found while using google Oauth plugin

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Class 'CakePlugin' not found while using google Oauth plugin

Harshit Sharma
I was following tutorial but came across this fatal error :

class cakeplugin is present in /var/www/cakephp/lib/Cake/Core

I am trying to use google oauth plugin for cakephp app , after following steps as given on :

https://github.com/uzyn/opauth-google/blob/master/README.md

But when I run my app I get above mentioned fatal error,

Do I need to change the links or copy the plugin file ? Or something wrong is ther ein my approach?


--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Class 'CakePlugin' not found while using google Oauth plugin

Piotr Beschel
clone or unzip whatever plugin to APP_DIRECTORY/Plugin/Opauth.
clone unzip strategies to Opauth/Strategy/Strategy_Name
if your app domain is http://localhost/App_Name edit Opauth bootstrap.php and set
Configure::write('Opauth.path', 'App_Name/auth/');
load plugin:
CakePlugin::load('Opauth', array('routes' => true, 'bootstrap' => true));
Write Strategies keys to plugin bootstrap.php or app bootstrap.php

example:
Configure::write('Opauth.Strategy.Facebook', array(
   'app_id' => 'YOUR FACEBOOK APP ID',
   'app_secret' => 'YOUR FACEBOOK APP SECRET'
));

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Loading...