Reputation: 14641
I am obviously doing something wrong with a new class/function I am trying because the page won't render at all. All I receive is a blank page if I call this new errorous class/function.
In order to debug it, to see where it bursts, I am trying to enable all error showing stuff but I seem to not doing it right.
I read that I should use ini_set('display_errors', TRUE);
but I am not sure where to place this code?
How can I solve the white page issue please? I would very much like to see the error causing lines/codes.
Thank you
Upvotes: 2
Views: 2422
Reputation: 9650
There's a couple of situations where PHP won't send back an error, eg memory related or max execution time. Have you tried checking the web server error logs?
Upvotes: 2
Reputation: 41428
If you put at the start of your controller in the method being called (assuming it's making it that far)
ini_set('display_errors', TRUE);
error_reporting(E_ALL);
You'll see all errors. This is good for troubleshooting, but you should learn to use the settings for the kohana version you have for logging and error display
Upvotes: 1
Reputation: 91734
Without any code, it's impossible to tell you what is wrong, but if you question is how to display errors, you can add the following to the top of your script:
ini_set('display_errors',1);
error_reporting(E_ALL | E_STRICT);
The first line tells php to display errors on the screen and the second line specifies what errors to display (in this case, all).
Upvotes: 4