我刚刚上传了一个新的cakephp网站,我收到以下错误:
2014-01-19 18:17:07 Error: [MissingComponentException] Component class cookieComponent could not be found.
Exception Attributes: array (
'class' => 'cookieComponent',
'plugin' => false,
)
我确实确认在'Lib'文件夹中,cookie组件确实存在,但我仍然收到此消息。此外,在我的本地wamp网站上,我没有得到相同的错误。
我尝试从应用控制器中删除'cookie'值,但整个网站都空白。
其他详情包括: - cakephp版本2.9 - php 5.3
我已经在stackoverflow上搜索了其他问题,但没有什么突出的。如果组件存在,为什么会出现此错误?
感谢您的反馈,缺少的大写字母解决了这个问题。现在出现了另外两个没有意义的问题。从tmp->错误日志我得到这些:
Request URL: /fonts/webfonts/geo-medium/eot/1110FC_0.eot
Stack Trace:
#0 /home/content/l/e/d/ledesigns/html/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2014-01-20 08:21:39 Error: [MissingControllerException] Controller class FontsController could not be found.
Exception Attributes: array (
'class' => 'FontsController',
'plugin' => NULL,
)
和
Request URL: /fonts/webfonts/geo-semibold/eot/style_169898.eot
Stack Trace:
#0 /home/content/l/e/d/ledesigns/html/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2014-01-20 08:21:39 Error: [MissingControllerException] Controller class CssController could not be found.
Exception Attributes: array (
'class' => 'CssController',
'plugin' => NULL,
)
和
Request URL: /files/uploads/46-Bathroom_Spa_Door_400x569.jpg
Stack Trace:
#0 /home/content/l/e/d/ledesigns/html/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2014-01-20 08:12:23 Error: [MissingComponentException] Component class cookieComponent could not be found.
Exception Attributes: array (
'class' => 'FilesController',
'plugin' => NULL,
)
我从未遇到过调用fontscontroller,csscontroller或filescontroller的错误。上面提到的jpg文件只存在于上一个网站并且在我上传新网站文件时被删除了,这也很奇怪?
另外,我的本地wamp文件没有这些错误。
真的很感激反馈。