Support » Fixing WordPress » Connection to server drops in the middle of plugin updates

  • I am running into problems updating plugins. Each time the update script gets to a certain point the connection to the server drops in the middle of the update which is not completed.

    If I update a plugin on the plugins screen the following message appears: “Update failed: Connection lost or the server is busy. Please try again later.”

    The browser developer tools network tab usually shows a 503 Service Unavailable error on this URL:

    The debug log shows this warning:

    [15-Feb-2021 11:15:55 UTC] PHP Warning: An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the <a href="">support forums</a>. (WordPress could not establish a secure connection to Please contact your server administrator.) in /home/www/ on line 408

    I have tried disabling all plugins and then updating and I have tried updating the plugins individually. The same problems occur.

    I contacted the host who says that there isn’t a problem on the server.

    I am not sure where to go from here.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter authentictech


    I have managed to update a few plugins by attempting it multiple times. Sometimes the process completes and sometimes it doesn’t (and sometimes the incomplete update breaks things so I need to restore from a backup). However, one plugin is very large and always fails.

    Failures occur within a few seconds. The PHP settings are 512MB memory limit and 300 seconds for script execution.

    Thread Starter authentictech


    Please append 0_phpinfo.php to the URL in the OP for PHP info.

    Suggest that for the big plugin you:
    – download the plugin ZIP file to your computer
    – extract the files on your computer
    – rename the local plugin folder
    – using FILEZILLA upload the plugins files to your server using FTP
    – using FILEZILLA rename the old plugin directory and rename the newly uploaded plugin to the expected name.

    Thread Starter authentictech


    @rossmitchell Thanks, I will. I am just waiting for now so I can test possible solutions.

    Thread Starter authentictech


    Further problem discovered which might shed some light. The Wordfence plugin is also having trouble connecting to Wordfence Central so it is not just a problem connecting to (I have the same problems when all plugins are disabled so it’s not caused by Wordfence).

    Check your web site resources? Does your server have enough vCPUs and RAM. Do you have enough disk space? Did you upgrade WordPress, PHP and your theme first?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Connection to server drops in the middle of plugin updates’ is closed to new replies.