ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error reporting - Turn on errors in PHP - White screen

January 25, 2011 5:44pm

Subscribe [3]
  • #1 / Jan 25, 2011 5:44pm

    Elliot Lewis

    49 posts

    I’ve have some custom PHP code running in EE 1.
    This is erroring somewhere but I can’t see what error PHP is throwing back as all I get is a white page.

    How do you turn on errors to output to the page?

    I’ve checked php info and errors are on.
    I’ve set ‘Debug Preference’ to 1.
    I’ve tried altering error_reporting(0); in index.php to error_reporting(2);

  • #2 / Jan 25, 2011 5:51pm

    Aaron Waldon

    66 posts

    Hi Elliot! This may (or may not help), but what happens if you change:

    error_reporting(0);

    to:

    error_reporting(E_ALL);
    ini_set('display_errors', '1');

    in /index.php?

    Also, don’t forget to set this back afterward, as it could give sensitive server info to people that you don’t want to see it.

  • #3 / Jan 26, 2011 8:05am

    Elliot Lewis

    49 posts

    Thanks Aaron, that did the trick.
    Not sure which one, but I commented out error_reporting(0); put in both and now I’m getting errors.

  • #4 / Jan 26, 2011 8:09am

    Aaron Waldon

    66 posts

    No problem Elliot. Glad I could help. 😊 Good luck debugging!

  • #5 / Jan 26, 2011 3:02pm

    Ingmar

    29245 posts

    Glad to see that’s taken care of. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases