Jump to content

PHPnuke error


Um

Recommended Posts

I received this error today:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web900/html/index.php:2) in /home/www/web900/html/mainfile.php on line 182

 

In mainfile.php, 182 line is this:

 

setcookie("lang",$language,time()+31536000);

 

This is code from line 170 to line 200:

 

	    setcookie("lang",$newlang,time()+31536000);
    include("language/lang-".$newlang.".php");
    $currentlang = $newlang;
} else {
    setcookie("lang",$language,time()+31536000);
    include("language/lang-".$language.".php");
    $currentlang = $language;
}
    } elseif (isset($lang)) {
include("language/lang-".$lang.".php");
$currentlang = $lang;
    } else {
setcookie("lang",$language,time()+31536000);
include("language/lang-".$language.".php");
$currentlang = $language;
    }
}

function get_lang($module) {
    global $currentlang, $language;
    if (file_exists("modules/$module/language/lang-".$currentlang.".php")) {
if ($module == admin) {
    include_once("admin/language/lang-".$currentlang.".php");
} else {
    include_once("modules/$module/language/lang-".$currentlang.".php");
}
    } else {
if ($module == admin) {
    include_once("admin/language/lang-".$currentlang.".php");
} else {
    include_once("modules/$module/language/lang-".$language.".php");

 

Also, I can forget to tell you this:

 

In Opera I cant se this waning, but in Explorer and Firefox error is always on top of the screen.

 

I have insert adsense, and everything seems to be OK, except this error.

 

Can you tell me what to do, please?

 

Thank you!

Link to comment
Share on other sites

I do not know why, but from my home computer I can see this error, but from my work computer, there is no error.

 

Also In opera this erro is not there, but in Explorer and Firefor, that eror appears.

 

Can you look if you see this error on www.um-design.com ?

 

:(

 

If you do no see it, than this error doesn't metter. Please notify me if you see it...  :( ???

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.