Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiling not working as expected #4

Open
mdda opened this issue Aug 12, 2010 · 1 comment
Open

Profiling not working as expected #4

mdda opened this issue Aug 12, 2010 · 1 comment

Comments

@mdda
Copy link

mdda commented Aug 12, 2010

In application/bootstrap.php, the following :
'profiling' => ! IN_PRODUCTION,

should be :
'profile' => ! IN_PRODUCTION,

(per the documentation above)...

All the Best
Martin
:-)

@mdda
Copy link
Author

mdda commented Aug 12, 2010

In addition, if database profiling is FALSE, then Kohanut::render_stats() fails.

To fix this, in classes/kohanut/core.php :
$queries = count($queries['database (default)']);
should be :
$queries = isset($queries['database (default)'])?count($queries['database (default)']):'unknown';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant