Whenever we rebuild the catalog_product_flat index, Magento displays its standard error page along with a stack trace that reveals file structure to the outside world.
How do I stop this?
I've tried Googling "magento prevent display errors" but did not find anything relevant.
It doesn't seem to matter whether I comment the error_reporting(E_ALL | E_STRICT); line or these lines:
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
I also added this to the index.php file, to no avail:
ini_set('display_errors', 0);
I still want these errors logged in the var/reports folder, though.
MAGE_IS_DEVELOPER_MODEin.htaccess? If so, make sure your webserver allows setting custom global vars from within .htaccess. Some environments do not allow to do so, especially FCGI envs. But there are workarounds by putting a prefix to the vars. – Nicolas Dec 25 '14 at 07:13