2009年11月27日星期五

Re: [fw-mvc] autoloader problem

You should really use 1.9.6 instead of just the loader with 1.9.1  I'm sure that is your problem.  is there a reason why you are not using the entire 1.9.6 library?

Jon

Ari Awan wrote:
Yes .. I upgrade only the loader module to 1.9.6 ...  but I am using ZF 1.9.1 for the whole library tho .. any hint on why?  On Nov 27, 2009, at 6:41 PM, Yaroslav Vorozhko wrote:    
Hi Ari, Did you upgrade ZF library recently?  Ari Awan wrote:     
Hi Yaroslav,  I have put this in my bootstrap.php  	protected function _initViewHelpers() 	{			 		$autoloader = Zend_Loader_Autoloader::getInstance(); 		$autoloader->registerNamespace('Website_'); 		 		$this->bootstrap('view'); 		$view = $this->getResource('view'); 		$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); 		$view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper'); 		$view->addHelperPath('Website/View/Helper', 'Website_View_Helper');	  	}  is this correct? I never encountered this error before .. and as far as I can remember i didnt change anything .. so I am wondering what happens ...  On Nov 27, 2009, at 5:38 PM, Yaroslav Vorozhko wrote:          
Hi, Your should fix include paths. Look at index.php or bootstrat.php file to setup proper paths.              
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                     
         
   

--
Zend Certified EngineerJon Whitcraft
Zend Certified Engineer
jwhitcraft@mac.com

没有评论: