cakephp升级shell调试工具包错误

时间:2011-11-01 13:14:16

标签: php cakephp cakephp-2.0

我正在尝试使用cakephp升级shell将我的项目迁移到cakephp 1.3 - > 2.0.1但是当我运行脚本时,它;返回以下错误:

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}

我在app目录

中运行./Console/cake upgrade upgrade all --dry-run

任何人都知道我做错了什么?

1 个答案:

答案 0 :(得分:2)

根据经验,将插件文件夹移出应用程序,因此在升级过程中不会受到影响。您也可以将文件夹留在那里,但只是将其内容移出场景。

还要记住,在2.0中,需要手动加载插件。在你的bootstrap文件中添加CakePlugin :: loadAll()或者只是CakePlugin :: load('MyPlugin')