2

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?

5

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

  • This prevented the SQL from being exposed on the frontend. Thanks. – Buttle Butkus Jul 3 '13 at 7:16
1

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? – Buttle Butkus Jun 29 '13 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. – Rick Kuipers Jun 30 '13 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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