dpq59734 2016-08-15 12:41
浏览 63
已采纳

关于Kohana的小人任务

I have an issue with Minions with Kohana. I want to execute minion task on my server, but seems like Kohana is not able to find the class. I tried on local machine, it works.

What I tried to do:

the terminal

Log file output:

2016-08-15 12:07:09 --- EMERGENCY: Minion_Exception_InvalidTask [ 0 ]: Task 'Task_Demo' is not a valid minion task ~ MODPATH/minion/classes/Kohana/Minion/Task.php [ 79 ] in /var/www/ideapitch.com/public_html/index.php:111 2016-08-15 12:07:09 --- DEBUG: #0 /var/www/ideapitch.com/public_html/index.php(111): Kohana_Minion_Task::factory(Array) #1 /var/www/ideapitch.com/public_html/modules/minion/minion(4): include('/var/www/ideapi...') #2 {main} in /var/www/ideapitch.com/public_html/index.php:111

By examining the file from where the exeption is thrown, I see, that class_exists() function throws false.

How to solve this problem? Maybe some sort of routing is gone wrong? I even did an update from 3.3.1 to 3.3.6, and this didn't solve the problem.

  • 写回答

2条回答 默认 最新

  • dsa456369 2016-08-17 20:50
    关注

    Change the task file name from demo.php to Demo.php. First letter should be capitalized.

    Some OS's are case sensitive, so it may works on your local machine, but not on your server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?