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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.