Fix Fatal Error Condition showing system path

Posted by JMC on Server Fault See other posts from Server Fault or by JMC
Published on 2012-11-19T15:47:18Z Indexed on 2012/11/19 17:02 UTC
Read the original article Hit count: 177

Filed under:
|

I've noticed there are a large number of servers running Magento Commerce that will return a fatal error showing the system path:

Fatal error: Uncaught exception 'Exception' with message 'File '/usr/local/www/magento/data1702/media/css' does not exists.' in /usr/local/www/magento/data1702/lib/Varien/File/Transfer/Adapter/Http.php:96 Stack trace: #0 /usr/local/www/magento/data1702/get.php(205): Varien_File_Transfer_Adapter_Http->send('/usr/local/www/...') #1 /usr/local/www/magento/data1702/get.php(165): sendFile('/usr/local/www/...') #2 {main} thrown in /usr/local/www/magento/data1702/lib/Varien/File/Transfer/Adapter/Http.php on line 96

Magento as an application is generally good about supressing error messages. How can a linux server running apache be configured to avoid returning this error message since the app has problems suppressing it.

© Server Fault or respective owner

Related posts about apache2

Related posts about web-security