Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tfowles

    (@tfowles)

    I have an update for this. I update my plugin in a staging environment and push the changes to the production server. This process is not working. If I run the plugin update from the production server everything then works properly. Any thoughts on this?

    I’m having the same problem.

    After a little debugging, I found that the Facebook autoloader is trying to load /wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Facebook.php but my production site has the file as /wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/facebook.php, with a lowercase F.

    Renaming the file makes it work again.

    As for why that’s the case, it looks like the older version of the Facebook PHP SDK had a file named facebook.php. The newer SDK has a file named Facebook.php that the WSL plugin upgrade will have dropped into that same place, replacing the facebook.php file from before. Could just be that git or the file system or something decided not to change the case on that filename.

    As for my configuration, in case it helps debug further—MacBook Pro, plugins updated locally using wp-cli, changes pushed through git to gitlab, merged, and pulled onto Ubuntu server.

    Hi rlamb2,

    Thanks for informing this.
    Had the same issue, probably it was caused by case insensitivity in my Windows development machine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Class Facebook\Facebook not found’ is closed to new replies.