How to solve the error Disk Space Is Full Error in WordPress it's all about increasing the memory limit PHP in WordPress. There are several ways to do it. Today, BKNS I will guide you in 3 ways:
- Edit file wp-config.php
- Edit files php.ini
- Edit file .htaccess
Method 1: Edit wp file – config.php
This is the most popular and simplest way to increase PHP memory limit in WordPress. In this method we will edit the file wp-config.php. Make sure you back up the file on your local or desktop computer before editing. This helps you in case you need to restore the file to its previous state.
Now, to resolve the error “Disk Space Is Full Error”just add the code below in the file before the line that says “That's all, stop editing! Happy blogging".
define( 'WP_MEMORY_LIMIT', '256M' );
Once you've made the edit. Visit your website URL to see if the error has been resolved. In some cases, this method may not work. This can happen if you have shared hosting and the hosting provider does not allow such changes. In that case, you need to contact your hosting provider to resolve this issue.
Method 2: Edit the php.ini file
File php.ini is a configuration file that can be used to control resource limits. It is read when a script PHP is executed or when PHP start up. In case of direct installation you will find the file php.ini in the root directory of the installation. That is in the directory /public_html/ . In most cases, the file is set up by your server. For example, if you are using Cpanel make your dashboard. Make sure the box "Show Hidden Files" is selected and press "Go" . Note: Be sure to back up the file before editing. Now, open the file and add the following line in the code:
memory_limit 512M
Finally, press Save and close the file.
Method 3: Edit the .htaccess file
If the file editing php.ini inactive to increase the limit PHP in WordPress you can try to edit the file.htaccess . You will find this file located in the root directory of your WordPress files. You should back up this file in case you need the original file.
To increase the memory limit, add the following code at the end of the file:
php_value memory_limit 256M
Save the changes and check for errors'Allowed Memory Size Exhausted' is resolved or not. Here are three easy and quick ways that you can resolve the error Disk Space Is Full Error in WordPress.
>>> More interested:
Post a Comment
Post a Comment