Jump to content

[SOLVED] header() suddenly stopped working in every script


sioleabha

Recommended Posts

Yes, I just read the sticky regarding header() errors, and I double-triple checked that there is no whitespace or ANYTHING being sent to the browser before the header.

 

I have three scripts on my website that all use header: a login script and two dynamically generated images.  Two weeks ago they all worked, and I have not done *anything* to my website since then except to post one blog entry.  My husband upgraded our server through Plesk, but I checked and PHP has not been upgraded.  (We are using 5.1.6)  I am not sure if any changes were made to PHP, though.  Yesterday I got an email from my best friend letting me know that she cannot login to comment on my blog, and while troubleshooting I determined that header() is the problem.  I cannot even write a simple redirect that does NOTHING but use header(), such as:

 

<?php header("Location: http://www.usr-bin-mom.com/"); exit; ?>

 

I copied that directly from php.net, but it does not work.  No matter how I try to use header(), it fails.  I am not getting any error message, because at some point my husband changed something that means I never get error messages anymore, and he doesn't remember what he changed.

 

Help?

I fixed it -- thank you!  Somehow my referrer script was screwing it up.  I'm not sure why -- I haven't touched that referrer script or anything to do with it in ages.  Since I don't really care about it anymore, I just removed it, and now everything works!

 

Thanks for showing me how to get the error to display!

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.