It appears you have not yet registered with our community. To register please click here...


Database Problem - Topsite site

This is a discussion on Database Problem - Topsite site within the HTML & CSS forums. Topic: I get this when i try to add a site to my topsite "shouttopsites.com" Warning : Cannot modify ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 08-26-2006, 07:27 PM   #1 (permalink)
 
Status: Senior Member
Join Date: Aug 2006
Posts: 255
Trader Rating: (0)
Michael is on a distinguished road
TD$: 0.00
Donate
Default Database Problem - Topsite site
I get this when i try to add a site to my topsite "shouttopsites.com"

Warning: Cannot modify header information - headers already sent by (output started at /home/shouttop/public_html/index.php:1) in /home/shouttop/public_html/sources/misc/session.php on line 56


Any idea why ?
Michael is offline   Reply With Quote
Old 08-27-2006, 11:20 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Aug 2006
Posts: 10
Trader Rating: (0)
RYANNNNNN is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
I'm not exactly sure but I had that when I tried on phproxy. I think it's because there is a piece of code in both files that is the same and are both trying to send something.
RYANNNNNN is offline   Reply With Quote
Old 08-28-2006, 06:55 PM   #3 (permalink)
 
Status: Junior Member
Join Date: Aug 2006
Posts: 27
Trader Rating: (0)
Mr Global is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
obviously there is a code before the php header starts
add <? error_reporting(0); ?> at the top of the page
Mr Global is offline   Reply With Quote
Old 08-28-2006, 06:56 PM   #4 (permalink)
 
Status: Senior Member
Join Date: Aug 2006
Posts: 255
Trader Rating: (0)
Michael is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
thanks il do that now! hope that works
Michael is offline   Reply With Quote
Old 08-29-2006, 11:17 PM   #5 (permalink)
 
Status: Junior Member
Join Date: Aug 2006
Location: Illinois, USA
Posts: 5
Trader Rating: (0)
Demonslay is on a distinguished road
Send a message via AIM to Demonslay Send a message via MSN to Demonslay Send a message via Yahoo to Demonslay
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
Simple problem.

You are probably trying to use a PHP redirection.
You can't send additional headers (redirections, cookies, etc.) after anythign has been echoed to the browser.

Three options in order to fix this.
1. Put all header() functions BEFORE ANYTHING is echoed on the page (HTML, echo()/print() functions, etc.)
2. Use ob_start() at the start of the page to start output buffering
3. Echo a meta refresh

I usually find options 2 and 3 easiest.
Demonslay is offline   Reply With Quote
Old 08-30-2006, 08:54 AM   #6 (permalink)
 
Status: Junior Member
Join Date: Aug 2006
Posts: 27
Trader Rating: (0)
Mr Global is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
turning off error reporting helps too, it's just a warning no error, propably this is because of the network bar at the top of the page, your coder should be able to fix it easy
Mr Global is offline   Reply With Quote
Old 09-10-2006, 11:43 AM   #7 (permalink)
 
Status: Junior Member
Join Date: Sep 2006
Posts: 2
Trader Rating: (0)
Track121 is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
You should use redirect header before any HTML
Track121 is offline   Reply With Quote
Old 10-21-2006, 04:18 PM   #8 (permalink)
 
Status: Junior Member
Join Date: Oct 2006
Posts: 4
Trader Rating: (0)
SeanM is on a distinguished road
TD$: 0.00
Donate
Default Re: Database Problem - Topsite site
Quote:
Originally Posted by Mr Global View Post
turning off error reporting helps too, it's just a warning no error, propably this is because of the network bar at the top of the page, your coder should be able to fix it easy
Uhh, what are you talking about? It's an error for a reason because its not going to work. It is not just a warning it IS an error.

Use output buffering to solve your problem like DemonSlay has suggested. There are quite a few functions that have to do with output buffering

http://ca3.php.net/manual/en/ref.outcontrol.php

Just read that to learn how to use it.
SeanM is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are you a proxy site owner? Submit your site to proxytopsites.org today! proxytopsites Other Offers & Requests 1 10-28-2008 10:57 AM
Need someone to development pinup site edward123 Programming Offers & Requests 0 09-27-2008 04:07 AM
New Site But I Need Back Link dspwebsite Promotion Techniques 8 09-17-2008 08:01 AM
Web Site Design Los Angeles udayyadav123 Web Design Resources 0 11-30-2007 07:32 PM
$10 obo [Start Up] Myspace Resource site! imw Website Offers & Requests 1 11-16-2006 09:35 PM


Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0