Skip to:
Content
Pages
Categories
Search
Top
Bottom

YD Profile Visitor Tracker


  • Kookidooki
    Participant

    @kookidooki

    Hello guys,

    I’ve just installed an external Buddypress plugin named YD Profile Visitor Tracker.
    I hope someone of us is using this too.

    I’ve followed the instructions at http://buddypress.org/community/groups/yd-profile-visitor-tracker/ and http://www.yann.com/en/wp-plugins/yd-profile-visitor-tracker

    But it’s throwing this error:

    Warning: strip_tags() expects parameter 1 to be string, array given in /home/frisco/wp-content/plugins/yd-profile-visitor-tracker/inc/pvt.inc.php on line 392

    From line 388-392 I’ve found this code:

    `
    // Fetch other (regular, default) WordPress (wp) user data
    if( function_exists( ‘get_userdata’ ) ) {
    $visitor_data = get_userdata( $data );
    foreach( $visitor_data as $key => $value ) {
    $data = strip_tags( $value );
    }
    `

    I’ve tried to fix this by modifying line 392:
    `
    $data = strip_tags( (string) $value ); `

    But now it’s throwing this error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /home/frisco/wp-content/plugins/yd-profile-visitor-tracker/inc/pvt.inc.php on line 392

    I hope someone is using this BP plugin too. Who can help me to fix this?

    Tanks in advance,

    Kookidooki

  • The topic ‘YD Profile Visitor Tracker’ is closed to new replies.
Skip to toolbar