This topic has 17 replies, 5 voices, and was last updated 8 years by Reflect Growth.

  • Author
  • #54350
     ianll
    Participant

    I’m having the issue where every time something is added to the activity stream it is posted multiple times. Updates are posted at least 2 times and in some cases until the page times out. please advise.

    shpdev.wpengine.com

    #54546
     Laura
    Moderator

    Hello, this may be related to a cache plugin with object cache, please check out if you have a cache plugin, try turning on and off some options and testing if it resolves it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #54660
     ianll
    Participant

    Hosting at wpengine.com. I have the activity stream pages on the site disallowed from their cache and this test environment has their object cache disabled. Any other ideas?

    #54704
     Laura
    Moderator

    Hello, have you tried disabling some plugins and testing again? If that doesnt work it may be a custom code in functions.php if not, it has to be cache, i had this problem and solved it with that 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #54734
     ianll
    Participant

    All non bundled plugins have been disabled and and the problem persists. The only code in my functions file is the code required for wpengine.com:
    /** below added from support thread found at https://archived.seventhqueen.com/forums/topic/attachment-and-post-buttons-for-whats-new-posts-on-groups-were-hidden#post-32642 */

    add_action( ‘wp_enqueue_scripts’, ‘load_buddypress_js’ );

    function load_buddypress_js () {
    if (bp_is_group() || is_page( ‘activity’ )) {
    wp_enqueue_script(‘buddypress_query’,plugins_url() . ‘/buddypress/bp-core/js/jquery-query.min.js’,array(“jquery”));
    wp_enqueue_script(‘buddypress_members’,plugins_url() . ‘/buddypress/bp-core/js/widget-members.min.js’,array(“jquery”));
    wp_enqueue_script(‘buddypress_cookie’,plugins_url() . ‘/buddypress/bp-core/js/jquery-cookie.min.js’,array(“jquery”));
    wp_enqueue_script(‘buddypress_scroll’,plugins_url() . ‘/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js’,array(“jquery”));
    wp_enqueue_script(‘buddypress_js’,get_template_directory_uri() . ‘/buddypress/js/buddypress.min.js’,array(“jquery”));
    }
    }

    shpdev.wpengine.com

    Any chance you could take a look?

    #54765
     Laura
    Moderator

    Hello, yes please post your credentials so we can check it out 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55027
     ianll
    Participant

    I have just verified the /activity/ url fragment is not removed from the Wpengine cache on my setup. I also just verified when I change the theme to 2015 this is not an issue…

    #55028
     ianll
    Participant
    This reply has been set as private.
    #55751
     ianll
    Participant

    Well my dev instance is no longer. I am sure it is the theme now as when I change to the 2015 theme keeping all plugins intact the issue continues and I worked with WPEngine for quite some time to ensure the activity stream is not cached and there is nothing else that they could do to help. Are other experiencing this? Have you seen this before or fixed it before??

    #55756
     sharmstr
    Moderator

    Can you clarify “I am sure it is the theme now “? Did you mean ISN’T?

    Here’s what I can tell you. Last year someone was having an issue with the activity stream in the groups and main activity context. (You’ve seen the topic) I was able to figure out that a number of files were not loading. I wrote the function to add the missing files. Over the next several months more and more people reported the same issue with wpengine sites and my function solved it. About 6? weeks ago one person actually got wpengine support involved. I was helping her as well. When I checked her site in the morning, only one set of those files were being loaded. Those were being loaded with my function. But, the fix wasnt working on her site. I thought it was a CDN issue. Later that afternoon I looked again and 2 sets of those files were being loaded. The result was that posting was working at that point BUT there were duplicate post. So, it made sense to remove my function since it appeared wpengine finally sorted out their issues and were now serving the files without any custom code. WRONG. Removing my function broke the activity posting again.

    Thats what I know.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #70412
     ianll
    Participant

    This was resolved by the support team at WPEngine.com making a change the the heartbeat functionality, this is ultimately what caused the multiple posts, not a cache issue…

    #70415
     sharmstr
    Moderator

    Cool.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #81996
     Reflect Growth
    Participant

    @sharmstr – Just about to start debugging this issue on our site (having just re-introduced caching & cdn via wp-super-cache and minify / combine via wp-minify-fix). Would you be able to share the name & location of the files that you found were being loaded twice? So I know what to keep an eye out for.


    @ianll
    – Any other details on the heartbeat issue you can share would be amazing! Will be looking into this also in case this is the cause of our issue.

    Apologies for resurrecting an older thread (as opposed to creating a new one), thought it may be best to keep all the associated knowledge for this issue on one thread 🙂

    Cheers, Matt

    #82197
     Reflect Growth
    Participant

    I’ve done some further debugging today. The issue, in my instance, is related to the minify / combine of javascript files provided (powered by wp-minify-fix). With this disabled I do not see duplicate status updates.

    That suggests to me that I perhaps need to exclude certain scripts from the minify / combine process? So far the following scripts are excluded:

    • wsi-public.js (WordPress Social Invites)
    • app.min.js (From the Kleo theme) – As I’d observed many broken features on the site with this included
    • init.js (From the Kleo theme) – As recommended on another support thread
    • modernizr.custom.46504.js (From the Kleo theme) – As recommended on another support thread
    • jquery.carouFredSel-6.2.0-packed.js (From the Kleo theme) – Related to a separate support query


    @sharmstr
    / @ianll – Could you guys suggest any other JS files that may be coming into play here?

    #82209
     Reflect Growth
    Participant

    Note: I have another support thread on the go for what I thought was a separate issue over at: https://archived.seventhqueen.com/forums/topic/wp-minify-affecting-functionality-of-tabs-with-carousel-inside#post-82208

    However, I believe all the issues I’m seeings are in relation to combining JS files (as I do not see issues when not combined, minification doesn’t affect the issues at all).

    I’ll continue to update my original thread, but if @sharmstr or @ianll have any input it would be most welcomed 🙂

    Cheers, Matt

    #82213
     Andrei
    Moderator

    Please consider using the “Better WordPress Minify” plugin, which was tested by us and didn’t created any issue. Also it comes with a ton of great features to manage the way your resources are loaded and minified.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #82304
     ianll
    Participant

    @reflectgrowth are you hosting at WPEngine? If so you should have them remove some urls for these areas of your site that they are caching. aside from that and the heartbeat api issue the only other things I did was to remove plugins that were doing caching and minifying and my issues were solved.

    #82346
     Reflect Growth
    Participant

    Thanks @andrei given that a blast and all the issues have gone away! Thank you 🙂


    @ianll
    – thanks for your input too 🙂 (Hosting on a VPS)

Viewing 18 posts - 1 through 18 (of 18 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?