Skip to:
Content
Pages
Categories
Search
Top
Bottom

Comment button stops working after refresh


  • maruyamah
    Participant

    @maruyamah

    I am using WordPress 4.1.1 and just updated to the most recent version of Buddypress, although this problem existed on the version I was using before as well (2.2.1). I am using a custom theme, so it’s possible that is the problem, but I just want to make sure.

    The problem that I am having is that when I go to a user’s activity stream and create a new post, and then click on the comment button, a text area appears. But as soon as I refresh the site, the textarea will not reappear–the comment button changes to its hover color (and does not change back) but nothing else changes when clicked. So basically, the only time a user can comment is when the post has been just created and possibly just on his or her own post, it seems. I have been doing some customization in bp-custom, but none of it has related to comments in any way. Do you have any suggestion for where to look for the problem? Honestly, I’d rather the comment textarea just show all the time than have a completely useless comment button.

    Otherwise, I’m looking for some insight into what the problem may be or at the very least how the comment button functions. Thanks!

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

  • maruyamah
    Participant

    @maruyamah

    New update: The only difference that I can tell about what is happening is that after the refresh button is pressed, the code in the form tag’s style changes from class=”ac-form” to class=”ac-form root” and from “style=”display: none;” to style=”display: block;”.

    This leads me to believe that either the bp_activity_comment_form_nojs_display() or the bp_get_activity_comment_form_nojs_display() is not being triggered for some reason once the page has been refreshed after the original post has been created. The only places listed in the directory where this is called is bp-activity-template.php but I stumbled upon it in entry.php as well. I’m not sure if it’s located anywhere else. Any insight is much appreciated!


    shanebp
    Moderator

    @shanebp

    I am using a custom theme, so it’s possible that is the problem,

    Switch to a WP theme like 2013.
    If the problem goes away, then it’s something in your theme.


    maruyamah
    Participant

    @maruyamah

    @shanebp Thanks! I was trying to avoid doing that because part of the site is live and uses our theme. I ended up duplicating the site, changing the theme, and trying it again and it still didn’t work. The problem is exactly the same. The theme I used this time was 2015.


    shanebp
    Moderator

    @shanebp

    I ended up duplicating the site

    Good, now you have a dev site.
    Try turning off all plugins except BP and continue using the 2015 theme.
    If the problem persists, then it might be a BP issue.
    If not, turn the other plugins back on one at a time and hopefully find the plugin that is causing the issue.


    maruyamah
    Participant

    @maruyamah

    @shanebp Thanks so much for all of your help! I found the culprit. It was jQuery Smooth Scroll.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comment button stops working after refresh’ is closed to new replies.
Skip to toolbar