Um Posted February 12, 2007 Share Posted February 12, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/38233-phpnuke-error/ Share on other sites More sharing options...
worldworld Posted February 14, 2007 Share Posted February 14, 2007 I don't know PHPNuke but i think this can help you... Quote Link to comment https://forums.phpfreaks.com/topic/38233-phpnuke-error/#findComment-184399 Share on other sites More sharing options...
Um Posted February 15, 2007 Author Share Posted February 15, 2007 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... ??? Quote Link to comment https://forums.phpfreaks.com/topic/38233-phpnuke-error/#findComment-185873 Share on other sites More sharing options...
Loki Posted February 18, 2007 Share Posted February 18, 2007 Add the following line to a .htaccess file and place it in your root PHP-Nuke directory: PHP_FLAG output_buffering on or if you have access to php.ini, set: output_buffering=on; Quote Link to comment https://forums.phpfreaks.com/topic/38233-phpnuke-error/#findComment-188139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.