Undefined Index Script_Filename

Hello,I m getting this problem when try to run cron job for auto emails---- Undefined index: SCRIPT_FILENAME in CApplication.php on line 146, can anyone helop me

i ve solved the problem just use this before cronjob command


Where do you place that exactly? Could you please provide full cronjob command?