EchoFool Posted December 5, 2009 Share Posted December 5, 2009 Okay - on my 8th line i have this: <?php require_once("connect.php"); require_once("functions.php"); session_start(); ini_set('display_errors',0); error_reporting(E_ALL); //the rest unrelated ?> Yet when i make an error i still get blank white pages with nothing to help me know what the problem is. Did i put the error reporting incorrectly? I tried it on line 1 and 2 - still nothing changed. Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/ Share on other sites More sharing options...
mrMarcus Posted December 5, 2009 Share Posted December 5, 2009 sorry, i smirked a little bit there. change: ini_set('display_errors',0); to: ini_set('display_errors',1); Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972116 Share on other sites More sharing options...
EchoFool Posted December 5, 2009 Author Share Posted December 5, 2009 Will this show warnings + notices ? And thanks for the correction Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972124 Share on other sites More sharing options...
mrMarcus Posted December 5, 2009 Share Posted December 5, 2009 that would be your error_reporting(E_ALL); check the PHP Manual Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972132 Share on other sites More sharing options...
EchoFool Posted December 5, 2009 Author Share Posted December 5, 2009 i did thats what gave me the white blank page in the first place xD Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972141 Share on other sites More sharing options...
mrMarcus Posted December 6, 2009 Share Posted December 6, 2009 i did thats what gave me the white blank page in the first place xD how are you sure? when you remove that line, the page shows fine? Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972143 Share on other sites More sharing options...
EchoFool Posted December 6, 2009 Author Share Posted December 6, 2009 i did thats what gave me the white blank page in the first place xD how are you sure? when you remove that line, the page shows fine? When i removed the line it was still blank - but having the line was meant to stop the blank from occuring by showing errors. As you see in first post i had the lin which displays everything but it didn't Works now though since i put 1 instead of 0 Link to comment https://forums.phpfreaks.com/topic/184122-error-reporting-not-workign/#findComment-972144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.