• Resolved invivid

    (@invivid)


    Hi, we use WP Engine and our site failed to upgrade to 2.2.1 and 2.2.2 of the Tablepress plugin.

    Uncaught Error: Call to undefined function fs_get_optional_constant() in /nas/content/live/site/wp-content/plugins/tablepress/libraries/freemius/includes/class-freemius.php:1361 
    
    Stack trace: 
    #0 /nas/content/live/site/wp-includes/class-wp-hook.php(310): Freemius->_run_garbage_collector('') 
    
    #1 /nas/content/live/site/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) 
    
    #2 /nas/content/live/site/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 
    
    #3 /nas/content/live/site/wp-settings.php(495): do_action('plugins_loaded') 
    
    #4 /nas/content/live/site/wp-config.php(119): require_once('/nas/content/li...') 
    
    #5 /nas/content/live/site/wp-load.php(50): require_once('/nas/content/li...') 
    
    #6 /nas/content/live/site/wp-admin/admin-ajax.php(22): require_once('/nas/content/li...') 
    
    #7 {main} thrown on line 1361 in file wp-content/plugins/tablepress/libraries/freemius/includes/class-freemius.php
    • This topic was modified 2 years, 7 months ago by invivid.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    That looks strange. I’m not really sure why that happens and I haven’t received similar reports like this so far… Missing functions could indicate that maybe a PHP file is missing or incomplete. Can you therefore please try installing TablePress from a fresh download? (You deactivate and delete it on the “Plugins” screen and then re-install it from the “Plugins” -> “Add New” screen.)

    If that still doesn’t work, can you please try again after temporarily deactivating all other plugins? That way, we can rule out that other plugins interfere here, maybe, e.g. by also loading the Freemius SDK code library.

    Regards,
    Tobias

    Very interesting.

    I’ve just completed an upgrade and got this error on the Stackable plugin instead.

    I also upgraded TablePress to 2.2.2 in the same batch after updating Stackable.

    This makes me wonder if this is not specific to a plugin but has something to do with WordPress and/or WPEngine (we are also with WPEngine).

    Uncaught Error: Call to undefined function fs_get_optional_constant() in /nas/content/live/site/wp-content/plugins/stackable-ultimate-gutenberg-blocks/freemius/includes/class-freemius.php:1361
    
    Stack trace:
    #0 /nas/content/live/site/wp-includes/class-wp-hook.php(310): Freemius->_run_garbage_collector('')
    
    #1 /nas/content/live/site/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
    
    #2 /nas/content/live/site/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #3 /nas/content/live/site/wp-settings.php(495): do_action('plugins_loaded')
    
    #4 /nas/content/live/site/wp-config.php(120): require_once('/nas/content/li...')
    
    #5 /nas/content/live/site/wp-load.php(50): require_once('/nas/content/li...')
    
    #6 /nas/content/live/site/wp-admin/admin-ajax.php(22): require_once('/nas/content/li...')
    
    #7 {main}
      thrown
    
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for checking this! It seems that Stackable is also using the Freemius SDK software component (for offering an integration related to upgrading plugins to premium versions and similar).

    From what I can see, they are also using the latest version 2.6.0 of that Freemius SDK, just like TablePress. So, what would be interesting here, is if there are maybe other plugins or themes on the site that also use this SDK, but maybe in different versions. You might be able to see that by going to https://example.com/wp-admin/admin?php?page=freemius (where example.com would be your domain). Can you please check that?

    Regards,
    Tobias

    Thread Starter invivid

    (@invivid)

    Hi Tobias,

    Quick update for us – I ended up downloading a backup from WPEngine and updating the plugin worked without issue when running on a development computer and no other changes.

    I am wondering if it has to do with the managed plugins that are automatically included with WPEngine and some combination of our setup.

    We had to remove the plugin from the production environment as we cannot troubleshoot there by disabling plugins.

    Hope this is helpful.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I don’t think that the plugins that are included with WPEngine play a role here. More likely it’s some other plugin that might also be using that Freemius SDK, as described above.

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    .

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

The topic ‘2.2.2 Upgrade Error’ is closed to new replies.