• Resolved ben

    (@benharri)


    ben@odin /v/w/tcpinball.org [1]> wp plugin auto-updates enable wp-api-privacy                                                                            0.450s
    PHP Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/tcpinball.org/wp-content/object-cache.php:2499
    Stack trace:
    #0 /var/www/tcpinball.org/wp-includes/option.php(612): wp_cache_get()
    #1 /var/www/tcpinball.org/wp-includes/option.php(164): wp_load_alloptions()
    #2 /var/www/tcpinball.org/wp-includes/l10n.php(63): get_option()
    #3 /var/www/tcpinball.org/wp-includes/l10n.php(165): get_locale()
    #4 /var/www/tcpinball.org/wp-includes/l10n.php(1340): determine_locale()
    #5 /var/www/tcpinball.org/wp-includes/l10n.php(1385): _load_textdomain_just_in_time()
    #6 /var/www/tcpinball.org/wp-includes/l10n.php(194): get_translations_for_domain()
    #7 /var/www/tcpinball.org/wp-includes/l10n.php(306): translate()
    #8 /var/www/tcpinball.org/wp-content/object-cache.php(796): __()
    #9 /var/www/tcpinball.org/wp-content/object-cache.php(2356): WP_Object_Cache::has_sqlite()
    #10 /var/www/tcpinball.org/wp-includes/load.php(868): wp_cache_init()
    #11 /var/www/tcpinball.org/wp-settings.php(146): wp_start_object_cache()
    #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1363): require('...')
    #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1282): WP_CLI\Runner->load_wordpress()
    #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
    #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #17 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
    #18 /usr/local/bin/wp(4): include('...')
    #19 {main}
    thrown in /var/www/tcpinball.org/wp-content/object-cache.php on line 2499
    Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/tcpinball.org/wp-content/object-cache.php:2499
    Stack trace:
    #0 /var/www/tcpinball.org/wp-includes/option.php(612): wp_cache_get()
    #1 /var/www/tcpinball.org/wp-includes/option.php(164): wp_load_alloptions()
    #2 /var/www/tcpinball.org/wp-includes/l10n.php(63): get_option()
    #3 /var/www/tcpinball.org/wp-includes/l10n.php(165): get_locale()
    #4 /var/www/tcpinball.org/wp-includes/l10n.php(1340): determine_locale()
    #5 /var/www/tcpinball.org/wp-includes/l10n.php(1385): _load_textdomain_just_in_time()
    #6 /var/www/tcpinball.org/wp-includes/l10n.php(194): get_translations_for_domain()
    #7 /var/www/tcpinball.org/wp-includes/l10n.php(306): translate()
    #8 /var/www/tcpinball.org/wp-content/object-cache.php(796): __()
    #9 /var/www/tcpinball.org/wp-content/object-cache.php(2356): WP_Object_Cache::has_sqlite()
    #10 /var/www/tcpinball.org/wp-includes/load.php(868): wp_cache_init()
    #11 /var/www/tcpinball.org/wp-settings.php(146): wp_start_object_cache()
    #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1363): require('...')
    #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1282): WP_CLI\Runner->load_wordpress()
    #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
    #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #17 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
    #18 /usr/local/bin/wp(4): include('...')
    #19 {main}
    thrown in /var/www/tcpinball.org/wp-content/object-cache.php on line 2499
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    Looks like the global is not initialized at this point in the WP-CLI call stack

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ben

    (@benharri)

    Never mind, I was running as the wrong user. Not a bug.

    Plugin Author OllieJones

    (@olliejones)

    Thanks for following up. I do that all the time with wp-cli. I’m trying to figure out how to make the plugin less sensitive to that.

    Thread Starter ben

    (@benharri)

    Would be great to have a more informative error message ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.