Support » Plugin: Paid Memberships Pro - bbPress Add On » TGM Plugin Activation Error with version 1.3 update today

  • I just tried to update pmpro bbpress addon in my wordpress 4.3 installation. Here is the error that appears in the browser on the server after the plugin is activated and I return to the plugins page within the admin panel.

    “PHP Warning: get_class() called without object from outside a class in C:\Inetpub\vhosts\sedm.org\httpdocs\wp-content\themes\kleo\kleo-framework\lib\class-tgm-plugin-activation.php on line 3010 PHP Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in C:\Inetpub\vhosts\sedm.org\httpdocs\wp-content\themes\kleo\kleo-framework\lib\class-tgm-plugin-activation.php on line 3010”

    The TGM Plugin Activation plugin seems to be added as part of this update, and it won’t activate. When I try to manually activate the TGM Plugin Activation, the above error happens again.

    I am running the Kleo theme, version 3.0.6:
    http://seventhqueen.com/themedemo/#kleo
    http://seventhqueen.com/premium-wordpress-themes

    Also running WordPress 4.3 and PHP 5.5.28. The bbpress pmpro addon is version 1.3.

    This problem is similar to the following problem:
    https://wordpress.org/support/topic/cannot-activate-plugin-fatal-error-3?replies=7#post-7354103

    The problem happens even though the TGM Plugin Activation version 2.5.0 is installed as suggested in the above post.

    When is this going to be fixed?

    https://wordpress.org/plugins/pmpro-bbpress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Here is what appears at line 3010 of the error indicated in the previous post:

    “$tgmpa_instance = call_user_func( array( get_class( $GLOBALS[‘tgmpa’] ), ‘get_instance’ ) );”

    This was fixed in TGMPA v2.5.2 – the Kleo theme and/or the pmpro bbpress plugin should upgrade the version they include. One of them is using v2.5.0/1. (The other probably an even more outdated one 😉 – actually, yes, just checked pmpro bbpress is using v2.3.6 which is nearly three years old/outdated. )

    Installing the TGM 2.5.2 plugin doesn’t solve the problem. Now:
    1. There is a warning to update to 1.3 of the pmpro bbpress addon.
    2. When you tell it to update, nothing happens.
    3. When you look at the 1.3 changelog, its EMPTY!

    There is STILL something wrong.

    Thanks anyway, but no cigar.

    Here is the fix:
    1. You can’t do an auto update from within wordpress 4.3. That will try to update to 1.2 instead of 1.3.
    2. The WordPress plugins directory still lists version 1.2 as the latest, even though the plugin itself tries to update to 1.3.
    https://wordpress.org/plugins/pmpro-bbpress/
    3. You have to download the 1.3 update from GitHub and bypass the auto update from within WordPress.
    https://github.com/strangerstudios/pmpro-bbpress

    Jason needs to add version 1.3 to the wordpress plugin directory so that the auto update from the plugin directory will work. Until he does this, the above manual procedure is necessary.

    Actually sunspot10, the update to v2.5.2 *did* solve the issue you initially reported.

    The other issues are unrelated and are to do with the fact that the 1.3 versions of pmpro bbpress has not been uploaded to the wp.org repo – as you correctly concluded – not with TGMPA.

    Thanks @sunspot10 for pointing to the solution as to why the plugin keeps saying there is an update to version 1.3 and when an update is done, it is still at version 1.2.

    What is sad is the plugin was last updated on Github three months ago. Given there is a team over there at PMPro it would seem reasonable that one of them would take the initiative and make the correction here at the WordPress.org Repository.

    I don’t know why the plugin is showing it needs an update if it isn’t updated here in the WordPress.org Repository, but it is. Very frustrating to keep getting that update notice and not knowing it is updated only on github and not here.

    Regardless, thanks for clearing that up. Updated and no more notice. What a PITA..

    After updating, the plugin it gives me this error
    Fatal error: Call to protected TGM_Plugin_Activation::__construct() from invalid context in /home/vdds/public_html/wp-content/themes/vdds/includes/class-tgm-plugin-activation.php on line 1035

    Not sure if this is from the theme or the plugin issue..

    Anyone can help?

    I don’t know why the plugin is showing it needs an update if it isn’t updated here in the WordPress.org Repository, but it is.

    Probably because the plugin/theme requiring/recommending it via TGMPA has set the minimum version to 1.3 (even though it’s not available through wp.org).

    After updating, the plugin it gives me this error
    Fatal error: Call to protected TGM_Plugin_Activation::__construct() from invalid context in /home/vdds/public_html/wp-content/themes/vdds/includes/class-tgm-plugin-activation.php on line 1035

    Not sure if this is from the theme or the plugin issue..

    Anyone can help?

    As I said above, those kind of issues are fixed with TGMPA v2.5.2. PMPro still includes v2.5.0 in their 1.3 version which can be the cause of this issue.

    Not sure which version is included with the VDDS theme, but it might well be worth your while to check their TGMPA version too.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TGM Plugin Activation Error with version 1.3 update today’ is closed to new replies.