Domanda

I have an application that is working fine locally. However, when it was uploaded to my (shared) server, it wasn't able to find one of the controllers (that was exteded to). I suspect that it happened because this controller is in another module (which I made sure it was activated in the bootstrap file). The projects isn't in the server's root file and it has been recently upgraded from 3.0 to Kohana 3.3, but I don't think this is the problem.

The structure is something like this:

Controller_Home extends Controller_GradeHorariaFrontEnd <=They are both in the same module

Controller_GradeHorariaFrontEnd extends Controller_Base_FrontEnd <= They are in different modules

And the error I get is: Print screen of the error caused when I tried to access the application in the server

È stato utile?

Soluzione

The problem was that the filename was Frontend.php, while it should have been FrontEnd.php, as it is in the name of the class (Controller_Base_FrontEnd). It worked in windows (localhost) because it is case insensitive, but didn't in linux (in my server) because it is completely case sensitive.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top