davidannis Posted October 26, 2013 Share Posted October 26, 2013 I have a live website, that has been working for well over a year. Brought a copy back to a local machine because the program is a few thousand lines long and includes a class on that is over 5,000 lines of code. I need to do a re-write of the login mechanism and add a huge chunk of code that will double the complexity of the core functions. When I try to run the program, I get a blank web page, no error message. very near the top of the program it creates a new instance of the class. That is where it dies. If I do this: echo 'here'; //define class variable $valuation = new valuation(); echo 'here'; I get one 'here' as output. If I comment out the middle line I get two. I added error_reporting(E_ALL); to the top of the program and when I still got nothing to to the top of the class file. No difference. I'm bleary eyed from lack of sleep, in a distracting environment (chess tournament with hundred of noisy kids some of whom I am responsible for) and I can't even think where to begin troubleshooting it. I don't want to plow through 5,000 lines of code when I know it has to be a configuration difference. Where do you guys think I should start looking? How would you approach this problem? Quote Link to comment Share on other sites More sharing options...
Solution mac_gyver Posted October 26, 2013 Solution Share Posted October 26, 2013 you need to set display_errors, in addition to the error_reporting - ini_set("display_errors", "1"); error_reporting(-1); Quote Link to comment Share on other sites More sharing options...
davidannis Posted October 26, 2013 Author Share Posted October 26, 2013 Thank you mac_gyver. Once I display the errors I can see that a path to a config file is wrong. So, problem is on its way to being solved. Now if I can just get another cup of coffee... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.