Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal error: Call to undefined function bp_get_profile_field_data


  • dmotz
    Participant

    @dmotz

    I’m getting the following error message show up in the profile background image:

    Fatal error: Call to undefined function bp_get_profile_field_data() in /home2/poolpros/public_html/staff/wp-content/themes/social-learner/buddypress/members/single/member-header.php on line 44

    I’m guessing it’s looking for something that isn’t there but I don’t know how to tell or better yet, how to fix it.

    Is there a way to reset something or can anyone help me figure this out? T

Viewing 1 replies (of 1 total)

  • dmotz
    Participant

    @dmotz

    Here’s the code (line 44 is: $address_field = boss_get_option( ‘boss_misc_profile_field_address’ );

    </div><!– #item-header-avatar –>

    <div id=”item-header-content”>
    <div class=”basic”>
    <h1><?php echo bp_get_displayed_user_fullname(); ?></h1><span class=”sep”><?php _e(‘, ‘,’social-learner’); ?></span>
    <h2 class=”user-nicename”>@<?php bp_displayed_user_username(); ?></h2>
    <?php
    $address_field = boss_get_option( ‘boss_misc_profile_field_address’ );
    if( $address_field ){
    $address = bp_get_profile_field_data( array( ‘field’=>$address_field ) );
    if( $address ){
    if(is_array($address)) {
    ?>
    <span class=”location”><?php echo join( ‘, ‘, $address );?></span>
    <?php
    } else {
    ?>
    <span class=”location”><?php echo stripslashes( $address );?></span>
    <?php
    }
    }
    }
    ?>
    </div>

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