Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Ajax Fails When Posting On Another User's Activity?

  • Avatar of NewKindOfCool
    NewKindOfCool
    Participant

    @newkindofcool

    Hi all,

    Recently, a partner and I have been trying to develop and launch a site (newkindofcool.com). The site is looking good in our eyes and we want to go live soon…however, there is one issue: commenting on another user’s page is challenging.

    When you post to another user’s account on their page, it will post, but Ajax will not show that it is automatically there, thus forcing the user to believe it is never being posted. If you simply refresh the page after you post a comment on a thread/on another user’s page you will see that it has posted…but it does not do this automatically. You can see if you post on your own page or update comments on your own page that Ajax is working, but not on others’ pages.

    We also installed a fresh copy of WordPress/BuddyPress to: http://test.richgannon.net/ to no avail…same issue. Any ideas? We tested in various browsers (Chrome/FF/IE).

    Here is our server information if necessary:

    supernova ~ # php -v; mysql -V; apache2 -v
    PHP 5.4.13–pl0-gentoo (cli) (built: Jun 5 2013 22:59:29)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    mysql Ver 14.14 Distrib 5.1.67, for pc-linux-gnu (i686) using readline 5.1
    Server version: Apache/2.2.24 (Unix)
    Server built: Mar 3 2013 18:56:34

    Thank you so much!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avatar of Henry
    Henry
    Participant

    @henrywright-1

    I think I’ve come across this myself. I themed my activity pages so assumed the issue was caused by something I had introduced. I suggest you raise the issue at BuddyPress Trac where the developers can pick it up and confirm if it is a bug.

    http://buddypress.trac.wordpress.org/

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @newkindofcool Saw this reported before. One had a theme JS conflict and another had cache issue. Have you tried basic troubleshooting like deactivating plugins batch by batch and/or changing to Twenty Twelve or BP Default theme to check?

    Avatar of NewKindOfCool
    NewKindOfCool
    Participant

    @newkindofcool

    @henrywright-1 & @mercime, thank you both for your replies. @mercime, We tried deactivating all plugins and even made a fresh install on another site test.richgannon.net without any plugins and just the basic BP Default theme…same issue. I’ll let my partner know about it possibly being a cache issue or a JS conflict, but I’m not as knowledgeable in that area myself.

    Thank you again.

    Avatar of NewKindOfCool
    NewKindOfCool
    Participant

    @newkindofcool

    <partner/IT guy here>

    On the plain-jane, fresh install WP & BP install at http://test.richgannon.net there are absolutely no other plugins installed. No additional themes were installed. Nothing except for enabling the required permalinks via WP admin panel and installing the BP plugin through the plugin portal in the admin panel.

    A user can post normally, with AJAX working on his/her own activity. When replying to or commenting on another user’s activity is when the problem arises.

    What kind of cache could possibly cause this?

    For anyone interested, you can test it out for yourself with full admin privileges:

    [EDIT- removed admin login info. ~~~ mercime]

    Please test to your heart’s desire.

    Additional server information:

    supernova ~ # apache2 -M
    Loaded Modules:
    core_module (static)
    mpm_prefork_module (static)
    http_module (static)
    so_module (static)
    actions_module (shared)
    alias_module (shared)
    auth_basic_module (shared)
    authn_alias_module (shared)
    authn_anon_module (shared)
    authn_dbm_module (shared)
    authn_default_module (shared)
    authn_file_module (shared)
    authz_dbm_module (shared)
    authz_default_module (shared)
    authz_groupfile_module (shared)
    authz_host_module (shared)
    authz_owner_module (shared)
    authz_user_module (shared)
    autoindex_module (shared)
    cgi_module (shared)
    cgid_module (shared)
    deflate_module (shared)
    dir_module (shared)
    env_module (shared)
    expires_module (shared)
    ext_filter_module (shared)
    filter_module (shared)
    headers_module (shared)
    include_module (shared)
    log_config_module (shared)
    logio_module (shared)
    mime_module (shared)
    mime_magic_module (shared)
    negotiation_module (shared)
    rewrite_module (shared)
    setenvif_module (shared)
    speling_module (shared)
    unique_id_module (shared)
    usertrack_module (shared)
    vhost_alias_module (shared)
    Syntax OK
    supernova ~ # php -m
    [PHP Modules]
    apc
    bz2
    Core
    ctype
    curl
    date
    dba
    dom
    ereg
    fileinfo
    filter
    gd
    gettext
    hash
    iconv
    imap
    json
    libxml
    mbstring
    mcrypt
    mysql
    mysqli
    openssl
    pcre
    Phar
    posix
    readline
    Reflection
    session
    SimpleXML
    sockets
    SPL
    standard
    tokenizer
    xml
    zlib

    [Zend Modules]

    Avatar of NewKindOfCool
    NewKindOfCool
    Participant

    @newkindofcool

    Bug report filed. Please add yourself to it and add your experiences to it to get this sorted out ASAP.

    https://buddypress.trac.wordpress.org/ticket/5050

    Avatar of NewKindOfCool
    NewKindOfCool
    Participant

    @newkindofcool

    <IT guy here again>

    AHAH! I figured it out!

    I use an SMTP plugin to send mail as I don’t allow PHP to send mail directly using the mail() function. I had misconfigured the SMTP at first with the wrong password and did not notice until someone last night mentioned that when they registered, they did not get an email. I tried to send a test email through the SMTP plugin and it just would hang and hang and hang……

    I reset the password and it sent without pause.

    This morning, while looking at the website wondering “how the hell can this be fixed,” I thought “wait a minute……it hangs when posting to other peoples’ activity….just like when it was trying to send mail…”

    Sure enough I gave it a shot and it worked as expected! Sometimes you just need a good slap upside the head to get things figured out.

    This does not mean there are no bugs, however! A webpage should NOT completely hang to function as expected if mail() or SMTP mail does not work. I am going to update the bug to indicate that the problem is not with BP. It appears to be WP related with how it handles sending mail.

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    @newkindofcool thanks for the update, always good to hear the solution when one comes along!

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @newkindofcool and <partner/IT guy> as Henry posted, thank you for posting back with the resolution.

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

You must be logged in to reply to this topic.