Hi @prash18
I hope you are doing good today.
I imported your form into my lab site and I tested it with a sample video (46MB) and the form works fine.
My server settings:
max_execution_time 300
memory_limit 256M
upload_max_filesize 128M
post_max_size 128M
Could you double-check those values on your side, especially upload_max_filesize, increase if necessary and see if this help?
Kind Regards,
Kris
Hi Kris,
my host provided me this info :
PHP execution time (s) 240
PHP memory limit (MB) 512
PHP upload filesize (MB) 512
The values regarding max_execution_time and post_max_size can be changed via htaccess.
I hope this is good. Still I am getting the error.
Regards!
Prashant
Hi @prash18,
Please add the following lines into your .htaccess file
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value memory_limit 512M
php_value max_execution_time 1000
php_value max_input_time 1000
Please add the following lines into your php.ini file
upload_max_filesize=256M
post_max_size=256M
memory_limit=1024M
max_execution_time=1000
max_input_time=1000
Additionally, add those lines into wp-config.php file
Please make sure to add the above code just before the line
/* That’s all, stop editing! Happy blogging. */
set_time_limit(1000);
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '1024M');
Then try again and let us know the results.
Kind regards,
Zafer
Thanks Zafer,
But ur message is confusing.
I got your point regarding .htaccess and php.ini
Then you wrote :
Additionally, add those lines into wp-config.php file
Please make sure to add the above code just before the line
WHICH ABOVE CODE? DO YOU MEAN THE CODE MENTIONED IN PHP.INI? OR THE CODE MENTIONED BELOW?
/* That’s all, stop editing! Happy blogging. */
set_time_limit(1000);
define(‘WP_MEMORY_LIMIT’, ‘512M’);
define(‘WP_MAX_MEMORY_LIMIT’, ‘1024M’);
-
This reply was modified 3 years, 8 months ago by
Prashant.
Hi again @prash18,
Sorry about the typo, I was referring to “below” code to be inserted into wp-config.php instead of “above”.
Please make sure to add the those just before the line
/* That’s all, stop editing! Happy blogging. */
set_time_limit(1000);
define(‘WP_MEMORY_LIMIT’, ‘512M’);
define(‘WP_MAX_MEMORY_LIMIT’, ‘1024M’);
Kind regards,
Zafer
Hello @prash18 ,
We haven’t heard from you for several days now, so it looks like you don’t have any more questions for us.
Feel free to re-open this ticket if needed.
Kind regards
Kasia