Loading..
Processing... Please wait...

Product was successfully added to your shopping cart.



Magento profiler not showing simple fix

Here is the situation: you enable Magento 1 profiler but the trace is not showing on frontend. You followed that online tutorial but still you couldn't get profiler to work.

In case you don't want to spend hours debugging it here is a simple fix that I have been using for years. Open up app/code/core/Mage/Core/Block/Profiler.php and comment out lines 32 to 36:

Magento Profiler Not Showing simple fix Magento Profiler Not Showing simple fix

You can copy app/code/core/Mage/Core/Block/Profiler.php to app/code/local/Mage/Core/Block/Profiler.php to follow Magento Best Practices.

Once you are done with profiling your code you can uncomment those lines.

  

Slow Magento? Get a Free Personalized Speed Report!

* indicates required

 

Like the article? Share:

 

Other articles you might be interested in:

  1. Magento 2 on AWS Debian Jessie 8 Dirty Cheap with Spot Instance
  2. Magento image optimization in 3 easy steps
  3. Magento 2 on PHP7 - 25% increase in performance
  4. Xhprof and PHP 7
  5. Magento 2.2 RC1 Overview

  

Our Magento extensions you might be interested in:

  

If you find this post interesting do not hesitate to sign up for our newsletter and join the 860 people who receive Magento news, tips and tricks regularly.

Thank You!