How To Fix “Could Not Write You May Be Over Quota: Bad File Descriptor” Error

could not write you may be over quota

WordPress is an easy yet sometimes hard to handle CMS. To host a WordPress website, you need a web hosting which has the cPanel to control your website.

Sometimes, the cPanel shows the errors which are really scary. Just a couple of days ago, one of my clients was getting 500 Internal Server Error.

Most of the people try to fix this problem by deactivating all the plugins.

It’s also recommended to increase WordPress memory limit for which you have to edit the wp-config.php file.

But what would you do if you get “could not write you may be over quota: bad file descriptor” error while editing the wp-config.php file?

Wouldn’t that be brainstorming? It has happened to me while solving the 500 error.

What Should You Check To Solve This Problem

In most of the cases, you should first try to apply the basic solutions.

#1. Increase Memory Limit

Sometimes, a plugin exhausts the WordPress memory. You can increase it using the wp-config.php file.

Just place a simple code inside the file and save.

define(‘WP_MEMORY_LIMIT’, ’64M’);

You can replace 64M with 256M or even more, depending on your need. If you can edit this file then save it and try to check your website.

If you still get an Internal Server Error, go the next step.

#2. Deactivate All The Plugins

It’s possible that any plugin has conflicted with any other plugin.

To find the culprit. You can deactivate all WordPress plugins from cPanel. You can also disable plugins from database.

You can use this method when you are not able to login to your WordPress admin panel. If you can login then just use the Plugins’ section to deactivate all.

If you don’t get an error after deactivation then it means, any of the plugins is the culprit. Try to activate one by one and find the one.

#3. Check Disk Space Usage

When you see “Could not write (PATH), You may be over Quota”. It’s possible that the disk space provided by your web hosting is full.

It happens when you have the small web hosting plan and the size of your website increases.

Suppose the disk space provided to you is 3GB and the size of your website has increased beyond that. It will definitely show “Disk Exhausted Error”.

You can use the cPanel to find the space used by any folder or file.

Most probably, PUBLIC_HTML consists all the data.

  •  Many web hostings backup your website and remain the backup file in the root directory (public_html). You should delete that file to empty the disk space.
  • Another reason is the MAIL folder because if you’re using the custom domain email address through the Webmail then it’s possible that all the emails are getting stored. Just delete those extra emails and clear the Mail folder.

NOTE :- You can easily check the disk space usage from the cPanel. If you can’t, just ask your web hosting providers. They will provide you the details.

#4. Change or Upgrade Web Hosting

If your website has grown up then it’s important to upgrade the plan.

It’s always recommended to choose the reliable web hostings. You should know about the signs that you should change your web hosting.

There are a few recommended web hostings.

If you’re going to buy a managed hosting the choose WP Engine hosting which is one of the best managed web hostings in the market.

I Hope Now You Can Solve The “Could not write you may be over Quota” Error

The main problem occurs when you try to increase the memory limit and an error appears.

There are many users who don’t really look for the disk space while buying a  web hosting. Most of the web hostings are providing unlimited space.

People make mistakes while backing up their website.

Whenever you backup your website, the backup file resides in the root directory or any specific backup folder. Once you download that to your computer, you don’t need that file on the live server.

If you get “Could not write You may be over Quota: Bad descriptor” even after deleting the files, it’s the problem with your small web hosting plan.

If you have any query, feel free to drop a comment.

You can also connect with us Twitter, LinkedIn, and Facebook.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.

Get Free Updates Into Your Inbox

Learn Everything Just Like I Did



  1. Hi ravi,
    Great tutorial buddy. This whole article might give some relief to people with those errors. It’s great you are using your abilities to solve the problem of common WordPress errors.

    This quota error is a sign of a small memory size isn’t it? Good you wrote about it.

    Have a great weekend ahead.

    1. Hey Swadhin,

      This error is due to memory exhaustion. The reason may vary. In most of the cases the memory gets exhausted and when you try to increase it, you get this error.
      For such issue, you should check the size of your website and the web hosting plan.
      Thanks for stopping by.

  2. Hi Ravi,

    I am facing the same problem and I copied the error message msg (you may be over quota: Bad file descriptor) and pasted it in the google and found your post about this


    Acutally, I was just setting up a 301 redirection (in .htaccess file) on 1 url and found this msg while saving the file. Can half line can create this message?

    Thereafter, I removed the newly added line and save the file (old existing file) but still i am getting the same error message. Why I am getting this message if i did

    not add any extra word in the already existing files?.

    Should I need to follow your suggestions which you mentioned in the post for even adding a single line in any file.

    I need your help.

    waiting for your response.

    Gajender Singh

    1. Hey Gajender,

      As I have mentioned in the post, you must check the disk space of your web hosting account. If that’s okay, you need to try increasing the memory limit because sometimes, any plugin can exhaust it.

      For every error, you have to try a few things to fix. If don’t have any idea, you can directly contact your web hosting customer support.
      Thanks for stopping by.

Leave a Reply

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