Hi,
Try these ones:
1. in you theme functions.php add:
@ini_set( ‘upload_max_size’ , ‘200M’ );
@ini_set( ‘post_max_size’, ‘200M’);
@ini_set( ‘max_execution_time’, ‘300’ );
2. in php.ini:
upload_max_filesize = 200M
post_max_size = 200M
max_execution_time = 300
3. in .htaccess file:
php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value max_execution_time 300
php_value max_input_time 300
Let me know if the issue will not go away.
Hello thank you for the reply.
I tried method 1 & 2 and did not work.
I will try method 3 but I need to ask a question. In my htaccess file, there are all # everywhere. do I need to place this 3rd code in some particular line? or at the beginning of the file?
Hi,
You should place it inside ‘ifmodule’ section, something like this:
<IfModule mod_php5.c>
php_value post_max_size 10M
php_value upload_max_filesize 40M
php_value memory_limit 500M
</IfModule>
I tried the 3rd method and my site went all blank, none of these methods worked. I pasted the original text back into place of the .htaccess file, and my website functioned again.
What else is left I can try?
But I’d like to know, what can my Web host company do from their end?
I didnt use the: <IfModule mod_php5.c> </IfModule>
I just inserted at the bottom of the page:
php_value post_max_size 10M
php_value upload_max_filesize 40M
php_value memory_limit 500M
Would it makes a difference?
Is this legit, my web host company said:
There is nothing we can do about it. From our end we have the php set to maximum uploads 1GB for your site. So it’s a WP issue you have to sort out.
Let’s check current limits to be sure was it applied or not after your modifications.
Please create phpinfo.php file that contains
<?php phpinfo(); ?>
inside.
Place the file to the /var/www/vhosts/example.com/httpdocs/
Or to the httpdocs/ if you have access just to your webspace.
And access it via browser as http://yourWebsiteName.domainName/phpinfo.php
It will show various parameters, but you need to check:
memory_limit
post_max_size
upload_max_filesize
And publish the value here.
btw, did you paste exactly this text into .htaccess:
php_value post_max_size 10M
php_value upload_max_filesize 40M
php_value memory_limit 500M
or changed it and increased values up to 200M at least? Just in case 😉
I changed the limits to 200! 🙂
Ill give the other method with the <?php phpinfo(); ?> a go now, and see how it works, Ill keep you posted.
regarding the <?php phpinfo(); ?> I was all ready shown by my host company which showed me the value, but ill post here too, just in case they missed something.
you will see the: upload_max_filesize 1G
http://graphomet.com.au/test.php