Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error Posting Comments


  • Manoj Chacko
    Participant

    @mjc82in

    Hi,

    I have been having this error for couple of months or more, have narrowed it down to being a buddypress error.

    Error is
    Whenever somebody posts comments, the comments go through (i.e it does get posted)
    But as soon as user hits post button, it thinks for a min and gets forwarded to an error page(sometimes show duplicate comment).

    Any idea to solve, This is becoming a very serious issue, have been talking with Automattic as well. Can somebody help me resolve this.

    Thanks
    Manoj

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

  • @mercime
    Participant

    @mercime

    Hi @mjc82in Please provide more information about your installation so that we can help you find out how to resolve your issue. https://buddypress.org/support/topic/when-asking-for-support-2/


    Manoj Chacko
    Participant

    @mjc82in

    Hi,

    I am running WordPress 4.3.2 and BuddyPress 2.4.3. BBpress Version 2.5.8 . Issue started happening couple of versions back. Installed in the root (using Xampp) It was working fine before wordpress/buddypress upgrade past summer.

    Issue is whenever user post a comment, it think for a second and gives out an error.
    Error, sometimes on some browser is just a error page, sometimes it s shows duplicate post error.

    But when I go back refresh the page. The comment was published. So something is happening after comment gets published and it has to redirect to the page.

    I have a bunch of plugins installed, but as rule of elimination I tried different combination. by removing and putting in plugin one by one.
    Conclusion issue is with WordPress/Buddypress/Akisment combo. with just wordpress and akismet it worked. just wordpress and buddypress it worked. With all three issue reappears, I have been troubleshooting it with Akismet first, But does not look like they are causing the issue.

    I can give access to my site to one of the moderators or developer if it helps.This issue is kind of becoming critical now.

    Thanks
    Manoj


    @mercime
    Participant

    @mercime

    Issue is whenever user post a comment


    @mjc82in
    Just so we’re clear, when you say “post a comment”, do you mean post a comment in the comment form of a blog post? If so, that could be an issue with a theme which needs to be updated to be compatible with the latest WP and BP versions.

    What theme are you using? Have you tried changing to the Twenty Fifteen theme and check if issue is resolved?

    I can give access to my site to one of the moderators or developer if it helps.

    We will ask for a throw-away (not admin) account should the need arise. But at this stage, it’s looking to be a theme issue, not a BuddyPress bug. So your problem is not resolved by changing the theme, do provide answers to all the questions in the link I gave you so we can see the overall structure of your installation.


    Manoj Chacko
    Participant

    @mjc82in

    I did check the theme before with twenty fifteen and the error was still there, we currently using a studiopress theme. But I checked it again with twenty fifteen and the issue remains.

    1. Which version of WordPress are you running?
    WordPress 4.3.2

    2. Did you install WordPress as a directory or subdomain install?
    Directory

    3. If a directory install, is it in root or in a subdirectory?
    Root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Yes, don’t remember which version it was 4.2.* I think

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes

    6. Which version of BP are you running?
    BuddyPress 2.4.3.

    7. Did you upgraded from a previous version of BP? If so, from which version?
    yes, I think it was buddypress 2.2.*

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes,
    Akismet; BuddyPress; BuddyPress Docs; BuddyPress Group Email Subscription; BuddyPress Sitewide Activity Widget; CustomPress; Google Analytics +
    ImageInject; Jetpack by WordPress.com; More Privacy Options; Multisite Plugin Manager; New Blog Templates; Site Categories; TinyMCE Advanced
    Ultimate Branding; User Role Editor; WordPress Importer; WP Author Slug; WPMU DEV Dashboard; WPMU Ldap Authentication;

    9. Are you using the standard WordPress theme or customized theme?
    Studiopress theme (Tested with twenty 15 as well)

    10. Have you modified the core files in any way?
    No
    11. Do you have any custom functions in bp-custom.php?
    No
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    BBpress Version 2.5.8

    13. Please provide a list of any errors in your server’s log files.
    Under the windows event viewer is an error
    “Faulting application name: httpd.exe, version: 2.4.16.0, time stamp: 0x55a22a64
    Faulting module name: php5ts.dll, version: 5.6.12.0, time stamp: 0x55c3b699”
    Happens whenever this error occurs.
    Nothing related within the apache logs That I can see.

    14. Which company provides your hosting?
    University Hosted (Temple University)
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Windows running Xampp


    Manoj Chacko
    Participant

    @mjc82in

    Any updates?


    Manoj Chacko
    Participant

    @mjc82in

    Hi
    Do you guys have any updates on this?


    Manoj Chacko
    Participant

    @mjc82in

    @mercime do you have any updates, should I put this under the buddypress bugs


    Manoj Chacko
    Participant

    @mjc82in

    Looks like when I turn off site tracking it works. so its something to do with that. Any idea how to resolve


    Manoj Chacko
    Participant

    @mjc82in

    Ok I narrowed it down further, its this line thats causing the issue.

    $comment_activity_id = bp_activity_add( $args ); (line 717 in bp-blogs/bp-blogs-functions.php)

    Since I am not familiar with buddypress codes, can somebody help me trouble shoot this.


    Manoj Chacko
    Participant

    @mjc82in

    Dug in further,
    if ( ! $activity->save() ) {
    return false;
    }
    This function in bp-activty-functions, causing the problem, I can’t think of further what else to do in terms of trouble shooting.


    Manoj Chacko
    Participant

    @mjc82in

    @mercime
    What does this function do? commenting this solves the issue.
    do_action_ref_array( ‘bp_activity_after_save’, array( &$this ) );


    Manoj Chacko
    Participant

    @mjc82in

    Hi,
    Any resolutions? everyone is starting to complain, as we have a lot of courses running on this and it is affecting the courses critically, to the point everyone is even considering about moving away from the platform.

    Thanks
    Manoj

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error Posting Comments’ is closed to new replies.
Skip to toolbar