Skip to:
Content
Pages
Categories
Search
Top
Bottom

(BP-1.2) friends requests page has database error

  • Avatar of epsi
    epsi
    Participant

    @epsi

    I’ve got a DB error in my live site, but it didn’t show in local computer.

    http://iluni-ftui.org/alumni/epsi/sobat/requests/

    WordPress database error

    SELECT COUNT(DISTINCT ID)

    FROM ft_users WHERE spam = 0 AND deleted = 0 AND user_status = 0 AND ID IN ( )

    I’ve trace it. CMIIW

    :-: bp-themes/bp-default/members/single/friends/requests

    if ( bp_has_members( ‘include=’ . bp_get_friendship_requests() . ‘&per_page=0′ ) )

    :-: bpcore/bp-core-templatetags.php:30

    function bp_core_members_template

    else if ( false !== $include )

    This is not the case because

    :-: bp-friends/bp-friends-templatetag:166

    function bp_get_friendship_requests()

    return implode…

    This function will return empty string when it has no unconfirmed request.

    So $include would have an empty value, but not exactly a false object.

    Another question.

    1. How do I submit ticket to http://trac.buddypress.org ?

    2. And how do I surpress WordPress database error ?

    Thank you for attention.

You must be logged in to reply to this topic.