蛋糕烘烤不让我烘烤模型,也不会识别表格中的字段

时间:2014-07-23 17:12:09

标签: cakephp

我正在尝试烘焙今天早上开始的一些模特,一切都很好,直到我不得不离开,所以我做了ctrl ^ c并退出了Putty。由于我记录了所有内容似乎都很好,除非我./cake bake,我收到以下错误和警告:

PHP Warning:  SplFileInfo::openFile(/var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/lib/Cake/Cache/Engine/FileEngine.php on line 355

Warning: SplFileInfo::openFile(/var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/lib/Cake/Cache/Engine/FileEngine.php on line 355
Warning Error: _cake_core_ cache was unable to write 'cake_dev_eng' to File cache in [/var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/lib/Cake/Cache/Cache.php, line 323]

Warning Error: _cake_core_ cache was unable to write 'cake_console_eng' to File cache in [/var/www/vhosts/toast.lancs.ac.uk/httpdocs/jahans/Wimbrick/lib/Cake/Cache/Cache.php, line 323]

我尝试使用chmod -R 777来修改权限,但是当我再次尝试./cake bake时,邮件仍然存在。然后我尝试烘焙我的模型,我能够选择我想要烘烤的桌子,但是当它要求我的主键时它建议0并且在此之后它给了我通常的“一切看起来还好吗?”消息,好像一切都运行正常,当我无法看到我的字段,设置任何验证标准或做任何有用的事情。

有没有人有任何线索?

感谢。

2 个答案:

答案 0 :(得分:0)

事实证明这是工作中的外部问题。

答案 1 :(得分:-1)

你做错了。 您需要阅读有关如何在CakePHP中执行shell的文档。

始终导航到您的APP目录:

cd /path/to/app

然后从那里开始相对运行:

Console/cake bake