2009年11月27日星期五

[fw-mvc] autoloader problem

Hi ZF community,

today i take a look at apache error_log and I got this error message :

[Fri Nov 27 16:44:33 2009] [error] [client 114.48.30.190]
PHP Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Cdn' was not found in the registry; used paths:\n
Zend_View_Helper_: Zend/View/Helper/:/www/website/application/views/helpers/' in /www/website/library/Zend/Loader/PluginLoader.php:406\n
Stack trace:\n
#0 /www/website/library/Zend/View/Abstract.php(1118): Zend_Loader_PluginLoader->load('Cdn')\n
#1 /www/website/library/Zend/View/Abstract.php(569): Zend_View_Abstract->_getPlugin('helper', 'cdn')\n
#2 /www/website/library/Zend/View/Abstract.php(336): Zend_View_Abstract->getHelper('cdn')\n
#3 [internal function]: Zend_View_Abstract->__call('cdn', Array)\n
#4 /www/website/application/views/scripts/error/error.phtml(22): Zend_View->cdn('images')\n
#5 /www/website/library/Zend/View.php(108): include('...')\n
#6 /www/website/library/Zend/View/Abstract.php(833): Zend_View->_run(' in /www/website/library/Zend/Loader/PluginLoader.php on line 406, referer: http://www.website.com/index/beta

Then I try to put Cdn.php under www/website/application/views/helpers/ .. the above error gone .. and i got this error :

[Fri Nov 27 16:47:50 2009] [error] [client 114.48.30.190]
PHP Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'JQuery' was not found in the registry; used paths:\n
Zend_View_Helper_: Zend/View/Helper/:/www/website/application/views/helpers/' in /www/website/library/Zend/Loader/PluginLoader.php:406\n
Stack trace:\n
#0 /www/website/library/Zend/View/Abstract.php(1118): Zend_Loader_PluginLoader->load('JQuery')\n
#1 /www/website/library/Zend/View/Abstract.php(569): Zend_View_Abstract->_getPlugin('helper', 'jQuery')\n
#2 /www/website/library/Zend/View/Abstract.php(336): Zend_View_Abstract->getHelper('jQuery')\n#3 [internal function]: Zend_View_Abstract->__call('jQuery', Array)\n
#4 /www/website/application/layouts/layout.phtml(21): Zend_View->jQuery()\n
#5 /www/website/library/Zend/View.php(108): include('...')\n
#6 /www/website/library/Zend/View/Abstract.php(833): Zend_View->_run('/ in /www/website/library/Zend/Loader/PluginLoader.php on line 406, referer: http://www.website.com/index/beta

This error does not happen to any client .. but one in particular was [client 114.48.30.190] .. keep receiving this error .. any idea how to fix this?

Thank you very much,
Ari

没有评论: