Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add Friend – not adding


  • cdutoit
    Participant

    @cdutoit

    Hello,

    Just installed BP RC1 on WPMU 2.7.

    Seems to work great but am experiencing a problem with the “Friends” module.

    When I log in I go to “My Account”->”Friends”. It shows a list of people I could add as friends. Next to each person is the “add friend” button. When I click it, it the icon changes to the “working” icon, but it never stops. So graphically, it looks like it is doing something but never stops, and the friend doesn’t get added (nor does the recipient get a Friend request).

    Any ideas?

    I’d provide logs – just not sure what you would need – I’m running it on a cpanel server.

    Thanks in advance,

Viewing 25 replies - 1 through 25 (of 98 total)

  • modemlooper
    Moderator

    @modemlooper

    This is happening to me it just keeps spinning but the user is getting added. The page does not refresh or alert letting you know they have been added.


    Burt Adsit
    Participant

    @burtadsit

    Is there anything in your error_log? What do you see there when you reproduce this?


    cdutoit
    Participant

    @cdutoit

    Hi —

    Thanks for pointing out that there is a error_log! I didn’t know about that. At any rate, unfortunately there is no error in there.

    I click “add” and then it just spins. Nothing happens though. I did it just now again and verified no error gets spit to error_log – I also checked the friends db table and its empty.

    Quite lost so appreciate any help,

    Chris


    Burt Adsit
    Participant

    @burtadsit

    IE, FF, Safari? What environments are you running in? Windows, linux. Subdomain or subdirectory installs of wpmu. Were you running bp previously and this is an upgrade to RC-1? If so did you update the member theme?


    cdutoit
    Participant

    @cdutoit

    I’ve tried IE7 and Safari, both behave exactly the same way (spinning icon, not action).

    I did have a earlier release of BP installed (never tried the friends then). To be sure, I deleted the old files, dropped the DB tables and copied the new files over.

    It is a WPMU 2.7 install using subdomains. It is a linux box on a hosted environment. You can access the site here: jurnl.com

    (You’re welcome to try it out – I appreciate the help).

    Other info: when I hover over the friends button I see this is the URL its constructed:

    http://jurnl.com/members/admin/friends/add-friend/3?_wpnonce=7e34976df0

    Just trying to go directly to that URL doesnt do anything – not sure if thats valid but just trying to debug.

    Thanks again,

    Chris


    cdutoit
    Participant

    @cdutoit

    Edit: When I said I go to: http://jurnl.com/members/admin/friends/add-friend/3?_wpnonce=7e34976df0 and it “doesnt do anything”, I meant, it still doesnt add the friend. It does however, refresh and return to the profile page.


    Burt Adsit
    Participant

    @burtadsit

    I see what you mean on your site. I created an account there. I’ll look into it.


    cdutoit
    Participant

    @cdutoit

    Thanks much! Just FYI there is another thread here:

    https://buddypress.org/forums/topic.php?id=1322

    That is referencing the same problem, but also no solution yet.

    Really appreciate the help

    Chris


    Burt Adsit
    Participant

    @burtadsit

    Chris, do me a favor please. I created a group on your site called ‘test’. See if you can join that group. Go to the groups directory and ‘join’ that group. Does that do the same thing? I can’t test this myself. I’m already a member of that group. :)

    Your site seems to be having the same problem as modemlooper with the letter search. Gets me closer to figuring out why it’s failing.


    cdutoit
    Participant

    @cdutoit

    I was able to join that group! So that seems to work.

    I also created another ‘test2’ group if you wanted to try join that one to verify it works.

    Thanks

    Chris


    Burt Adsit
    Participant

    @burtadsit

    It works in the member theme but not in the group directory.


    Burt Adsit
    Participant

    @burtadsit

    I closed that other thread and invited modemlooper over here. Here’s what I said over there:

    It’s the same problem: add friend, join group and letter list. I can’t reproduce this on my side. The only thing I can think of is that the security system called ‘nonce’ is failing on your sites and only when the individual link security is wrapped in a larger form security mechanism.

    What do you two have in common?

    modemlooper, did you just upgrade from a prev version of bp like cdutoit?


    Burt Adsit
    Participant

    @burtadsit

    I can’t reproduce this and I can’t seem to find a reason why it would fail. You two sure you upgraded *everything* member theme, home theme, recursively all the directories in /mu-plugins where bp lives?

    What plugins are you running other than bp?

    cdutoit, what is ‘tabber’?


    cdutoit
    Participant

    @cdutoit

    I have triple checked this – yesterday after upgrading and it didnt work, I decided to actually delete all the old BP files and dropped the tables from the DB too. I just confirmed that all the BP files have an update date/time from when I uploaded them yesterday.

    Regarding tabber…thats just a CSS file I had wanted to use. The problem occurred before I had used it, but to be safe I took it out again.

    I have also now removed all other WPMU plug-ins I had installed. At this point its a WPMU install with BP and a download of 90 additional themes.

    Burtadsit – I could give you cpanel and FTP access to that server if you’d like to scratch around – I feel almost bad for offering since you’re spending so much time on this.

    Just not sure what could be causing this.


    Burt Adsit
    Participant

    @burtadsit

    I don’t know exactly what it is either. It’s something you two have in common though. I haven’t heard of any other reports of this, nothing in trac. I’m waiting until a little later today and see if the big gun, Andy, has time to take a look at this thread for us.


    Burt Adsit
    Participant

    @burtadsit

    Suggestions from the gurus say it might be a PHP version problem. You should be running php 5. Can you check with your host?


    Andy Peatling
    Keymaster

    @apeatling

    The only reason I can think of why this would fail is if you have not upgraded the themes and all JS files. That would mean you are not passing the security nonce and it will not return a valid result. You said you have upgraded everything, including themes, so that doesn’t make any sense.


    Burt Adsit
    Participant

    @burtadsit

    The only think I can think of Andy is that the form nonce in the directory is getting mixed up with the link nonce.

    function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {

    if ( $query_arg )

    $nonce = $_REQUEST[$query_arg];

    else

    $nonce = $_REQUEST ? $_REQUEST : $_REQUEST;

    If $action is from the form and _wpnonce is from the link. nonce will fail. I can’t find bp setting _ajax_nonce anywhere.

    This only fails in the directories where a form with it’s own nonce wraps the link nonce.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Not using WP Cache are you? If so, obviously delete files in cache?

    I’ve also noticed some quirks with the jQuery versions. Make sure you’re using the .js file versions included with both BuddyPress and WPMU, as updating to the new versions available at the jQuery website seems to break things for me. Don’t ask how I know. ;)


    Burt Adsit
    Participant

    @burtadsit

    Andy, the nonce exists in both the form and the link. The call is just dying. No err msg in the logs. nonce failure.


    cdutoit
    Participant

    @cdutoit

    Thanks guys.

    PHP is 5.2.8 (http://jurnl.com/phpinfo.php)


    modemlooper
    Moderator

    @modemlooper

    For me none of the ajax works. The search letters or when you click the newest active or popular links. Just shoes the spinner or the 3 little boxes moving.

    I’m on mac – firefox. Latest BP – MU version.

    I can use the search in the top bar.


    Adam W. Warner
    Participant

    @awarner20

    Hi Guys,

    I think I’m in the same boat here, but a tad different. When I send a request, it changes to “friend requested”, but when the friend clicks the “accept friend request” from the email, he is presented with the screenshot below.

    I upgraded to 1.0 RC-1 when it became available and just added a user as a friend. Upon him replying to the request (accepting my friend request), was presented with the “are you sure you want to do this” message and that’s where things stopped. Here is a screenshot.

    I will make sure all theme files are updated per Andy’s suggestion and see if that makes a difference in my case.

    Mac, FF.


    modemlooper
    Moderator

    @modemlooper

    Join groups button works but it’s a bit confusing as you click the join button and nothing happens. The page does not refresh or there is no notice that you have successfully joined that group.


    Adam W. Warner
    Participant

    @awarner20

    I have updated all my theme files, anyone care to sign up and let me add you as a friend?

    http://mybodypart.org

Viewing 25 replies - 1 through 25 (of 98 total)
  • The topic ‘Add Friend – not adding’ is closed to new replies.
Skip to toolbar