Jump to content
  • 0
jaxchris

How to increase Maximum execution time

Question

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 config.inc.php 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.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×