PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 5, 2022

[FIXED] Admad Social Auth route cannot be found

 January 05, 2022     cakephp, cakephp-3.0, social-authentication     No comments   

Issue

I want to integrate social auth with login and signup in cakephp for which I have used Admad-social-auth plugin.The plugin is working totally fine on local wamp but gives error on server. Any help will be appreciated.

Error: A route matching "array ( 'prefix' => false, 'plugin' => 
'ADmad/SocialAuth', 'controller' => 'Auth', 'action' => 'login', 'provider' => 
'google', '?' => array ( 'redirect' => NULL, ), '_ext' => NULL, )" could not be 
found.

https://puu.sh/DDXNf/d35d9cdbb8.png


Solution

The error means that there is no route matching ADmad/SocialAuth, I suspect this is happening during page rendering (i.e. when trying to "calculate" a button's link).

Most probably you haven't "registered" the plugin with Cake. To do that, add the below line to your cakephp bootstrap file (config/bootstrap.php)?

Plugin::load('ADmad/SocialAuth', ['bootstrap' => true, 'routes' => true]);


Answered By - Oerd
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing