• Resolved SharleenCohen

    (@sharleencohen)


    Hi

    I was just installing this plugin and got the message ‘Fatal error: Call to protected TGM_Plugin_Activation::__construct() from invalid context in /home/wp_iefktb/globegirdler.com/wp-content/themes/x/framework/functions/global/admin/tmg/setup.php on line 960’

    I can’t do anything else now either, I can’t log into my site at all.

    Please help!!!

    Thanks πŸ™‚

    https://wordpress.org/plugins/better-facebook-page-box/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Daniele De Rosa

    (@bloodspencer)

    Hi SharleenCohen,

    thanks for using the support forum. 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.

    Temporary solution: Login to your FTP client and delete the “better-facebook-page-box” folder located in wp-content/plugins/. After doing that the login should work again.

    Then you should inform the author of your theme about this conflict with the following example message:

    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.

    If you have additional questions, ask me! πŸ™‚

    Regards,
    Bloodspencer

    @bloodspencer On that note, could you please upgrade the version of TGMPA you include with the plugin to the current version (2.5.2) ?
    http://tgmpluginactivation.com/download/

    While I totally agree with your answer and suspect that the theme @sharleencohen has installed is using a *very* outdated version of TGMPA (pre 2.3.6), if you upgrade the TGMPA version, it will get rid of this issue. The TGMPA team reverted the change that caused this particular error as too many themes and plugins were apparently still using ancient versions causing too many conflicts and support issues.

    Having said that – @sharleencohen please do contact the theme author to ask them to upgrade their included version of TGMPA too as the version they are using is ancient, buggy and has minor security issues.

    As a quick fix @sharleencohen:

    1. Download the current version of TGMPA from http://tgmpluginactivation.com/download/
    2. Unzip the file and
    3. Copy/upload (via FTP) just the class-tgm-plugin-activation.php file to the /wp-content/plugins/better-facebook-page-box/admin/ and the /wp-content/themes/x/framework/functions/global/admin/tmg/ directory of your website, replacing the existing class-tgm-plugin-activation.php file.

    Once you’ve done that, all should be fine again and you should be able to use both the theme and this plugin in one site without issue (well, at least none caused by TGMPA).

    Hope this helps.

    Smile,
    Juliette

    Plugin Author Daniele De Rosa

    (@bloodspencer)

    Hi Juliette,

    I must confess that i just overseen the new version of TGMPA. This are very good news! Thanks a lot!

    I will include it soon.

    Have a nice day,
    Bloodspencer

    @bloodspencer Glad to hear it! And please keep encouraging others developers to upgrade too πŸ˜‰

    Thread Starter SharleenCohen

    (@sharleencohen)

    Thank you both for your help, I really appreciate it.

    Juliette – I followed your instructions however I only found the class-tgm-plugin-activation.php file in buddypress, which comes with the X theme. Not sure if I should be deleting it?

    Bloodspencer – after doing following Juliette’s instructions I figured I would delete the fb plugin just to get moving. My ftp client won’t let me as it says there is no such file. I’ve put in a support ticket to my webhoster however if you have any other advice do let me know.

    Many thanks again πŸ™‚

    Plugin Author Daniele De Rosa

    (@bloodspencer)

    Hi Sharleen,

    i committed the new update of my plugin a few minuts ago. You can try to download the new version (1.4) and to overwrite the existing folder “better-facebook-page-box” in plugins directory with the new.

    Hope that helps!

    Regards,
    Bloodspencer

    I only found the class-tgm-plugin-activation.php file in buddypress, which comes with the X theme. Not sure if I should be deleting it?

    @sharleencohen I wouldn’t delete it as if no other copy of the class/file is active in your install, you’ll start getting fatal errors of the type “function could not be found”.

    If you have a way to search your whole WP install, try searching for the file or alternatively for the text phrase class TGM_Plugin_Activation within the whole file base to find any other copies and verify if they are up-to-date.

    If they are, it will say @version 2.5.2 near the top of the file.
    If they are not, you can safely replace the file with the new version. Also, please contact the author of the theme/plugin to ask them to upgrade otherwise your change will be lost when they release a new version of the plugin/theme.

    Smile,
    Juliette

    @bloodspencer – sorry to be a pain, but you’re still not on the latest version of TGMPA, you’re currently on 2.5.1, while 2.5.2 is the latest.

    Plugin Author Daniele De Rosa

    (@bloodspencer)

    @jrf Ooooops πŸ˜€ Committing before going to sleep is a bad idea πŸ˜€ thanks, now the newest version 2.5.2 is included πŸ‘

    @sharleencohen Could you solve your issue?

    Greetings,
    Bloodspencer

    Thread Starter SharleenCohen

    (@sharleencohen)

    Hi again

    I didn’t delete the TGM_Plugin_Activation from Buddy Press or find it find it elsewhere, however when I just checked the version of Better Facebook Page Box was no longer there – it was there yesterday and I couldn’t delete it!

    I’m not entirely sure what happened or what worked however I can now log in via the WordPress login and I’ve uploaded the newest version of Better Facebook Page Box plugin.

    Thanks again so much to you both for your help πŸ™‚

    Plugin Author Daniele De Rosa

    (@bloodspencer)

    @sharleencohen Glad to hear it! Thanks and have fun with the plugin! πŸ™‚ If you like the plugin and / or the support quality, i would be very happy about your rating πŸ™‚ https://wordpress.org/support/view/plugin-reviews/better-facebook-page-box

    Thanks and have a nice day!

    Regards,
    Bloodspencer

    Glad things are sorted on both ends. Guess we can mark this topic as resolved now ?

    Thread Starter SharleenCohen

    (@sharleencohen)

    Yes, please do πŸ™‚

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal error message whilst install attempted’ is closed to new replies.