Eritrea Posted October 1, 2012 Share Posted October 1, 2012 Hi. I am designing a CMS site, And in localhost, there are no errors even though error reporting is on and I can see many errors. But, " header already sent " are not visible, and when I uploaded my site online, I am starting to see all these errors. Is there something I am doing wrong with XAMPP? Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/ Share on other sites More sharing options...
Pikachu2000 Posted October 1, 2012 Share Posted October 1, 2012 What are your error reporting settings? Are you sure you don't have output buffering ON by default on your local web server? Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382006 Share on other sites More sharing options...
Eritrea Posted October 1, 2012 Author Share Posted October 1, 2012 I don't know anything about output buffering (I am a newbie). So, do you think that is the problem? Should I turn it off? Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382007 Share on other sites More sharing options...
Eritrea Posted October 1, 2012 Author Share Posted October 1, 2012 Just searched phpinfo() file in xampp, and there exists no option called output buffering Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382011 Share on other sites More sharing options...
Pikachu2000 Posted October 1, 2012 Share Posted October 1, 2012 There should be an entry for it in the PHP Core section, with 2 values. There should also be entries for error_reporting and display_errors, and those should also have 2 values. Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382017 Share on other sites More sharing options...
White_Lily Posted October 1, 2012 Share Posted October 1, 2012 In xamps built in php.ini file between lines 350 and 650 there should a lot of error reporting (most of which is rubbish and un-needed for most sites) you need to have display_errors set it "On" and error_reporting should already have the needed values entered. You will then to go into the xmaps web-server control panel and switch the "Apache" plugin off, then wait 10-20 seconds and switch it back on, reload your page and it should work. Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382058 Share on other sites More sharing options...
Eritrea Posted October 3, 2012 Author Share Posted October 3, 2012 thanks lily, but none of the thing you said work. Because, I can't find them all. Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382389 Share on other sites More sharing options...
chintansshah Posted October 3, 2012 Share Posted October 3, 2012 use below code and run on your server $ini = ini_get_all(); print_r($ini); many times, your localhost and live server ini settings are different, just run above code on both server and compare it, using, ini_set() you can change your server ini settings Quote Link to comment https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/#findComment-1382410 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.