module - Magento - Mage::getModel not working on Linux server -
i'm struggling issue can't find explanation. have 2 development environments use projects. created simple module magento , tested on 1 environment. after overcoming magento's complications, module works expected. on xampp.
i copied module development linux environment, on hosted server, , crashes miserably. did debugging, , found out call mage::getmodel() returns bool(false) instead of instance of model requested.
i double checked files , directories, , match. database not involved (not side, @ least, don't need tables) , both environments have me user, admin permissions.
any suggestion on should start looking welcome, thanks.
added on 2012/07/09
model contains class named diego_clientcustommodule_model_externaluserdata, invoked $model = mage::getmodel('clientcustommodule/externaluserdata');. model file resides in diego_clientcustommodule\code\local\diego\clientcustommodule\model\. curious thing is:
- if model file named
externaluserdata.php, works. - if model file named
externaluserdata.php(i.e. matches class name), doesn't work.
i'm aware of case sensitivity stuff etc, but, if alias lower-case, how comes can load file having first letter capitalized?
configuration file 0.1.0 diego_clientcustommodule_helper diego_clientcustommodule_model diego_clientcustommodule_block standard diego_clientcustommodule clientcustommodule
snarking framework asking may not best strategy receiving help.
your issue 1 of cache (remove var/cache folder check) or 1 of improper casing. note first letter of each directory , filename files loaded autoloader (blocks, models, , helpers).
Comments
Post a Comment