• Resolved ddyok

    (@ddyok)


    Hey,

    This suddenly showed up today when I tried to update the plugins:

    thrown in /var/www/wordpress/wp-content/mu-plugins/eos-deactivate-plugins.php on line 36
    Fatal error: Uncaught Error: Undefined constant "WP_SANDBOX_SCRAPING" in /var/www/wordpress/wp-content/mu-plugins/eos-deactivate-plugins.php:36
    Stack trace:
    #0 /var/www/wordpress/wp-settings.php(340): include_once()
    #1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1271): require('...')
    #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1192): WP_CLI\Runner->load_wordpress()
    #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
    #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(77): WP_CLI\Bootstrap\LaunchRunner->process()
    #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #6 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...')
    #7 /usr/local/bin/wp(4): include('...')
    #8 {main}
      thrown in /var/www/wordpress/wp-content/mu-plugins/eos-deactivate-plugins.php on line 36
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    I’m on latest WordPress (5.8.2), and seems to happen with all plugins.

    I do see the WP_SANDBOX_SCRAPING constact in wp-admin/includes/plugin.php:

    function plugin_sandbox_scrape( $plugin ) {
    if ( ! defined( ‘WP_SANDBOX_SCRAPING’ ) ) {
    define( ‘WP_SANDBOX_SCRAPING’, true );
    }

    So I’m not sure what happened.

    Any assistance much appreciated.

    Thank you,

    D.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Your mu-plugins/eos-deactivate-plugins.php seems to be the issue.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/mu-plugins/ and rename or delete eos-deactivate-plugins.php.

    Thread Starter ddyok

    (@ddyok)

    Thanks! Yes, it’s an error, and that file belongs to the “Freesoul Deactivate Plugins” plugin. Not sure whether that file is necessary or if it’s a bug on the developers part. Disabled the plugin for now and the error went away.

    Cheers,

    D.

    Moderator t-p

    (@t-p)

    Glad its sorted 🙂

    HI @ddyok

    I’ve received this notification because of the keyword Freesoul Deactivate Plugins. I’m the author.
    I suppose you see this error only when you use WP CLI, right?

    That file is the most important if you want to disable plugins on specific pages.

    Sorry for this error. Very strange you get a fatal error, this should be only a warning. In any case, I will fix it very soon.

    If you want to continue using the plugin, just delete the line:

    eos_dp_log( sanitize_text_field( ‘WP_CLI: ‘.WP_CLI.’; WP_SANDBOX_SCRAPING: ‘.WP_SANDBOX_SCRAPING ) );

    and you will not have that error any more

    Thread Starter ddyok

    (@ddyok)

    Hey Jose,

    Thanks. Yes, I thought that eos_dp_log() just logs the warning too, not sure why it’s critical. I’ve added the issue on the plugin support forum, too, by the way (don’t want to pollute with multiple issues, so we can continue that on either one).

    Cheers,

    D.

    Moderator t-p

    (@t-p)

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

The topic ‘Fatal error when updating plugins: Undefined constant “WP_SANDBOX_SCRAPING”’ is closed to new replies.