MyBB Community Forums

Full Version: Header error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is appearing on a separate page ive built on the forum..

Quote:Warning: Cannot modify header information - headers already sent by (output started at /home/www/twinkletowers.freehostia.com/global.php:1) in /home/www/twinkletowers.freehostia.com/forum/inc/functions.php on line 1118

How can I fix this?
Send me Link to your forum .
I've seen this a hundred times... Wink

If you have edited global.php, or global.lang.php or any other file at the server, download the files, edit with Wordpad (Assuming you are using Windows) and SAVE AS - - .txt and re-upload the file. There should be a variance of about 3 characters.

Editing files at the server, sometimes adds "high-ascii" characters that causes this kind of problem. Sad

Try the above, and it should hopefully fix the problem. Wink
"- -.txt"? I uploaded that file and it did not do anything.. I also tried renameing it to Global.php, but still no luck.

Then I tried editing it with wordpad, uploading the file ("- -.txt") and renameing it to Global.php. The header error is gone, but not the site is destroyed..
The .txt extension was to indicate to you that the file in Wordpad should be "SAVE AS" TEXT ONLY. Not as a .txt file. WordPad will then warn you that you will lose the formatting.. Good, because that's what you want to remove.

My mistake, I should have written it in a different manner. Sad

Your site is NOT destroyed unless there are three things missing: settings.php, config.php and the database.

Replace all the files you have edited if need be, but do it one at a time. You could also re-download the edited files - - In Wordpad do the above, but you must save them as text ONLY and keep the original file names. Wink

And it's global.php NOT Global.php.. Wink
What do you mean by "- -"?

And my site is completely white now, and the bottom half of the page is chopped off. The header is there, but thats it...

http://sonicarena.freehostia.com/
You've lost the .css path. Either you've removed it, or corrupted the path string while you have been making changes.

It appears you've made a mess of what you are trying to do. I suggest that you replace all of the files you have edited with the original ones from the Upload of MyBB.

What you should then do, is to install another MyBB forum as a test forum and do all of your changes there until you get them right. Then make the changes to your main forum. Wink

You have sprites in your theme also, and they can cause unpredictable results in the theme. As in the pic.. Sad
I also had more content below that shoutbox, so some of the stuff dissapeared, as well.
Crystatic,

I did say that I had seen your original problem a 100 times. You can now make that 102 times when I took a short cut to editing two language files at the server; and to both of them were added high-ascii characters that creates the original problem.

You have changed and edited files and by now it would be difficult to gauge what state they are in. There could also be more than one problem with the files that makes it extremely difficult to put the whole thing back together.

You will need to overwrite the files you have opened and edited at the server. You can replace all of the core files if need be.

But DON'T overwrite /inc/config.php or /inc/settings.php because then you WILL lose your forum.

And another reason why some of the display disappears is because sprites are very effective in destroying the layout. If you don't know how to fix the theme.xml, then .zip me a copy and I'll clean it out for you.

Then you will know where the problems are being generated from. Wink

You could also try setting your theme to the MyBB Default and see what that look like.. Anything that will help to pinpoint where it has all gone wrong.
What is this "header2" and where is the original header anchor ??

And I'm begining to see why you are having so many problems.. Forget the .zip. Start a "test" forum and install and change one thing at a time until you break it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: header2 -->
					<a name="top" id="top"></a>
	<div id="container">
		<div id="header">
			<a name="top" id="top"></a>
	<div id="container">
		<div id="header">

<table border="0" width="100%"><tr><td><script language="Javascript" type="text/javascript" src="http://www.sonicstadium.org/sonicnews/ticker/js/"></script></td></tr></table>
<div class="menu">
<table class="coll" border="1" width="100%" height="5">
<tr><td align="right" class="coll2"><ul>			<li><a href="http://sonicarena.freehostia.com/forum/showthread.php?tid=10">Rules</a></li>  <b>l</b>
<li><a href="http://sonicarena.freehostia.com/forum/search.php">Search</a></li> <b>l</b>
					 <li><a href="http://sonicarena.freehostia.com/forum/memberlist.php">Member list</a></li> <b>l</b>
					 <li><a href="http://sonicarena.freehostia.com/forum/calendar.php">Calendar</a></li> <b>l</b>
				

<li><a href="http://sonicarena.freehostia.com/forum">Forum</a></li>  <b>l</b>
<li><a href="http://sonicarena.freehostia.com/gallery/index.php">Image gallery</a></li>  
				</ul>
</td></tr></table></div>
	
	<table border="0" width="100%">
<tr><td class="trowx">

<div class="logo"><a href="http://sonicarena.freehostia.com/forum/index.php"><center><img src="http://sonicarena.freehostia.com/forum/images/sonictheme/soniclogo.gif" alt="TSA Forums" /></center></a></div></center></tr></td></table>
					<hr class="hidden" />
			<table class="coll" border="1" width="100%">
<tr><td class="coll2">
				<!-- start: header_welcomeblock_guest -->
<span style="float:right;"><strong>Current time:</strong> 05-11-2007, 07:14 AM</span>
		Hello There, Guest! (<a href="http://sonicarena.freehostia.com/forum/member.php?action=login">Login</a> &mdash; <a href="http://sonicarena.freehostia.com/forum/member.php?action=register">Register</a>)<br><br>
<!-- end: header_welcomeblock_guest -->
			</td></tr></table>
<center><!-- BEGIN CBOX - http://www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder="0" width="90%" height="100" src="http://www.cbox.ws/box/?boxid=733227&amp;boxtag=8504&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe><br/>
<iframe frameborder="0" width="90%" height="100" src="http://www.cbox.ws/box/?boxid=733227&amp;boxtag=8504&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe>
</div>
<!-- END CBOX --> </center>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			
			
			
			
		
<!-- end: header2 -->

And this is where EVERYTHING stops on your forum..
Pages: 1 2