Thanks Mon Zafra, sorry for the late reply. I figured out the next day after hours of persistence, just a thought came in my mind. Linux servers are strict on cases whereas my test wampserver on windows lets it pass.
cheers Mon Zafra wrote: > > Also, check the letter cases in the file name. > > -- Mon > > > On Tue, Jan 5, 2010 at 10:58 PM, Victor Farazdagi > <[email protected]>wrote: > >> Hi, >> Actually it is worth reviewing if include_path on server actually points >> to >> model directory base path. >> Autoloader can not find the class, so can not load it. Seems you have >> correct include paths on your localbox, while server include path are >> incomplete. >> >> Victor >> >> >> prado wrote: >> >>> Hi >>> >>> I am accessing a default module controller named kmenu from a blog >>> module's >>> layout.phtml file using "$this->layout()->Knav = $this->action('index', >>> 'kmenu');" >>> >>> So the KMenuController is sitting in the Default module that uses >>> "Kcats" >>> model from Default as well. >>> >>> This works all fine on my test machine which is a wampserver running php >>> 5.2.9, but I am getting fatal error on the web hosting provider's >>> production >>> server also running php 5.2.9 >>> >>> Below is the error message, not sure if double slashes (//) is causing >>> the >>> problem >>> >>> ------Start Error message---------- >>> >>> Warning: >>> include(/var/www/vhosts/ >>> zftest.com/httpdocs/system/application/models/DbTable//Kcats.php) >>> [function.include]: failed to open stream: No such file or directory in >>> /var/www/vhosts/ >>> zftest.com/httpdocs/system/library/Zend/Loader/Autoloader/Resource.php >>> on line 176 >>> >>> Warning: include() [function.include]: Failed opening >>> '/var/www/vhosts/ >>> zftest.com/httpdocs/system/application/models/DbTable//Kcats.php' >>> for inclusion >>> (include_path='/var/www/vhosts/ >>> zftest.com/httpdocs/system/application/../library:/var/www/vhosts/zftest.com/httpdocs/system/library:.::../library >>> ') >>> in >>> /var/www/vhosts/ >>> zftest.com/httpdocs/system/library/Zend/Loader/Autoloader/Resource.php >>> on line 176 >>> >>> Fatal error: Class 'Default_Model_DbTable_Kcats' not found in >>> /var/www/vhosts/ >>> zftest.com/httpdocs/system/application/controllers/KmenuController.php >>> on line 14 >>> >>> ------End Error message---------- >>> >>> So in nutshell, if I access a Default controller accessing a Default >>> model >>> from a named module, I get this error. But works fine on my test machine >>> >>> thanks >>> >>> >> >> > > -- View this message in context: http://n4.nabble.com/can-t-access-model-from-default-module-tp998990p1013532.html Sent from the Zend Framework mailing list archive at Nabble.com.
