Author Topic: Cannot modify header information - headers already sent by  (Read 7433 times)

0 Members and 1 Guest are viewing this topic.

Offline hummel

  • Newbie
  • *
  • Posts: 34
    • View Profile
Cannot modify header information - headers already sent by
« on: November 18, 2010, 04:16:28 PM »
English


need help
have additional pages uploaded to this Toturial:
http://www.4homepages.de/forum/index.php?topic=23037.msg125757#msg125757
Result:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/******/httpdocs/eingabe.php:5) in /var/www/******/httpdocs/includes/sessions.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at /var/www/******/httpdocs/eingabe.php:5) in /var/www/******/httpdocs/includes/sessions.php on line 101

I look after:
/var/www/*******/httpdocs/eingabe.php:5 :101 : if ($is_first_word || $operator == "or" || $operator == "oder") {
im httpdocs/includes/sessions.php : 101 : $cookie_expire = ($permanent) ? $this->current_time + 60 * 60 * 24 * 365 : 0;


what is wrong?




German


Brauche jetzt mal Hilfe.
suche schon die ganze Zeit aber leider ohne Erfolg.
habe zusätzliche Seiten hochgeladen nach diesem Toturial:
http://www.4homepages.de/forum/index.php?topic=23037.msg125757#msg125757
aber das Resultat:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/******/httpdocs/eingabe.php:5) in /var/www/******/httpdocs/includes/sessions.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at /var/www/*****/httpdocs/eingabe.php:5) in /var/www/*****/httpdocs/includes/sessions.php on line 101

wenn ich danach schaue:  /var/www/*******/httpdocs/eingabe.php:5 :101 : if ($is_first_word || $operator == "or" || $operator == "oder") {

(richtig? im 4images root verzeichnis)

im httpdocs/includes/sessions.php : 101 : $cookie_expire = ($permanent) ? $this->current_time + 60 * 60 * 24 * 365 : 0;

das habe ich bei allen neu hochgeladenen Seiten.

was mache ich verkehrt?


Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: Cannot modify header information - headers already sent by
« Reply #1 on: November 18, 2010, 04:26:31 PM »
http://www.4homepages.de/forum/index.php?topic=3378.0
look into lang/LANGUAGE/main.php on line 101 make sure nothing is after ?>

or

http://www.4homepages.de/forum/index.php?topic=25252.0

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Danke Harald




Offline hummel

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Cannot modify header information - headers already sent by
« Reply #3 on: November 18, 2010, 06:05:30 PM »
http://www.4homepages.de/forum/index.php?topic=3378.0
look into lang/LANGUAGE/main.php on line 101 make sure nothing is after ?>

or

http://www.4homepages.de/forum/index.php?topic=25252.0

no...
101 $lang['headline'] = "Überschrift:";
.
.
.
?>
</head>

lese dir das mal durch
http://www.4homepages.de/forum/index.php?topic=4606.msg126646#msg126646

LG


hatte ich mir durchgelesen...
aber leider kann ich nichts damit anfangen :(

ich mache alles über NVU


gibt es eine andere Alternative seiten dazu hochzuladen?



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Cannot modify header information - headers already sent by
« Reply #4 on: November 18, 2010, 06:06:27 PM »
the question is, what is eingabe.php and what does it have on first 10 lines?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline hummel

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Cannot modify header information - headers already sent by
« Reply #5 on: November 18, 2010, 06:29:58 PM »
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<?php /**************************************************************************
5* *
6* 4images - A Web Based Image Gallery Management System *
7* ---------------------------------------------------------------- *
8* *
9* File: search.php *
10* Copyright: (C) 2002-2009 Jan Sorgalla *

or this?

26 $main_template = 'eingabe';
27 define('GET_CACHES', 1);
28 define('ROOT_PATH', './');
29 include(ROOT_PATH.'global.php');
30 require(ROOT_PATH.'includes/sessions.php');
31 $user_access = get_permission();
32 include(ROOT_PATH.'includes/search_utils.php');
33 error_reporting(E_ALL);
34 $org_search_keywords = $search_keywords;
35 $org_search_user = $search_user;




91 if ($search_word_cache[$i] == "and" || $search_word_cache[$i] == "und" || $search_word_cache[$i] == "or" || $search_word_cache[$i] == "oder" || $search_word_cache[$i] 91 == "not") {
92 if (!$is_first_word) {
93 $operator = $search_word_cache[$i];
94 }
95 }
96 elseif (is_array($search_word_cache[$i])) {
97 if ($search_terms) {
98 $operator = "and";
99 }
100 foreach ($search_word_cache[$i] as $key => $val) {

or line
101 if ($is_first_word || $operator == "or" || $operator == "oder") {

eingabe.php is a additional page
« Last Edit: November 18, 2010, 06:47:38 PM by hummel »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Cannot modify header information - headers already sent by
« Reply #6 on: November 18, 2010, 06:45:26 PM »
remove everything before <?php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline hummel

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Cannot modify header information - headers already sent by
« Reply #7 on: November 18, 2010, 06:53:58 PM »
oh. I have ...
can it be ... because I
DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN">
<html>
<head>

out had it about?
warning is gone!
thank you thank you