leonardlh Posted August 19, 2014 Share Posted August 19, 2014 I can post some code once I am back at my laptop but for now thinking about this is keeping me awake in bed and all I have handy is my phone. Anyway, I am new to OOPHP. I have a class that I created. I have two objects/instances of it, each using some of the same and some different methods within the class. When I run the page either of the instances works great alone but I get the white screen of death when I try to use both instances at the same time. Any ideas or places I should start? Quote Link to comment Share on other sites More sharing options...
trq Posted August 19, 2014 Share Posted August 19, 2014 Start by posting some code. Using multiple objects of the same type in the same scope does not alone cause any issue. Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted August 19, 2014 Share Posted August 19, 2014 "The white screen of death" indicates you have error-reporting turned off. Step 1 is developing with errors on. Set error_reporting in PHP.ini or use the php function error_reporting(E_ALL); Quote Link to comment Share on other sites More sharing options...
trq Posted August 19, 2014 Share Posted August 19, 2014 "The white screen of death" indicates you have error-reporting turned off. Or have produced a fatal error. Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted August 19, 2014 Share Posted August 19, 2014 If you're producing a fatal parse error, the error_reporting() function won't work because the PHP isn't even being run. You'll need to enable error_reporting in php.ini for that. The rest of the fatal errors should be displayed with the error_reporting() function turning errors on. 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.