09-25-2019, 12:56 AM,
(This post was last modified: 09-25-2019, 12:57 AM by alanmi3833.)
|
|
alanmi3833
Senior Member
|
Posts: 53
Threads: 19
Joined: May 2018
|
|
MRP calculation error
I suddenly have the following error when running MRP calculation, used to work fine. Did no update recently.
Any ideas
Quote:Start time: 04:42:50
Initialising tables .....
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\webERP\includes\ConnectDB_mysqli.inc on line 57
Regards
Alan
|
|
09-25-2019, 01:23 AM,
|
|
alanmi3833
Senior Member
|
Posts: 53
Threads: 19
Joined: May 2018
|
|
RE: MRP calculation error
Hi Tim
That was what I thought too.
Running Windows 8 with XAMPP 3.2.3.
Already changed php.ini to the following:
Quote:; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time=160
Still giving 120 as the timeout, system rebooted to make sure the change are seen by Apache, hence the question.
Regards
Alan
|
|
09-25-2019, 01:59 AM,
|
|
TimSchofield
Tim Schofield
|
Posts: 1,318
Threads: 22
Joined: Mar 2015
|
|
RE: MRP calculation error
I seem to recall that XAMPP installed more than one php.ini but it's a long time ago.
You should be able to set the execution time in the script itself as per ( https://www.codewall.co.uk/increase-php-...-function/), so if you put in:
ini_set('max_execution_time', 240);
at the top of MRP.php straight after the <?php line it should just set it for that script. However I have had mixed results with this, and haven't had time to find out why.
Tim
Tim
|
|
09-25-2019, 02:56 AM,
|
|
alanmi3833
Senior Member
|
Posts: 53
Threads: 19
Joined: May 2018
|
|
RE: MRP calculation error
Nope that didn't work.
Changed the following line in ..../weberp/config.ini
Code: $MaximumExecutionTime = 120;
to
Code: $MaximumExecutionTime = 200;
Have to change in both php.ini and config.ini.
Working fine now again.
Thanks Tim
|
|
|