• When running WP cron tasks from WP CLI the following fatal error is thrown:

    PHP Fatal error:  Uncaught Error: Call to a member function update_thread() on null in /home/test/www/wp-content/plugins/disqus-comment-system/disqus.php:801
    Stack trace:
    #0 /home/test/www/wp-content/plugins/disqus-comment-system/disqus.php(727): dsq_update_permalink(Object(WP_Post))
    #1 /home/test/www/wp-content/plugins/disqus-comment-system/disqus.php(754): dsq_sync_post('1089')
    #2 /home/test/www/wordpress/wp-includes/plugin.php(601): dsq_sync_forum()
    #3 phar:///usr/local/bin/wp/php/commands/cron.php(208): do_action_ref_array('dsq_sync_forum', Array)
    #4 phar:///usr/local/bin/wp/php/commands/cron.php(178): Cron_Event_Command::run_event(Object(stdClass))
    #5 [internal function]: Cron_Event_Command->run(Array, Array)
    #6 phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array)
    #7 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
    #8 phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php(351): call_ in /home/test/www/wp-content/plugins/disqus-comment-system/disqus.php on line 801

    Script to loop through all the event hooks: https://gist.github.com/bjornjohansen/a00a9fee5475c4dadb56#file-run-wp-cron-sh

The topic ‘Uncaught Error: Call to a member function update_thread() on null’ is closed to new replies.