0
當我運行的任務:的Magento的cronjob錯誤心跳也找不到
* * * * * /bin/bash /home/soulexhi/public_html/scheduler_cron.sh --mode always
* * * * * /bin/bash /home/soulexhi/public_html/scheduler_cron.sh --mode default
按的Cron調度告訴我,我正在通過電子郵件 HELP收到此錯誤信息!
Content-type: text/html;
<br />
<b>Warning</b>: require_once(/abstract.php): failed to open stream: No such file or directory in <b>/home/soulexhi/public_html/shell/scheduler.php</b> on line <b>3</b><br /> <br /> <b>Fatal error</b>: require_once(): Failed opening required '/abstract.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/soulexhi/public_html/shell/scheduler.php</b> on line <b>3</b><br />
在文件「magento_root /殼/ scheduler.php」的開頭有,我改變以下的require_once:
if (!empty($_SERVER['SCRIPT_NAME']))
require_once dirname($_SERVER['SCRIPT_NAME']) . DIRECTORY_SEPARATOR . 'abstract.php';
else
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'abstract.php';
,但沒有奏效。有人有什麼主意嗎?