I am struggling with a problem for which I cannot find an explanation. I have two development environments that I use for my projects. I created a simple module for Magento and I tested it in one environment. After overcoming all the complications, the Magento module works as expected. This is on XAMPP.
Then I copied the module to the Linux development environment on the host server, and it failed miserably. I did some debugging, and I found out that calling Mage :: getModel () returns bool (false) instead of an instance of the requested model.
I double-checked all files and directories and they match. The database is not involved (not for my part, at least I do not need tables), and in both environments there is only me, as a user, with administrator permissions.
Any suggestion on where I should start looking is welcome, thanks.
Posted on 2012/07/09
The model contains a class called Diego_ClientCustomModule_Model_ExternalUserData , which is called using $model = Mage::getModel('clientcustommodule/externaluserdata'); . The model file is located in Diego_ClientCustomModule\code\local\Diego\ClientCustomModule\Model\ . Curious:
- If the model file is named
Externaluserdata.php , it works. - If the model file has the name
Externaluserdata.php (i.e. matches the class name), it does not work.
I know information about case sensitivity, etc., but if the alias is all lowercase, how can it load a file that has the first letter with a capital letter?
Configuration file 0.1.0 Diego_ClientCustomModule_Helper Diego_ClientCustomModule_Model Diego_ClientCustomModule_Block standard Diego_ClientCustomModule ClientCustomModule
source share