I resolved it by running the fast cgi after dispatcher code, instead of before it. if (isset($_GET['scheduled']))
{
$controller = new ScheduledTasks_Controller();
$controller->action_autotask();
// Don't make people wait on us if we can help it.
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}
}
I am, however, not sure of its effects though I managed to stop the header error.
Will it hurts if default ElkArte is also running in the above changed sequence instead of default as below?
if (isset($_GET['scheduled']))
{
// Don't make people wait on us if we can help it.
if (function_exists('fastcgi_finish_request'))0
fastcgi_finish_request();
$controller = new ScheduledTasks_Controller();
$controller->action_autotask();
}