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

关于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条)

报告相同问题?

悬赏问题

  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了