Php 克朗元';不运行代码点火器功能?

Php 克朗元';不运行代码点火器功能?,php,codeigniter,cron,Php,Codeigniter,Cron,当我尝试只使用没有功能的控制器时,它可以工作,但使用功能时出现了问题 0 * * * * php /home/31175-23437.cloudwaysapps.com/username/public_html/index.php historic //this works * * * * * php /home/31175-23437.cloudwaysapps.com/username/public_html/index.php system runsystem //this don't w

当我尝试只使用没有功能的控制器时,它可以工作,但使用功能时出现了问题

0 * * * * php /home/31175-23437.cloudwaysapps.com/username/public_html/index.php historic //this works
* * * * * php /home/31175-23437.cloudwaysapps.com/username/public_html/index.php system runsystem //this don't works
我确信/system/runsystem可以工作

runsystem包含以下代码:

public function runsystem(){
    $systemid = $this->sys_model->getmailsystems();
    foreach($systemid->result() as $row){
        $this->system_options("right","1x2","EU",true,$row->sys_id);
    }
    $usersystems = $this->sys_model->getusersystems();
    foreach($usersystems->result() as $row){
        $email = $row->email;
        $subject = $row->subject;
        $message = $row->message;
        sendmail($email,$subject,$message);
    }       
}

你犯了什么错误?@jaydepb。如何检查错误?我没有访问日志文件的权限…在runsystem函数开始时打印一些内容以测试函数是否工作。