• Resolved zenacomp

    (@zenacomp)


    As of 11/7/2023, our client is getting a fatal error logging into their website – wordpress admin and customer front end log in. We have the groups plugin installed and did update it to the latest version.

    However, when we login we get this:

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\capabilities.php:878 Stack trace: #0 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\groups\lib\access\class-groups-post-access.php(233): current_user_can() #1 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-hook.php(324): Groups_Post_Access::posts_where() #2 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\plugin.php(256): WP_Hook->apply_filters() #3 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-query.php(2717): apply_filters_ref_array() #4 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-query.php(3824): WP_Query->get_posts() #5 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\post.php(2452): WP_Query->query() #6 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\advanced-custom-fields\includes\class-acf-internal-post-type.php(401): get_posts() #7 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\advanced-custom-fields\includes\class-acf-internal-post-type.php(359): ACF in?D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\capabilities.php?on line?878

    Please help!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • gtsiokos

    (@gtsiokos)

    Hi there,

    The error you get mentions an undefined WP Core function. However, as a core function it is already defined so the error relates to an issue in your installation or most probably a conflict. Groups plugin is only calling this function when needed, this is why it appears in the trace.

    I would recommend you to disable your plugins one-by-one until you reach the conflicting one. Also, apart from your plugins it would also be useful to temporary switch to a different theme.

    Kind regards,

    George

    gtsiokos

    (@gtsiokos)

    Following-up on this, if you like to share some more details on your setup, we could try and replicate it locally to check if the issue occurs on our side as well.

    Which version of ACF do you use and what is the PHP version currently running on your hosting server?

    Kind regards,

    George

    Plugin Author Kento

    (@proaktion)

    We couldn’t replicate the issue, feel free to follow up here or there if it still persists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error on Login – using Groups Plugin’ is closed to new replies.