sharma-pankaj-tech / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

Login fails unless PHP output buffering is enabled #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Accessing the /admin/ URL fails with the message

     Warning: Cannot modify header information - headers already sent [...]

unless PHP output buffering is enabled. It is disabled by default on many 
installations.

This happens because the HTML code in the file /admin/header.php is included by 
./admin/index.php (also ./admin/login.php) BEFORE the command

    header ("Location: [...]

is issued, which is illegal in PHP unless output buffering is enabled.

A quick fix is to include the command

    ob_start ();

in ./config.php

This could also be causing Issue 8.

Best,
Chris Ferebee

Original issue reported on code.google.com by chris.fe...@gmail.com on 2 Aug 2009 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by hdo...@gmail.com on 2 Aug 2009 at 11:51

GoogleCodeExporter commented 9 years ago
Added output buffering to fix PHP header already sent problems. It'll be 
available in
next version.

Original comment by hdo...@gmail.com on 5 Aug 2009 at 6:43