Are you getting a connection lost error when trying to upload media or publishing a post? In this article, we are going to show how you can fix this error.
There can be many reasons why you might be getting this error. Below are some reasons why it might be occurring.
- You might be having internet connection issues.
- Problem due to hosting.
- Some plugin or theme might be causing this issue.
- Heartbeat API.
-
Table of Contents
Internet Connection Issue
Many times the problem might be due to your internet connection. You can try restarting your internet router and see if you still get this error. If the problem persists then you can try the below fixes.
2. Issue from your hosting provider
Many times there might be some issues from the server side. You can simply open a support ticket with your hosting provider and explain the problem to them. They will let you know if the problem is from their side.
3. Error due to a plugin or theme
Many times a plugin or theme might be causing this error. You can try deactivating your plugins one by one and see which plugin might be causing this error. Once you find the responsible plugin, try to uninstall it and use an alternative plugin in place of it.
If you find no plugins that are causing this error then you can also try reverting to the default WordPress theme and see if the problem still exists,
4. Heartbeat API
The WordPress Heartbeat API is a way through which real time connection is established between the server and client. Everytime you create a new post or make some edits, the changes are auto saved every few seconds. If you work on a post long enough, too many requests may trigger resource limits from your server. To fix this you can install the Heartbeat Control plugin and increase the auto save time gap. You can follow the below steps to increase the auto save time.
Install and activate the Heartbeat Control plugin. Then navigate to Settings -> Heartbeat Control from your admin dashboard.
In the Settings panel select the Modify Heartbeat checkbox under Post editor and increase the Override Heartbeat frequency scrollbar to an optimum value such as 60 seconds. Once done click on the SAVE CHANGES button.
Conclusion
We have covered almost all the possible scenarios which might be causing the “connection lost. saving has been disabled until you’re reconnected” error on your WordPress website. Most of the time the issue could be due to over usage of server resources which can be fixed with increasing the auto save frequency of the Heartbeat API.