Bobcares

WordPress upload error unexpected response from the server : Easy fix

by | Apr 1, 2020

Stuck with the WordPress upload error unexpected response from the server?

Users obtain this error while trying to upload images, text files, videos, etc. via the WordPress dashboard.

The error can be due to many reasons like improper PHP settings, wrong file permissions, plugin or theme conflict, etc.

At Bobcares, we often fix this error for WordPress users as part of our Server Management Services.

Today, let’s get into the details on how our Support Engineers fix this WordPress error.

 

Why does WordPress show an unexpected response from the server?

WordPress is an amazing content management system and the backbone for many websites. User-friendly features made it even more popular.

But in some situations, WordPress won’t behave as expected. One such situation WordPress users may have come across is while uploading any file to it.

And users get stuck with an unexpected error,

WordPress upload error unexpected response from the server.

The error can be due to many reasons. Sometimes it might be due to the PHP file size limits in the server, wrong file permissions, plugin or theme conflict, etc.

 

How we fix this WordPress upload error?

Even though the error message is vague, our Experts could easily troubleshoot and fix WordPress errors. Let’s see how  our wordpress support team tweaks a few settings and fix this error.

 

Initial troubleshooting

Firstly we check if the error is just appearing at the user end alone. Sometimes, the larger file sizes or simple mistakes the users make can be the problem. That is the usage of special characters or white spaces in the image name.

But if it is a server-side error, we tweak a few settings to fix it.

 

Wrong folder permissions

Sometimes wrong file permission can throw errors while uploading files. So we check the existing permissions of WordPress folders in the server.

Especially the permissions of wp-content and uploads, as WordPress tries to upload a file from this path.

For this, we log in to the customer’s server and access the WordPress files. Later to change the permissions of these folders we use the commands,

chmod 755 -R wp-content
chmod 755 -R wp-content/uploads

Mostly this fixes the error.

 

Tweaking PHP upload limit

The PHP settings in a server will have allowable size limits for uploading a file. Usually, it will be based on the server plans provided by the hosting companies. But if a user tries to upload a file with a larger size, it ends up in error.

In such situations, users can compress their files using compressing tools and upload it.

If the limit is too low for a WordPress website we tweak the following PHP parameters in the php.ini file or user.ini file by considering the upload limit in the server.

memory_limit: 256M
upload_max_filesize: 64M
post_max_size: 76M

Hence, the increase in memory limit allows users to upload larger files.

 

Plugin or Theme conflict

Faulty plugins can cause trouble while working with WordPress. In this case, the best way is to deactivate plugins temporarily and upload the file. If the image got uploaded, it indicates that there was a faulty plugin.

So we activate the plugin one by one and identify the faulty one and disable it. Later we provide some alternative for the disabled plugin. Sometimes the latest version of the same plugin can be used.

In addition, the WordPress themes can also stop a user from uploading files. To fix this we initially take the backup of the site and then change the theme to default one. Later, we use a theme convenient for the user.

 

[Still having the problem with uploading files in WordPress?- We’re available 24/7.]

 

Conclusion

In short, the WordPress upload error unexpected response from the server can be easily fixed by correcting file permissions, tweaking PHP upload limits, disabling faulty plugin or theme, etc. Today, we saw how our Support Engineers fixed this upload error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

6 Comments

  1. Nakshatra Stone

    can u please elaborate from where i need to made changes i didnot get it

    Reply
    • Arya MA

      Hi there,

      You can make those changes after accessing the server via SSH. If you still find problems, we’ll be happy to talk to you on chat (click on the icon at right-bottom).

      Reply
      • Arjun

        i have an error while uploading the image “The uploaded file could not be moved to wp-content/uploads/2023/08” The solution is not working.

        Reply
        • Hiba Razak

          Hi,
          Our experts can help you with the issue.we will be happy to talk to you through our live chat(click on the icon at right-bottom).

          Reply
  2. Thariq

    I am getting the error while uploading videos “Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page”.Pls hep me to overcome this

    Reply
    • Hiba Razak

      Hi Thariq,
      Our experts can help you with the issue.We’ll be happy to talk to you on live chat (click on the icon at right-bottom).

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.