Jump to content

Debug Profiling not working in prestashop 1.5.4


quietkillah

Recommended Posts

I am trying to improve the loading time of my website.

So after doing some modifications. I wanted to check the SQL Query speeds.

To do this i thought i only had to turn on Debug Profiling.

 

But when i change

define('_PS_DEBUG_PROFILING_', false);

to

define('_PS_DEBUG_PROFILING_', true);

 

part of my site doesn't get loaded. And i can't see any extra information.

I only see the toppart of my website.

 

Any ideas what is causing this issue? or how to resolve this?

Link to comment
Share on other sites

Hmm, that's unlucky. And do you know of any alternatives to easily monitor your site speed (to be able to make some improvements?)

I tried using the mysql slow_query_log but it's quite hard to understand and analyse this log.

Link to comment
Share on other sites

I you suggest to enable

define('_PS_MODE_DEV_', true);

to see if there are further errors in your installtion. Might be that there are missing db fields or something and therefore the profiler is not working.

Best regards, trip

Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...

I had the same problem with 1.6.0.9, my solution: 

 

Additionally to define('_PS_DEBUG_PROFILING_', true); in define.inc.php

edit tools/profiling/Controller.php and comment out the two lines (304-305 on 1.6.0.9):

/* if (!$this->ini_get_display_errors())
   return;
*/

Now it works. Don't know why ini_get_display_errors() is not initialized...

  • Like 1
Link to comment
Share on other sites

  • 7 months later...
  • 2 years later...

I had the same problem with 1.6.0.9, my solution: 

 

Additionally to define('_PS_DEBUG_PROFILING_', true); in define.inc.php

edit tools/profiling/Controller.php and comment out the two lines (304-305 on 1.6.0.9):

/* if (!$this->ini_get_display_errors())
   return;
*/

Now it works. Don't know why ini_get_display_errors() is not initialized...

 

There is no such line in 1.6.1.4 and I have same issue. It just stopped working but I dunno why.

I only see blank page even if I have dev mode set to true.

Edited by hakeryk2 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...