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

Reply via email to