View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Cron stops - ProjeQtOr
 
 

Cron stops

More
21 Nov 2014 16:03 - 26 Nov 2014 08:47 #1 by ndusch
Cron stops was created by ndusch
Hello Babynus,
Cron stops with the following reason and doesn t restart anymore.

Fri Nov 21 14:26:14.222055 2014] [:error] [pid 4496:tid 1736] [client 192.168.1.58:58603] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\wamp\\www\\projeqtor\\model\\Cron.php on line 302, referer: http://192.168.1.12/projeqtor/view/main.php

We cannot define if this is caused by Apache or Projeqtor.
Do you have any idea for thus issue please?
Regards, ND
Last edit: 26 Nov 2014 08:47 by protion.
The topic has been locked.
More
21 Nov 2014 20:23 #2 by babynus
Replied by babynus on topic Cron stops
Most possible your PHP is running in safe mode.
In this mode set_time_limit(0) has no effect.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
23 Nov 2014 20:49 #3 by ndusch
Replied by ndusch on topic Cron stops
PHP is not running in safe mode.
Any other idea?
The topic has been locked.
More
23 Nov 2014 23:29 #4 by babynus
Replied by babynus on topic Cron stops
Chech log file for warning.
Do you have message such as :

WARNING : try to extend time limit to 0 seconds forbidden by safe_mode. This may lead to unsuccessfull operation.


Try and test some php code to check that
set_time_limit(0);
works fine and extends php running time to unlimited.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
24 Nov 2014 10:12 #5 by ndusch
Replied by ndusch on topic Cron stops
Thanks for your quick reply.
I don t find the message warning in logs.
And I m not skilled enough to run test php code.
I don t find the string "set_time_limit" in any files of wamp folder!!! Is this strange or not?
The topic has been locked.
More
24 Nov 2014 19:13 - 24 Nov 2014 19:19 #6 by babynus
Replied by babynus on topic Cron stops
Try the attached script (after unzipping and copying into your web directory)
Run it from a browser.

It should result in something like :

SET REPORTING LEVEL TO GET ALL ERRORS
SET TIME LIMIT TO UNLIMITED EXECUTION
OK, NEW TIME LIMIT ACCEPTED BY PHP
SCRIPT RUNNING FOR 0 S
SCRIPT RUNNING FOR 10 S
SCRIPT RUNNING FOR 20 S
SCRIPT RUNNING FOR 30 S
SCRIPT RUNNING FOR 40 S
SCRIPT RUNNING FOR 50 S
SCRIPT RUNNING FOR 60 S
SCRIPT RUNNING FOR 70 S
SCRIPT RUNNING FOR 80 S
SCRIPT RUNNING FOR 90 S
SCRIPT RUNNING FOR 100 S
...
SCRIPT RUNNING FOR 110 S

never ending

If it stops after 30 seconds, it means set_time_limit(0) failed. This is the case when PHP is in safe mode.
Try and change php.ini
max_execution_time = 300
but this is only for testing, as it is not good practice to keep it to zero in production mode.

You may also face some time limit defined in Apache or IIS.

Babynus
Administrator of ProjeQtOr web site
Attachments:
Last edit: 24 Nov 2014 19:19 by babynus.
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.043 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.