How to increase Maximum Execution Time & Memory Limit for WooCommerce
Edit your wp-config.php file
Add this to the top, before the line that says, “define( 'DB_NAME', 'xxx' );”:
define('WP_MEMORY_LIMIT', '256M');
set_time_limit(30000);
Edit your PHP.ini file
If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 64M try 256M:
memory_limit = 256M ; Maximum amount of memory a script may consume (64MB)
max_execution_time = 30000
Edit your .htaccess file
If you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 256M
php_value max_execution_time 30000
Contact Your Host
Should you not feel comfortable in trying the above methods, or the above did not work for you, you need to talk to your hosting about having them increase your Maximum Execution Time & Memory Limit.
Updated on: 05/10/2023
Thank you!