Support » Plugin: Groups » issue with wp cron

  • Resolved macpheek


    Hi, I have an issue with wp cron when groups is activated, are you able to help at all?

    See below error log, when groups is activated and I run cron tasks it breaks the site and causes a critical error. Hope you can help…

    -bash-4.1$ wp cron event run –due-now
    PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /wp-includes/capabilities.php:668
    Stack trace:
    /wp-content/plugins/groups/lib/access/class-groups-post-access.php(230): current_user_can(‘groups_admin_gr…’)
    #1 /wp-includes/class-wp-hook.php(287): Groups_Post_Access::posts_where(‘ AND dc_posts.p…’, Object(WP_Query))
    #2 /wp-includes/plugin.php(249): WP_Hook->apply_filters(‘ AND dc_posts.p…’, Array)
    #3 /wp-includes/class-wp-query.php(2563): apply_filters_ref_array(‘posts_where’, Array)
    #4 /wp-includes/class-wp-query.php(3448): WP_Query->get_posts()
    #5 /wp-includes/class-wp-query.php(3559): WP_Query->query(Array)
    #6 /wp-content/plugins/sales-report-for-woocommerce/berocket in /wp-includes/capabilities.php on line 668

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