Error appearing: Connection lost Saving has been disabled until reconnected

I'm getting reports of this error message, on 3 out of 2000 ish sites on our multisite. I've installed the Heartbeat control plugin on a site and set the frequency to 60 seconds and control heartbeat locations to Allow only on post edit pages. I'm also trying disable everywhere on another sub site.

This issue started on version 4.5.4, I updated to 4.6.1 and still seeing it.

Any idea how to fix it?



  • Predrag Dubajic
    • Support

    Hey Matt,

    Hope you're doing well today :slight_smile:

    If Heartbeat didn't help on your case you should start by checking if plugins or theme is causing this, perhaps an incompatibility with WP 4.5.4+, so try disabling them and check if the issue is still there after that.

    If that doesn't give any results it might be good step getting in touch with your hosting provider as they will be able to check server logs and provide you with more info about why this is happening.

    Best regards,

  • Matt
    • The Incredible Code Injector

    Predrag Dubajic Not so good. You know how it is when WP is being a pain. I am the hosting provider! There is nothing helpful in the logs I can see.

    A bit more on the behaviour. When the connection lost error message is displayed, the post is actually published. SBE sends out emails no problem. So the error message is a red herring. However users are reporting that there browser locks up and they cannot post again.

    It's happening on different sites all with different themes, so I doubt it's a theme issue.

    Plugin checking time, argh....


  • Adam Czajczyk
    • Support Gorilla

    Hello Matt!

    You're initial diagnose regarding Hearbeat API seems correct however that's not always the reason. It may as well be a result :slight_smile:

    I think checking plugins is definitely an essential step here.

    Also there are two other "tweaks" that may be worth giving a try (one or the other one or both at once):

    1. play with AUTOSAVE interval:

    define( 'AUTOSAVE_INTERVAL', 160 ); // Seconds

    That should be added to the "wp-config.php" file of your site above the "/* That's all, stop editing! */ line and also you may want to play with "160" value a bit, probably increasing it even further (though please note: the higher the value the bigger the content loss chance!)

    2. make sure that WP is tweaked to use available resources:



    where "256M' value should be substituted with the value of maximum allowed PHP memory


    PHP "max_execution_time" option; that should be set to a reasonably high value e.g. 180 or even 300 seconds;

    That is because the error that you are getting is usually caused by a server throwing "500" or "403" HTTP status (which is an error status) in response to some admin-ajax calls.

    Still though, most likely that'd be caused by some plugin which may not even be necessarily "bugged" itself but may just "interfere" in case of this particular setup. So, the plugin test would be very important here.

    Best regards,

  • Simplebutcreative Media
    • Site Builder, Child of Zeus

    I'm actually having this issue now and I only have 6 websites in my network. But then again I'm on a shared hosting account. I'm actually looking into upgrading to the next level of hosting whether it's VPS or Cloud. It looks like my new client website is using up my resources. I'm using Membership 2 plugin for his website with about 70+ pages. Haven't brought this issue up until now. I'm just assuming I need a better hosting service plan.

    • Adam Czajczyk
      • Support Gorilla

      Hi Simplebutcreative Media,

      I hope you're fine today!

      A better host might be a solution of course but it's also possible that it can be solved with your existing hosting. We'd need to check the site/server first to be able to give you more specific advice on this or - hopefully - fix it for you.

      However, if suggestions from this thread didn't work for you, please start a separate ticket of your own on our support forum:

      Please describe the issue there (you may also add a link to this ticket for reference) and make sure that the support access to the site in question is open. To enable support access, please go to the "WPMU DEV -> Support" page in your site's back-end and click on "Grant support access" button there.

      We'll then access the site from your own support ticket and check the site to see what can be done to solve this.

      Best regards,

  • Simplebutcreative Media
    • Site Builder, Child of Zeus

    Adam Czajczyk

    Yeah I'm really considering upgrading...But I just chatted with my hosting now. They said the issue is not necessarily my hosting plan. It could be a theme or plugin. They mentioned that there's too many request with my cron jobs php and index.php

    They suggested I setup a real cron job instead of the default and a bad bot blocker to my htaccess.

    The error shows up when I add a new page and setup the "membership access". I am using Membership 2 plugin.

    I don't really have any experience with cron jobs...

    Thanks for the reply!

  • Simplebutcreative Media
    • Site Builder, Child of Zeus

    Adam Czajczyk

    After getting support on this...The conclusion was that my PHP max execution time is too low. My shared hosting with Siteground has a PHP global limit of 120 max execution time. I really need to upgrade to something with no PHP global limits. I would like to upgrade to Siteground cloud but I don't want to pay $80/mo right away. Any suggestions on a good cloud or vps hosting with FULL let's encrypt integration through cPanel? Something under $60/mo...

  • Simplebutcreative Media
    • Site Builder, Child of Zeus

    Adam Czajczyk

    I'm actually testing Inmotion Hosting Standard VPS plan now. I think as far as performance it's definitely much better than my high tiered shared with Siteground. As it should since it's a VPS level of hosting. But the fact that they don't have full integration with Let's Encrypt is deterring me from making inmotion my new home.

    Also, inmotion's support response is not as good as Siteground. Siteground has almost no hold time for me through chat.

    The support just added Let's Encrypt to their AutoSSL feature out of courtesy. That's great! But I also need to be able to install Let's Encrypt Wildcard SSL. I need the wildcard for my multisites. I can only install the basic ssl certificate.

    At this point in time, I don't have enough customers to buy a premium wildcard ssl. Free wildcard from Let's Encrypt is great solution for a startup growing business like mine.

    I might just be forced to upgrade to Siteground's Cloud Hosting. It's more convenient since I don't really have to migrate anything. Plus Siteground's cloud is actually a dedicated server. Inmotion's VPS plans are all shared.

    I need to make a decision soon. It's affecting the whole performance of my main multisite project.

    • Adam Czajczyk
      • Support Gorilla

      Hello Simplebutcreative Media

      I understand that but I'm not in a position to give any "strict recommendation" and I actually just don't know all the hosts and their offers. I can tell from what I saw here so far that Members are pretty pleased with Cloudways and WPEngine offers. Personally, I never used them for my own needs but I've seen them performing very nice for other Members.

      I think you could just ask other Members for advice on this on the Members forum that I linked to in my previous response.

      This post on our blog might also be handy for you:

      Please also note: an original ticket is 2 years old and while posting here we are also sending automated notifications to the ticket creator who might no longer be interested in this.

      Kind regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.