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.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF