Re: Site Moved From PHP4 to PHP5 Server - header, location no longer working
| From: | James McLean | Date: | Thu, 07 Jan 2010 06:20:57 +0000 |
| Subject: | Re: Site Moved From PHP4 to PHP5 Server - header, location no longer working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300867@lists.php.net to get a copy of this message | ||
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb <vernon@comp-wiz.com> wrote:
> I move a number of sites from one server to another and one the one server we had php4 and now
> we have php5 and since then my server seems to hang every time there is a header, location redirect.
> Anyone have any ideas on how to resolve this? Is there something I can easily change in the php.ini
> file that will resolve this issue?
Off the top of my head it sounds like something is being output before
the header, which causes an error. If you also have error display
turned off, you will likely just see a white screen with no useful
information.
Make sure none of your includes have trailing whitespace or are trying
to print out information before the header itself.
Best bet is to turn on errors and log them, then you will see where
the output started if infact that is your issue.
Cheers