Jump to content

Xampp Does Not Display Header Errors


Eritrea

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/268954-xampp-does-not-display-header-errors/
Share on other sites

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.