I don't know why just a white page is returned when there are errors in the script written using smarty. How can I enable smartys error handler to show me where and what error exactly occured?
[RESOLVED] Smarty's white page for errors
Smarty will throw an error and show it by default.
Make sure you have PHP's [man]error_reporting[/man] turned on
Smarty. Have you ever heard about?
Unfortunately smarty.net is down, so I can't verify it, but ...
Smarty shows errors by default. If you are getting a blank page, it is most likely due to a fatal error and [man]error_reporting[/man] being turned off.
Ive found that if I get a blank page when using smarty it is usually a php error and not a smarty error.
I usually put this snippet of code at the top of a configuration file I use to tell smarty where my directories are
<?php
//error reporting
ini_set('display_errors', '0');
?>
Change the 0 to a 1 to see errors and back to 0 to turn off error reporting.
//if(function_exists('ini_set'))
//ini_set("error_reporting","E_ALL & ~E_NOTICE & ~E_STRICT");
Thanks.