Welcome Guest, Not a member yet? Register   Sign In
Not getting Errors...

Hello all, having some trouble i hope you can help with...

im working in a development environment and I'm constantly running into small syntax errors (missing ;'s, stuff like that) and whenever there is an error, rather than printing a message giving me a message, or even a line/filename, it doesn't display anything. just a blank page. its really slowing me down, and im looking to find a way to re-enable this error reporting, but havent found it yet, can someone point me in the right direction?

[eluser]Aaron Wagner[/eluser]
Check your PHP settings and make sure that the errors are set to output to the screen. I had the same issue. Look for this line in your php.ini file:

display_errors = On

Found the solution:

in index.php i commented out all the code related to error reporting (lines 20-50) and put this after it:

ini_set('display_errors', 'On');
define('MP_DB_DEBUG', true);

[eluser]Aaron Wagner[/eluser]
That should do it. If you want to use the environment variables, then you could just add that code inside the switch statement. Otherwise, what you did should be great.

Theme © iAndrew 2016 - Forum software by © MyBB