2

I am getting script timeout issue while importing a database from a zip. The error shows as-

Script timeout passed, if you want to finish import, please resubmit same file and import will resume.

I tried setting $cfg['ExecTimeLimit'] = 0; inside phpmyadmin4.1.14/libraries/config.default.php. Also inside my php.ini I set both max_input_time and max_execution_time to 0.

The zip size is around 33 MB and I'm using WAMP server.
What could be the other cases for which I'm getting this error?

aniskhan001
  • 7,981
  • 8
  • 36
  • 57

3 Answers3

4

Since you get script time out, shouldn't you increase the max_execution_time in php.ini instead of reducing it?

Try with the following values:

post_max_size = 500M
upload_max_filesize = 500M
max_execution_time = 300
max_input_time = 540
memory_limit = 1000M

EDIT: just noticed that max_execution_time is hardcoded to 0, still you can try the above settings.

PHP Worm...
  • 4,109
  • 1
  • 25
  • 48
Sotiris Kiritsis
  • 3,178
  • 3
  • 23
  • 31
1

Please be aware that apache also has an execution time.

Apache Wait Time for Input/Output
Edit file C:\WampDeveloper\Config\Apache\extra\httpd-default.conf
Timeout = 300
Armand
  • 215
  • 1
  • 6
1

This issue commonly arise when we working on heavy load php application. This error comes when you are getting bulk of data from database. Then this type of issue come. You should check the following things in you code.

  • Check you database queries properly.
  • With Select statement you should use the Limit offset.
  • Check each table should have the primary key.

This issue also come when we are upload images or some thing like wise. Some time we did get solution for the heavy load image's then we try to change the logic and try to solve the issue. One more thing that you should check you php.ini configuration setting Increase these values in MB.As follows.

post_max_size = 500M
upload_max_filesize = 500M
max_execution_time = 300
max_input_time = 540
memory_limit = 1000M
Hassan Raza
  • 671
  • 10
  • 27