How to increase Maximum execution time - Configuring and using PrestaShop - PrestaShop

Jump to content


How to increase Maximum execution time


Posted 26 September 2011 - 10:06 PM


    PrestaShop Newbie

  • Members
  • Pip
  • 6 Active Posts
Good Day All:

I am attempting to export my catalog to google shopping and when I select Export Products with combination/attributes (Export Several Products: One Product per attribute combination), I receive the following error.

(My shop has 2400 products with almost 40k different products with variations.) I can export 2400 products fine with no errors.

Fatal error: Maximum execution time of 120 seconds exceeded in /home2/saddler3/public_html/classes/SpecificPrice.php on line 124

I have configured the php.ini file with the settings as:
max_execution_time = 600 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 1024M ; Maximum amount of memory a script may consume (1024MB)

I have configured the file with the settings as:
@ini_set('memory_limit ', '1024M');
@ini_set('max_execution_time ', 600);

Is there another place to adjust the execution time other than the places I have already configured? Is there a step that I am missing? I am using Google Merchant Center.


Posted 29 September 2011 - 06:03 PM


    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2229 Active Posts
Maybe the php.ini that is read is not the one you are modifying. Add a file to the root of your installation with

and note the location the php.ini is read from. Is it the same file you are modifying? On demand solutions for PrestaShop.


Posted 02 February 2012 - 07:39 PM


    PrestaShop Newbie

  • Members
  • Pip
  • 24 Active Posts
Hi , did you solved it ? How ?
Tradiční čínská medicína
Traditional Chinese Medicine


Posted 28 December 2015 - 03:08 PM


    PrestaShop Apprentice

  • Members
  • PipPip
  • 31 Active Posts

Take a look into the file : /controllers/admin/AdminImportController.php

Try to set settings there for importing files:


@ini_set('memory_limit', '3024M');
@ini_set('session.gc_maxlifetime', 5000);
@ini_set('max_execution_time', 5000);
@ini_set('max_input_time', 5000);
@ini_set('max_input_vars', 20000);
@ini_set('expect.timeout', '2000');
@ini_set('default_socket_timeout', '2000');

Edited by satkauskas, 28 December 2015 - 03:09 PM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more