Title: [Facebook plugin] Fatal Error
Last modified: August 20, 2016

---

# [Facebook plugin] Fatal Error

 *  Resolved [desisliva](https://wordpress.org/support/users/desisliva/)
 * (@desisliva)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/)
 * Hello 🙂
 * I just installed the Facebook plugin following the instructions carefully and
   now I can’t get any access to my wp-admin ;/ Whenever I try to access it, this
   shows up:
 * > Fatal error: Wrong parameters for Exception([string $exception [, long $code[,
   > Exception $previous = NULL]]]) in /home/stevens/misc/dgs8jcr1/public_html/wp-
   > content/plugins/facebook/includes/facebook-php-sdk/base_facebook.php on line
   > 54
 * I saw other people having the same problem.. Can someone help, please? I just
   want to uninstall it. Any help is very much appreciated.
 * Thank you 🙂

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [anibal.aguila](https://wordpress.org/support/users/anibalaguila/)
 * (@anibalaguila)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821400)
 * facebook plugin error on base_facebook.php on line 54
    Hi! have the **same issue**.
   Somebody know why? Thanks in advance,
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821401)
 * **[@anibal](https://wordpress.org/support/users/anibal/).aguila**, Please start
   your own thread. It’s considered impolite to interrupt someone else’s thread 
   like that.
 *  [anibal.aguila](https://wordpress.org/support/users/anibalaguila/)
 * (@anibalaguila)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821402)
 * Hi [@jan](https://wordpress.org/support/users/jan/), **thanks and sorry**. Is
   my first time on the forum. Can you explain me why is impolite? I have the same
   problem and think this thread is collaborative and consistent.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821403)
 * Not a problem and when you create your own thread, I’ll be happy to explain. 
   😉
 * [http://wordpress.org/support/plugin/facebook#postform](http://wordpress.org/support/plugin/facebook#postform)
 * In the meanwhile for the original poster: It could be a conflict with your theme
   or another plugin, or your site requires updating. All of these reasons are why
   this is good troubleshooting advice.
 * Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the Twenty Eleven theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 * – re-uploading the wp-admin and wp-includes folders from a **fresh** download
   of WordPress.
 * Also consider giving this a good read too if you’ve upgraded to 3.4.
 * [http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list?replies=4](http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list?replies=4)
 *  Thread Starter [desisliva](https://wordpress.org/support/users/desisliva/)
 * (@desisliva)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821404)
 * Thank you for your reply, Jan Dembowski :))
 * Unfortunately, I can’t get any access to WP-Admin, every page that I try shows
   the same message above with the Fatal Error. Another problem is that the website
   is a college one and I don’t have access to the main FTP but will try talking
   to the IT department see if they can help out.
 * Will keep you posted, when I try the suggestions above.
 * Thank you very much again for your quick reply 🙂
 * Have a lovely day :))
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821405)
 * > I can’t get any access to WP-Admin
 * *desisilva has an IT department..? Fortunate! 😉 *
 * Show your IT department that link, once they get access to the file system they
   just have to delete `wp-content/plugins/facebook` directory. You should be able
   to get back in right after that.
 * Please make sure they only delete that one `facebook` directory only.
 *  [anibal.aguila](https://wordpress.org/support/users/anibalaguila/)
 * (@anibalaguila)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821406)
 * Hi [@jan](https://wordpress.org/support/users/jan/) & [@desisliva](https://wordpress.org/support/users/desisliva/),
   here my solution: (add this code before the line 54)
 * > if(!is_int($code)) {
   >  $code = 0; }
 * the explanation:
    [http://blog.robert.mcfrazier.com/facebook-wordpress-plugin-error-install](http://blog.robert.mcfrazier.com/facebook-wordpress-plugin-error-install)
 *  [jmunchbach](https://wordpress.org/support/users/jmunchbach/)
 * (@jmunchbach)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821413)
 * Hi [@anibal](https://wordpress.org/support/users/anibal/).aguila, sorry to interrupt
   your thread. I was desperate. It will never happen again. BTW, I solved my fatal
   error… I was not able to access ANYTHING on my site or in my Dashboard… So, “
   fixing a line of code” wasn’t an option – even if I did have a clue how to do
   it.
 * Here’s what corrected my problem. If you’re a rookie, like me, this might be 
   helpful…
 * 1.Access your site using FTP.
    2.Find the facebook plugin in the plugin folder…(
   wp-content/plugins/facebook) 3.Delete the entire folder 4.Start from the beginning–
   but this time don’t install the first plugin listed for facebook – that’s the
   one that killed my site, the second facebook plugin listed seeems to have the
   correct code and it walks you through the steps needed to create your facebook
   app and then it workds like its supposed to.
 * So far, no problems and it is an awesome plugin (so far).
 * Hope this helps and sorry again for interrupting the thread. I appreciate the
   instruction about the proper etiquette
 *  [Perepandel](https://wordpress.org/support/users/perepandel/)
 * (@perepandel)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821580)
 * I registered just to post in this thread.
 * 1st of all, just to clarify: [@jmunchbach](https://wordpress.org/support/users/jmunchbach/),
   just because you cannot access anything on your site, the solution is what anibal.
   aguila proposed: just fixing some lines of code, exactly in the file
    /wp-content/
   plugins/facebook/includes/facebook-php-sdk/base_facebook.php, line 54 Please 
   note your solution took 4 tedious steps and it just made your WP site work again,
   but it didn’t solve the bug in the Facebook plugin. Instead of that amount of
   work, you just would have need to edit one single file and upload it by FTP (
   or edit it directly through SSH) – both site and plugin would had beed working
   after some seconds.
 * About the “interrumping the thread” matter: Jan, please tell us why this is not
   the correct place to put our comments on this question. After more than 15 years
   using the Internet and posting on forums, I think I know how to use them and,
   to my understanding, it’s nonsense to start a new thread each time a user has
   the same problem as another one (actually THAT would be a reason to complain).
   That being said, anibal.aguila, jmunchbach and myself did the correct: they commented
   on the matter and contributed to solve it.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821581)
 * Sorry, did you just chime in to help or just complain about the rules…?
 * >  Jan, please tell us why this is not the correct place to put our comments 
   > on this question.
   > …
   > After more than 15 years using the Internet and posting on forums
 * Welcome to the WordPress forums. Please review this link.
 * [http://codex.wordpress.org/Forum_Welcome](http://codex.wordpress.org/Forum_Welcome)
 * I asked anibal.aguila to start his own thread because I doubt that he’s on the
   same server, running the same exact PHP version, with the same Apache version
   and same Facebook info as the original poster desisilva.
 * When you post into someone else thread and not contributing to solving the OP’s
   problem, then you are being impolite. Start your own thread instead as I indicated,
   that’s how support is offered here.
 *  [Perepandel](https://wordpress.org/support/users/perepandel/)
 * (@perepandel)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821583)
 * Both things 😉
 * Mainly I came here searching for help, since I had the “Fatal error” problem.
 * I was near to solve it by myself; I outputed the value of $code and $msg, noticed
   the 1st was a string and looked at the documentation of the Exception class in
   PHP but didn’t realized it was expecting an int; insted, I assumed the error 
   was at Facebook’s server (that’s what “http_failure” suggested me).
 * Then suddenly I read anibal.aguila solution and realized it was much easier than
   I thought, which I confirmed after reading the explanation in the link he posted.
 * So Jan, I wanted to thank him and confirm his answer was right and give him the
   credit he deserves.
 * To me, the final result proves he came to post in the right place 🙂
 * Also wanted to advice jmunchbach that he could haved saved a lot of work!
 *  [jmunchbach](https://wordpress.org/support/users/jmunchbach/)
 * (@jmunchbach)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821584)
 * Just wanted to thank each of you for helping me fix my fatal error at MoneyBible.
   org This was my first time to post a WP problem and I’m impressed with the community
   service here. Take care all… Jim
 *  Thread Starter [desisliva](https://wordpress.org/support/users/desisliva/)
 * (@desisliva)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821605)
 * Hello again!
 * [@jan](https://wordpress.org/support/users/jan/) Dembowski Thank you so muuuuch:))
   I deleted the folder and everything is back to normal. Thank you again, life 
   saver! :))
 *  [Perepandel](https://wordpress.org/support/users/perepandel/)
 * (@perepandel)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821607)
 * [@desisliva](https://wordpress.org/support/users/desisliva/)
 * Did you read the entire thread? You could had gotten both your site and the plugin
   working if you simply did what [@anibal](https://wordpress.org/support/users/anibal/).
   aguila told: edit a few lines in wp-content/plugins/facebook/includes/facebook-
   php-sdk/base_facebook.php. Much cleaner, much easier. To edit a file you just
   have to download it by FTP, then open it in you favorite editor in your computer
   then upload it again. Or edit it directly in your hosting if you know how to 
   connect through SSH.
 *  Thread Starter [desisliva](https://wordpress.org/support/users/desisliva/)
 * (@desisliva)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821608)
 * [@perepandel](https://wordpress.org/support/users/perepandel/),
 * If you read the entire thread, you would know I wanted to uninstall the plugin,
   not to fix it :))
    Thanks for the advice though 🙂
 * Have a lovely day!

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘[Facebook plugin] Fatal Error’ is closed to new replies.

 * 15 replies
 * 5 participants
 * Last reply from: [desisliva](https://wordpress.org/support/users/desisliva/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-plugin-fatal-error/#post-2821608)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
