Skip to:
Content
Pages
Categories
Search
Top
Bottom

Registration Error


  • shakil9258
    Participant

    @shakil9258

    I’m using BuddyPress plugin with wpForo and when I going to register a user then get following error.
    Fatal error: Uncaught Error: Call to undefined function get_privacy_policy_url() in /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-content/plugins/buddypress/bp-members/bp-members-template.php:2421 Stack trace: #0 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-content/plugins/buddypress/bp-members/screens/register.php(76): bp_signup_requires_privacy_policy_acceptance() #1 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-includes/class-wp-hook.php(298): bp_core_screen_signup(”) #2 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #3 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(359): do_action(‘bp_screens’) #5 /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-includes/class-wp-hook.php(298): bp_screens(”) #6 /hermes/bosn in /hermes/bosnacweb05/bosnacweb05ac/b2351/ipg.checkkrocom/wp-content/plugins/buddypress/bp-members/bp-members-template.php on line 2421

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

  • Venutius
    Moderator

    @venutius

    Hi there, what version of WordPress are you using?


    Venutius
    Moderator

    @venutius

    By the looks of things this is a bug, the WP Function get_privacy_policy_url() was introduced in WP Version 4.9.6 however the BP function bp_signup_requires_privacy_policy_acceptance() does not check for that version before trying to execute get_privacy_policy_url(). Presumably you are using a previous version of WP and so this function is throwing an undefined function error. I’ll raise a bug report for this.

    A possible fix for this is to add the following line to plugins/buddypress/bp-members/bp-members-template.php line 2421, just after the function bp_signup_requires_privacy_policy_acceptance() is declared:

    if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '<' ) ) return false;


    Venutius
    Moderator

    @venutius

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