sharma-pankaj-tech / phurl

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

Headers already sent #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install
2. Navigate to http://url/admin

What is the expected output? What do you see instead?

Expected: Redirect to login.php
Happened: Warning: Cannot modify header information - headers already sent by 
(output started 
at /home/go/public_html/admin/header.php:6) in 
/home/go/public_html/admin/index.php  on 
line 11

What version of the product are you using? On what operating system?

Beta V2, CentOS

Please provide any additional information below.

Looks like header.php is causing the issue. How about wrapping the html in a 
function so it can 
be called when needed. (Happens when going to index.php while logged out and 
while logging 
in)

Original issue reported on code.google.com by dcedr...@gmail.com on 27 Jan 2010 at 8:06

GoogleCodeExporter commented 9 years ago
I'm getting this same error...

Original comment by explos...@gmail.com on 10 Feb 2010 at 5:05

GoogleCodeExporter commented 9 years ago
same on my side ;=)

Original comment by mike.jans.ch.MJ@gmail.com on 10 Feb 2010 at 3:03

GoogleCodeExporter commented 9 years ago
same here. Workaround: Comment out the require_once("header.php") line in 
index.php
and login.php in the admin folder.

This happens because he tries to alter the header, but a header file already 
exists
and is consulted in the php code. Commenting out these lines will work fine.

I take this chance to thank the author for distributing this code, it helped me 
alot
with the .htaccess file :)

Original comment by kripto...@gmail.com on 3 Mar 2010 at 11:44

GoogleCodeExporter commented 9 years ago
actually I just found out that if you add a title to the admin/header.php it all
works well, and you don't have to comment out anything ;)

just type something in the html tag <title></title>

Original comment by kripto...@gmail.com on 3 Mar 2010 at 3:13

GoogleCodeExporter commented 9 years ago
Your last tip doesn't seem to work, kriptonis. 
In had the problem reported above and, like you said, put a title between the 
<title>
tags in admin/header.php. Now I get the following error message:

Warning: Cannot modify header information - headers already sent by (output 
started
at /home1/extreme6/public_html/xsurl/admin/header.php:6) in
/home1/extreme6/public_html/xsurl/admin/login.php  on line 13

Regards.

Original comment by ale...@gmail.com on 20 Mar 2010 at 2:38

GoogleCodeExporter commented 9 years ago
Here's the fixed version you can use for now: 
http://code.cedricd.org/phurl/phurl-1269164814.zip

Things changed:

* Moved isadminlogin() to root functions.php since the admin file includes it 
anyways
* Fixed headers issue

Original comment by dcedr...@gmail.com on 21 Mar 2010 at 9:53

GoogleCodeExporter commented 9 years ago
Whoops!

I left in a line that requires a user visiting the site index to be logged in 
(as an admin). Fixed in the version 
below:

http://code.cedricd.org/phurl/phurl-1269165644.zip

Original comment by dcedr...@gmail.com on 21 Mar 2010 at 10:03

GoogleCodeExporter commented 9 years ago
Issue 57 has been merged into this issue.

Original comment by hdo...@gmail.com on 26 Apr 2010 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 25 May 2010 at 6:06