Ever been working on your store, installing a contribution, amending files only to go to the page and be presented with a blank page??
This means that your host has suppressed error reporting, so there is an error but you can’t see it not very helpful to debugging is it!
You have two ways to see the error
- Use your server error logs; they will be available from within you Web hosts control panel.
- The code way.
Some hosts do not allow you access to the error logs especially if you are on a shared server; in this case you are stuffed! or are you
You can go the code way, there are many different codes you can use, but normally all you need is to place the following in the <?php tags at the top of the file you are having a problem with,
ini_set('display_errors',1);
error_reporting(E_ALL);
this code will print to your screen the error causing the page to be blank, its also easier than delving through error logs! |