How To Fix Maximum Upload and PHP Memory Limit Issues in WordPress
How To Fix Maximum Upload and PHP Memory Limit Issues in WordPress
issues in WordPress ?
docs.presscustomizr.com/article/171-fixing-maximum-upload-and-php-memory-limit-issues
=> Those messages are typically related to your website's server settings for
maximum upload size or memory limit.
In the Customizr or Customizr Pro WordPress themes, we have a feature to let you
easily check your system's information. This will be helpful when troubleshooting
errors.
1/6
1. For Customizr Pro Theme, you can find it in WordPress admin ->
Appearance -> About Customizr Pro
2. For Customizr Theme, you can find it in WordPress admin -> Appearance -
>About Customizr
3. Scroll down the page and you will see the section - System Information
This happens when your PHP Upload Max Filesize (upload_max_filesize) set in your
php.ini file is smaller than the file size of Customizr Pro Theme or the file size of the
image that you are trying to upload.
2/6
At the time of writing, the file size of Customizr Pro Theme (zip file) is 11.2M.
Look into your System Information for the value of PHP Upload Max Filesize, you will
need to increase it to a higher and healthier value.
Solutions
The following are some solutions available to fix your exceeded upload max filesize
issue in WordPress.
memory_limit
upload_max_size
post_max_size
upload_max_filesize
max_execution_time
max_input_time
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
1. Access it using your FTP program. (how to do use a FTP software with WordPress
?
2. Backup a copy of this file before attempting to edit it.
3/6
3. Open it and find the following values, one at a time (They are located at different
lines within the file)
memory_limit
upload_max_size
post_max_size
upload_max_filesize
max_execution_time
max_input_time
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
5. Save your changes and overwrite the .htaccess file on your server.
6. Go back to your System Information and check if your values have changed. If not,
you should contact your hosting company for assistance in editing these values in
your php.ini file.
4/6
If you are experiencing white screen on your site or at intermittent and in different
webpages. Set WP_DEBUG to true in your wp-config.php. If you are seeing something
similar to the following error message on screen or in your server error log
Fatal error: Allowed memory size of 12345678 bytes exhausted (tried to allocate 2345678
bytes) in /home/your-username/public_html/wp-includes/plugin.php on line 1000
This means your PHP does not have enough memory to work properly.
Solutions
The following are some solutions available to fix your memory exhaust issue.
1. Use your ftp program and navigate to your WordPress root directory.
2. Find your wp-config.php and download a copy to your computer as backup.
3. Open up wp-config.php using your plain text editor or code editor.
4. Insert the following code at the end of the file.
define('WP_MEMORY_LIMIT', '256M');
1. Using FTP program, navigate to your hosting server and look for the php.ini file.
2. Download and keep a backup copy.
3. Open it using your code or plain text editor.
4. Find the following.
memory_limit
5/6
5. Change the value to a much higher value. For example.
memory_limit = 256M
5. Save your changes and overwrite the .htaccess file on your server.
6. Go back to your System Information and check if your values have changed. If not,
you should contact your hosting company for assistance in editing these values in
your php.ini file.
Further reading
WordPress Codex
External Resources
Did this answer your question? Thanks for the feedback There was a problem
submitting your feedback. Please try again later.
6/6