[Plugin: WordPress Social Login] Fatal error: Cannot redeclare class FacebookApiException
-
Hi
I keep getting this error when trying to connect with the plugin. I have another facebook plugin with which I create Fan pages and reading up on the problem I see that it is a clash between plugins which both declare the same function. I have found a solution except that no where in the code can I see where you call this function and how to implement the solution. I would like to get this resolved as quickly as possible.
Here is the precise error. (Fatal error: Cannot redeclare class FacebookApiException in /wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/Facebook/base_facebook.php on line 107)
The solution is simple but I don
t know where to implement it as you don
t use the same call function. Please can you help me to implement this and maybe you can implement this solution as well in the plugin for I am certain that it is not only me who is confronted with the same problem.Solution:
To fix this Fatal error, replace:
include(facebook.php);
With this code:
if (!class_exists(‘FacebookApiException’)) {
include_once(‘facebook.php’);
}Thank you for a great plugin, I have just recently bought a plugin which was supposed to be used in the same manner, but it just does not function correctly. If I have known about your plugin I would rather have supported you and donated the cost to you.
https://www.ads-software.com/extend/plugins/wordpress-social-login/
- The topic ‘[Plugin: WordPress Social Login] Fatal error: Cannot redeclare class FacebookApiException’ is closed to new replies.