Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity stream replies still disappearing on page refresh.

  • Avatar of effone
    effone
    Participant

    @effone

    I’ve been dealing with this for months (there are a few similar posts, too), and my upgrade to BP 1.2.5 and WP 3.0 didn’t resolve it.

    When replying to an activity in the stream, the reply sticks until the page is refreshed. The replies appear in my database, in the replier’s profile (not on the profile of the original activity though), and even the bump-to-top plugin by @nuprn1 works properly – I just don’t see the reply that bumped it.

    This is the only hiccup keeping me from actively “going live” with this site.

    WAMP install
    PHP 5.2.13

    Thanks!

Viewing 17 replies - 1 through 17 (of 17 total)
  • other plugins? cache plugin?

    Avatar of effone
    effone
    Participant

    @effone

    I’m not using a cache plugin, but I do have:

    Akismet
    Google Analytics
    BP Group Documents
    BP Posts on Profile
    BP Redirect to Profile for Buddypress
    Activity Stream Bump to Top
    Activity Stream Hashtags
    Album+
    Edit Activity Stream
    Forum Extras – Forum Index, Quote, RSS Feeds, Tag Index,
    Group Email Subscription
    Group Forum Extras
    Buddypress Like
    BP Usernames Only
    Comment Rating
    Contact Form 7
    Feedburner Plugin
    Polldaddy Polls
    Wp-ReportPost

    I’ve disabled all one by one. I’ve moved them into an ‘inactive’ folder. Nothing’s located the problem. I have a developer working with me who is more adept at php/mysql, but we’re both stumped. Any help is appreciated!

    Is there anything in php.ini that affects replies?

    Thanks, Rich!

    Same issue if you view the permalink of an activity? (/activity/p/somenumber)

    Avatar of effone
    effone
    Participant

    @effone

    Yes, same issue. No replies are showing up.

    Avatar of effone
    effone
    Participant

    @effone

    Also, I’m getting email notifications of the replies, just not seeing them in the activity stream or on the recipient’s page.

    my only other guess is server/mysql cache (bp_has_activities is also used in the ajax response for posting a new comment – which works but is filtered for a comment_id)

    Avatar of effone
    effone
    Participant

    @effone

    We just experimented with those query cache settings and it didn’t work. We might just have to move the site to a Linux server (per one user’s successful experience) to see if that helps. This one problem is just taking too many man hours.

    Thanks again!

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Something simple to check – try looking at the HTML page source to see if the activity reply is actually parsed on the page?
    If it is, it could be some CSS rules that’s causing the activity update to be hidden.

    Also try using the bp-default theme if you aren’t using it already.

    Avatar of effone
    effone
    Participant

    @effone

    r-a-y, the replies aren’t even in the page source.

    I should have mentioned before that I’m using the default theme, actually it’s a child theme of the default theme, but I had these problems before I started using the child theme.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @effone

    Try disabling BP Album+ We interact with the activity stream in different ways, and some of our suers have been reporting problems. Ideally, try to prove causality … IE: deactivated BP Album+ *3 days* ago* and NOW pictures from the software are starting to flood the activity stream.

    Thanks!

    @foxly

    ^F^

    Avatar of effone
    effone
    Participant

    @effone

    We figured out the problem. There was a bad SQL query.

    The file we had to edit : …wp-contentpluginsbuddypressbp-activitybp-activity-classes.php

    The offending code was on line 359:
    $fullname_where = “AND pd.user_id = a.user_id AND pd.field_id = 1

    The trick was to change the line to the following:
    $fullname_where = “AND pd.user_id = a.user_id

    The short explanation is that no records exists in the wp_bp_xprofile_data table that have a field_id value of ‘1’.

    We don’t know how this happened – during setup? We also aren’t yet sure if this change will cause adverse effects somewhere else, but replies are now working.

    Hope this helps someone else.

    Avatar of effone
    effone
    Participant

    @effone

    @foxly

    Thanks for your reply. I’ll remember that about the album plugin in case we have more trouble (fingers crossed) down the road.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    pd.field_id = 1 should be the “Name” profile field, so it’s a little weird because that field is required.

    Avatar of effone
    effone
    Participant

    @effone

    r-a-y,

    Thanks, we talked about it some more and think it must have had something to do with Profile Field Setup. Field ID 1 is missing and the table starts with 2. Field ID 6 is the Name field. So, at some point during the profile field setup, we deleted the original Name field?

    We’re going to put back the original code and change the ID to 6.

    Or, is there a way to correct the table so that we can make ID 6 the Field ID 1? Will there be other problems with having that wrong Field ID?

    – Lindsey

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    There could be some potential problems with having your name field ID set at 6, because there could be hardcoded instances elsewhere like you just experienced.

    Needs investigating.

    Avatar of effone
    effone
    Participant

    @effone

    Okay. Thanks for your help, r-a-y. We’ll check in to it more.

    hi
    nice to know that u had the same problem that i have .i did the salution but its dont work
    when i changed the code $fullname_where = “AND pd.user_id = a.user_id AND pd.field_id = 1
    to
    $fullname_where = “AND pd.user_id = a.user_id
    then my site got a blank page with a line of a code erore
    then i dellet the buddypress then my site restore
    can u help me to solve that problem? thats my site http://movies.funjojo.com
    thanks

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

The topic ‘Activity stream replies still disappearing on page refresh.’ is closed to new replies.