-
Hello,
I’m trying to upload a background image. When I upload i get an html error. the image size is 623KB. I looked at your image on your theme demo here: http://themes2go.xyz/demos/lifecoach/wp-content/uploads/2017/03/lifecoach-home-new.jpg and see that it is the same dimensions and the size is similar to yours?
is there a setting where i can allow greater file size upload? or is there a way to reduce my file size? seems if i make the image any smaller it is too skinny and then ’tiles’ meaning half of the image repeats…
can you give me some advice here? thank you.
Hello timaay,
you have some upload limit on your server.
Please use one of these solutions (any server is different so one of these methods may work better than the others depending on the server settings)1. add this in the .htaccess file of your server
php_value memory_limit 128M php_value post_max_size 128M php_value upload_max_filesize 128M php_value max_execution_time 1800
2. add this to wp-config.php
define(‘WP_MEMORY_LIMIT’, ’64M’);
3. create a text file, call it php.ini and put this text in it:
upload_max_filesize = 64M post_max_size = 64M
Have a good day,
Andrea- This reply was modified 6 years, 3 months ago by themes2go.
if i want to add it into my .htaccess where would i place it inside of the file? Here is what my files says, i have pasted it below can you please show me where to place the code you provided?
# BEGIN WordPress
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access plus 6 hours”
ExpiresByType image/jpeg “access plus 6 hours”
ExpiresByType image/gif “access plus 6 hours”
ExpiresByType image/png “access plus 6 hours”
ExpiresByType text/css “access plus 6 hours”
ExpiresByType application/pdf “access plus 1 week”
ExpiresByType text/javascript “access plus 6 hours”
ExpiresByType text/html “access plus 10 minutes”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresDefault “access plus 3 hours”
</IfModule>
Header set X-Endurance-Cache-Level “2”
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . /index.php [L]
</IfModule># END WordPress
Hello! Igor here, for a clarification if I may.
Asy colleague Andrea suggested, Http error is caused only by 2 things: max execution time too small or file size limit too small. Please follow the instructions provided with the manual or, if you are notpractice with those changes, you can ask help to your provider. Your server pareter are blocking the upload of your file because it’s too big and it takes a second for your provider to change the limitYou can send them the requirements page of the theme manual of you want to have a clear pareter to follow.
In alternative there is a free plugin to change the max exec time a d upload size in the WordPress repository. But the plugins doesn’t work with every server.
Please consider that the issue is caused by server settings that are smaller than the requirements so we can’t take action directly on this, more than suggesting how to fix, because is server territory
Please let me know if the provided solutions worked.
Regards
IgorHello!
As suggested, you can try editing .htaccess file or php.ini.Here some documentation from WordPress Codex:
https://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceededYou can also try to fix the issue using a plugin: https://wordpress.org/plugins/wp-maximum-execution-time-exceeded/
Keep me posted on that,
Andrea
The topic ‘HTML Error on image upload’ is closed to new replies.