Magento whitescreening when data model load called
I've set up my config.xml and my controller, my data model clas开发者_运维知识库s and resource class and I can see that the classes are loading and can echo out the object and NULL data object information.
However, when I try to call the ->load method of the data model object, I get the whitescreen of death. I've double checked and triple checked my config.xml and I'm not sure what I'm doing wrong or what to look for next...can anyone help?
Thanks!
Kristina
PHP never errors out without telling you why, it's just a matter of finding the right log.
First, check your Magento exception log
var/log/exception.log
Second, check your PHP Error log. If you're not sure where the that, run phpinfo()
from a blank file on your server and look for the
error_log
variable. If this isn't set, set it via the ini_set
function, or by changing your php.ini
file.
If you leave error_log
unset, PHP will send logs to the "SAPI error logger", which is a fancy way of saying your apache error log.
Finally, although it won't help with all white screen cases, try turning developer mode on. There's the following line in index.php
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
So either set MAGE_IS_DEVELOPER_MODE
in your .htaccess
file, or just comment out the conditional. This will turn off the default error reporting and output exceptions/errors/warnings/etc to the browser.
精彩评论