Fatal Error after Grimlock for BuddyPress

This topic contains 2 replies, has 3 voices, and was last updated by  Jason 2 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14745

    Surrealer
    Participant
    • 35 Posts
    @surrealer

    After the Update of Grimlock for BuddyPress version 1.3.4 to 1.3.5, the logged out members get a fatal error message – this only comes up if you are logged out, if you are logged in already it works fine:

    [06-Jul-2020 13:38:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bp_setup_xprofile() in /var/www/vhosts/demo/httpdocs/wp-content/plugins/grimlock-buddypress/inc/customizer/class-grimlock-buddypress-customizer.php:92
    Stack trace:
    #0 /var/www/vhosts/vibemytoy.com/httpdocs/wp-includes/class-wp-hook.php(287): Grimlock_BuddyPress_Customizer->add_customizer_fields()
    #1 /var/www/vhosts/demo/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #2 /var/www/vhosts/demo/httpdocs/wp-includes/plugin.php(478): WP_Hook->do_action()
    #3 /var/www/vhosts/demo/httpdocs/wp-settings.php(518): do_action()
    #4 /var/www/vhosts/demo/httpdocs/wp-config.php(112): require_once(‘/var/www/vhosts…’)
    #5 /var/www/vhosts/demo/httpdocs/wp-load.php(37): require_once(‘/var/www/vhosts…’)
    #6 /var/www/vhosts/demo/httpdocs/wp-admin/admin.php(34): require_once(‘/var/www/vhosts…’)
    #7 /var/www/vhosts/demo/httpdocs/wp-admin/plugins.php(10): require_once(‘/var/www/vhosts…’)
    #8 {main in /var/www/vhosts/demo/httpdocs/wp-content/plugins/grimlock-buddypress/inc/customizer/class-grimlock-buddypress-customizer.php on line 92

    So the bug is in the newly added lines at:
    class-grimlock-buddypress-customizer.php:92

    so the bug is in the first line here:
    // Initialize necessary BP components to set up certain customizer fields (“members_displayed_profile_fields”)
    bp_setup_xprofile();
    $bp = buddypress();
    $bp->core->setup_globals();
    $bp->profile->setup_globals();

    I read somewhere that this happens if the plugin is called before it’s loaded.

    #14752

    Jean-Pascal
    Moderator
    • 615 Posts
    @themopteryx
    Themosaurus Support

    Hi @surrealer,

    Thanks for getting in touch! We’ve received this request and we’ll get you an answer shortly. 🙂

    We really thank you for your precise feedback.

    Kind regards,

    #14755

    Jason
    Moderator
    • 343 Posts
    @themoceratops
    Themosaurus Support

    Hi @surrealer,

    There was indeed an issue with Grimlock BuddyPress, thank you for your feedback.

    We have just released a new update of Grimlock BuddyPress. Updating the plugin to the latest version (1.3.6) should fix this issue.

    Kindest regards,

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Fatal Error after Grimlock for BuddyPress’ is closed to new replies.