Warning: Cannot modify header information

It's not difficult to install myLounge Redirection, but sometimes it's quite tricky. Post your questions in here.

Moderator: Scooby

Warning: Cannot modify header information

Postby Msistas » Tue Apr 15, 2003 3:46 am

Hi There,

I don't know what version I had working before, not sure how to tell.

However, we just moved this over to a new server and I am getting this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/sharethe/public_html/subdomains/include/vars.php:96) in /home/sharethe/public_html/index.php on line 19

However, when a subdomain that was previously setup before the move is typed in - that subdomain works. It redirects as is suppose to. Just when an invalid subdomain or the main domain is typed in I get this error.

How can I resolve this?

I do have wildcards on
Version of php is 4.3.1
this account is sharing and IP ( don't know if that makes a difference or not :shock:
Operating system Linux
Apache version 1.3.27 (Unix)

Thanks for your help!!
Msistas
 

Postby andelal » Tue Apr 15, 2003 5:52 am

It seems that you have a mistype in vars.php.
Could you send me the file vars.php or post it here?

Alex
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Postby andelal » Tue Apr 15, 2003 5:54 am

And: how did you move to the new server?
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Postby Msistas » Tue Apr 15, 2003 2:51 pm

Hi There,

The new host provider zipped the entire site and moved it over.

The subdomains that are already setup - work fine, just subdomains that are not setup cause this error.

Here is the vars file less usernames and passwords. I can send you these details via PM if necessary.

<?php

// hostname of the server

$mysql_host = 'localhost';



// mysql-username

$mysql_username = '********';



// mysql-password

$mysql_passwd = '*******';



// the name of the database (will be created during setup)

$mysql_dbase = '*************';



// table names which will be used to save the data

$redir_table = "redir";

$options_table = "options";

$domain_table = "tld";

$category_table = "categories";

$advertiser_table = "advertiser";

$adverts_table = "adverts";

$adclicks_table = "adclicks";

$adviews_table = "adviews";



// You may change the following value

$dateformat = "d. M. Y H:i ";



// Don't change anything below!



// Disable magic_quotes_runtime

set_magic_quotes_runtime(0);



mysql_connect("$mysql_host","$mysql_username","$mysql_passwd");

mysql_select_db("$mysql_dbase");



$result = mysql_query("SELECT * FROM $options_table");

$row = mysql_fetch_array($result);



$adminmail = $row[adminemail];

$adminpasswd = $row[password];

$adminusername = $row[username];

$startpage = $row[home];

$pagetitle = $row[sitetitle];

$domainip = $row[domainip];

$maindomain = $row[maindomain];

$ads = $row[ads];

$standardad = $row[standardad];

?>

Thanks for your help
:D
Msistas
 

Postby andelal » Tue Apr 15, 2003 7:43 pm

Hm.
1) Save your database, at least the tables for myLounge Redirection
2) Make a new installation of the scripts (you have release 1.2)
3) Afterwards, delete the new tables, and import the old ones

I hope you understand what I mean (my english is far from being perfect :) ).
It seems, that the movement to the new server has caused the errors.
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Oh ohhhh

Postby Msistas » Tue Apr 15, 2003 11:07 pm

I understand what it is you need me to do. I just don't know how to do this.

Is there a way though the script to backup the database?

How would I backup the database and re-install the information afterwards.

Thanks for your help.
Msistas
 

Postby Msistas » Wed Apr 16, 2003 3:35 am

Installed the new script - old problem fixed new problem :-) Going to start a new thread though :)
Msistas
 


Return to Support

Who is online

Users browsing this forum: No registered users and 9 guests

cron