Magento is displaying the MySQL query and a stack trace on catalog pages.

I can't figure out where it's coming from. DB queries should not be displaying on the frontend, for security reasons.

Do you have any idea how I can turn this off?

2 Answers 2


Edit/create errors/local.xml and change action from "print" to "none".

  • This prevented the SQL from being exposed on the frontend. Thanks. Jul 3, 2013 at 7:16

Check your index.php, is Mage::setIsDeveloperMode(true); reachable in any way? Try commenting it out.

  • I have if(isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } in index.php. Does that make sense? Jun 29, 2013 at 10:00
  • It makes sense, but try commenting the Mage::setIsDeveloperMode(true); out and see if you still get stack traces. Also try @Joe's answer as that could be the solution. Jun 30, 2013 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.