When I try to run cron manually, i receive this message:
warning: set_time_limit() has been disabled for security reasons in /home/**/public_html/includes/common.inc on line 2619
Only one help is
@set_time_limit(240);
So why it is?
Somebody knows? (I don't have time for researching)
Is it something with Drupal or me?
Comments
Comment #1
mdupontIt is very likely that the server you're hosting your site on (it's a low-cost shared host, isn't it?) has disabled some functions in PHP configuration, including set_time_limit(), which could potentially be use by malicious scripts to overload the server.
Typically, the PHP time limit is set to something like 30s, but cron tasks in Drupal may need more than that to complete (indexing new nodes, cleaning stuff, etc), that's why there is an attempt to raise the time limit to 240s. I you don't have access to the PHP configuration on your server there's nothing you can do. Just try not to install too many modules with heavy cron tasks.