dongrunying7537 2011-11-01 13:14
浏览 15
已采纳

cakephp升级shell调试工具包错误

I' m trying to use cakephp upgrade shell to migrate my project to cakephp 1.3 -> 2.0.1 but when i run the script, it; s returning the following error:

Error: Plugin DebugKit could not be found.
#0 /Applications/MAMP/htdocs/youppie/lib/Cake/Core/App.php(328): CakePlugin::path('DebugKit')
#1 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Command/UpgradeShell.php(223): App::pluginPath('DebugKit')
#2 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Command/UpgradeShell.php(91): UpgradeShell->helpers()
#3 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Shell.php(372): UpgradeShell->all()
#4 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/ShellDispatcher.php(177): Shell->runCommand('all', Array)
#5 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#6 /Applications/MAMP/htdocs/youppie/app/Console/cake.php(41): ShellDispatcher::run(Array)
#7 {main}

I' m running ./Console/cake upgrade upgrade all --dry-run inside app directory

Anyone knows what i'm doing wrong ?

  • 写回答

1条回答 默认 最新

  • dq8081 2011-11-01 15:14
    关注

    As a rule of thumb, move your plugins folder out of the app, so it is not affected during the upgrade. You could also leave the folder there, but just move the contents of it out of the scene.

    Also remember that in 2.0, plugins need to be loaded manually. In your bootstrap file add CakePlugin::loadAll() or just CakePlugin::load('MyPlugin')

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题