Articles on: WooCommerce Integration

Resolving Images Upload Error in WordPress

If not all images were uploaded from Sellbery to WooCommerce, there is probably a problem with a Maximum Execution Time option in WordPress.

Maximum execution time (max_execution_time) limits how long a PHP script can run. If a hand exceeds the time limit, you will receive the Maximum execution time of X seconds exceeded error. The solution is increasing the time limit.

There are two ways to increase the Maximum Execution Time limit:
Contact your web hosting provider.
Modify a php.ini file manually.


1. Contact your web hosting provider



Usually, hosting providers limit the use and abuse of server resources, especially for shared hosting. That's why they set the default value for Maximum Execution Time to 30 seconds. However, we recommend you contact your web hosting provider and request them to increase the Maximum Execution Time limit to 60 or higher (if possible).


2. Modify a php.ini file manually



You can fix the Maximum Execution Time error in WordPress by modifying your php.ini file. The php.ini file is a configuration file that defines the settings for PHP on your server. You can edit the php.ini file:

Through the web hosting Control Panel.
Using an FTP client.

On some WordPress hosting platforms, you may not see the php.ini file inside your WordPress folder. In this case, you need to contact your web hosting provider.

Before you proceed, please back up your WordPress site. Read more about it there WordPress Backups

Please follow the steps below to figure out the problem:



Step 1
Open the php.ini file.

Step 2
Find and change the value of “max_execution_time” to a larger value.
For example, set max_execution_time = 60 (it means 60 seconds).

Step 3
Save and upload your changes back to the server.

Step 4
Restart the server.

If the problem still exists, repeat steps 1-4 and try to increase the max_execution_time to 120 or higher.


3. Increase another limit



You can also try to increase the following options if manipulations with the max_execution_time is not helped:
max_input_time: 60
(upload|post)_max_size: 240MB

Updated on: 02/03/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!