Title: Undefined error
Last modified: August 24, 2016

---

# Undefined error

 *  Resolved [projectmunton](https://wordpress.org/support/users/projectmunton/)
 * (@projectmunton)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/)
 * Hi looks like a great plugin
 * I am just getting this error when trying to check it out locally …
 * Fatal error: Call to undefined method TGM_Plugin_Activation::get_instance() in
   wp-content/plugins/better-facebook-page-box/better-facebook-page-box.php on line
   27
 * Have you seen this error before?
    Many thanks in advance
 * [https://wordpress.org/plugins/better-facebook-page-box/](https://wordpress.org/plugins/better-facebook-page-box/)

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

 *  Plugin Author [Daniele De Rosa](https://wordpress.org/support/users/bloodspencer/)
 * (@bloodspencer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100799)
 * Hi 🙂
 * sorry for the late answer!
 * Please try to install the newest version, i fixed this error 🙂
 * Greetings!
 *  Thread Starter [projectmunton](https://wordpress.org/support/users/projectmunton/)
 * (@projectmunton)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100834)
 * Hi 🙂 sorry for the late reply … I have been offline
 * I just updated the plying … but when I activate it .. my Admin goes to a white
   screen, for all pages?
 * Any idea why this might be?
 *  Plugin Author [Daniele De Rosa](https://wordpress.org/support/users/bloodspencer/)
 * (@bloodspencer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100835)
 * Hmmm, very strange..
 * Which theme do you´re using? And are you using the plugin “Visual composer”?
 * Greetings!
 *  Plugin Author [Daniele De Rosa](https://wordpress.org/support/users/bloodspencer/)
 * (@bloodspencer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100836)
 * Would be helpful to set WP_DEBUG to ‘true’, maybe you get a notice which helps
   to solve your problem.
 * To set WP_DEBUG to true you have to open your wp-config.php in your wordpress
   root folder and edit the following line:
 *     ```
       define('WP_DEBUG', false);
       ```
   
 * to
 *     ```
       define('WP_DEBUG', true);
       ```
   
 * Then try to activate the plugin again 🙂
 *  Thread Starter [projectmunton](https://wordpress.org/support/users/projectmunton/)
 * (@projectmunton)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100841)
 * Hi … just got the debug up and running 🙂
 * getting a error connected with the theme as you suspected
 * Fatal error: Call to protected TGM_Plugin_Activation::__construct() from invalid
   context in
    framework/plugin-activation/class-tgm-plugin-activation.php on line
   959
 * Any reason why this might be causing an issue when used in conjunction with your
   plugin?
 *  Plugin Author [Daniele De Rosa](https://wordpress.org/support/users/bloodspencer/)
 * (@bloodspencer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100842)
 * Hi,
 * thanks for your reply! The author of your theme called the TGM Plugin not correctly,
   he tried to call the __construct() function directly not using the tgmpa() function,
   so you get conflicts with both.
 * **Solution 1: **
 * You can send a message to the author of your theme with a fix request. for the
   issue you can write the following:
 * > TGMPA should be called properly using the code from the example.php file. Implementations
   > which divert from that code , i.e. try to call __construct() directly not using
   > the tgmpa() function, causes errors and are impossible for us to support.
 * **Solution 2:**
 * If the author of your plugin is not contactable, you can send me access data 
   to [mail@danielederosa.de](https://wordpress.org/support/topic/undefined-error-4/mail@danielederosa.de?output_format=md)
   and i will fix the issue in your theme.
 * Many greetings!
 *  Thread Starter [projectmunton](https://wordpress.org/support/users/projectmunton/)
 * (@projectmunton)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100843)
 * Cool … thats great thanks, very much appreciated 🙂
 * I will contact the theme developer, to give him the feedback … hopefully he will
   update the theme for other users too 🙂
 * If I have not luck I will come back to take you up on your offer for solution
   2
 * Really appreciate the time and assistance … good luck with the plugin !!
 *  Plugin Author [Daniele De Rosa](https://wordpress.org/support/users/bloodspencer/)
 * (@bloodspencer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100844)
 * Thanks a lot! 🙂
 * Just contact me again if your theme developer can´t help you.
 * Good luck! 😉
 *  [multivisionstudios](https://wordpress.org/support/users/multivisionstudios/)
 * (@multivisionstudios)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100934)
 * Hi Everyone, I’m running into this problem.
    After installing trying to ACTIVATE
   a plugin i got this message for my website [http://www.multivisionstudios.com](http://www.multivisionstudios.com)
   and i can not get passed this, everthing seems to be gone. Anyone can help?
 * error:
 * Fatal error: Call to protected TGM_Plugin_Activation::__construct 959

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

The topic ‘Undefined error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/better-facebook-page-box_535355.svg)
 * [Better Facebook Page Box](https://wordpress.org/plugins/better-facebook-page-box/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-facebook-page-box/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-facebook-page-box/)
 * [Active Topics](https://wordpress.org/support/plugin/better-facebook-page-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-facebook-page-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-facebook-page-box/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [multivisionstudios](https://wordpress.org/support/users/multivisionstudios/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/undefined-error-4/#post-6100934)
 * Status: resolved