Fehlermeldung Cannot modify header information

Gesperrt
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

folgende fehlermeldung erscheint wenn ich das frontend oder backend aufrufe:

Code: Alles auswählen

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 502

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 507

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 508

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 509

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 510

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 511

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 512

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/conlib/session.inc on line 151

Warning: Cannot modify header information - headers already sent by (output started at /kunden/183369_07650/mallorcainsel/contenido/includes/config.php:1) in /kunden/183369_07650/mallorcainsel/cms/front_content.php on line 244
kann mir jemand helfen, habe die conig.php schon kontrolliert und mir ist kein fehler aufgefallen!
Zuletzt geändert von Oldperl am Mo 13. Dez 2010, 09:39, insgesamt 1-mal geändert.
Grund: Moderation: code-BBCode ergänzt.
Dodger77
Beiträge: 3626
Registriert: Di 12. Okt 2004, 20:00
Wohnort: Voerde (Niederrhein)
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von Dodger77 »

Erstmal willkommen im Contenido-Forum!

In der Datei "contenido/includes/config.php" wird sich evtl. zu Beginn oder Ende ein Leerzeichen oder ein Absatz befinden, z.B. so:

Code: Alles auswählen

<?php

// hier der ganze Code

?>

Das müsste man dann einfach dort entfernen.


Gruß

Ingo / Dodger77
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

Hallo Ingo,

vielen dank für deine antwort, das hatte ich schon in anderen beiträgen gelesen und überprüft, leider nicht der fall.

freundliche grüße
pascal
Dodger77
Beiträge: 3626
Registriert: Di 12. Okt 2004, 20:00
Wohnort: Voerde (Niederrhein)
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von Dodger77 »

Die Fehlermeldung ist dahingehend allerdings eindeutig. In der config.php wird eine Ausgabe vorgenommen, was nicht passieren darf.

Evtl. postest du den Inhalt der config.php hier eben oder sendest mir diesen per PN, wenn es dir lieber ist. So oder so: vorher bitte das DB-Passwort und Pfade/URLs verschleiern, wenn diese nicht gezeigt werden sollen.
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

hier wäre der code:

<?php

/******************************************
* File : config.php
* Project : Contenido
* Descr : Defines all general
* variables of Contenido.
*
* � four for business AG
******************************************/

global $cfg;

/* Section 1: Path settings
* ------------------------
*
* Path settings which will vary along different
* Contenido settings.
*
* A little note about web and server path settings:
* - A Web Path can be imagined as web addresses. Example:
* http://192.168.1.1/test/
* - A Server Path is the path on the server's hard disk. Example:
* /var/www/html/contenido for Unix systems OR
* c:/htdocs/contenido for Windows systems
*
* Note: If you want to modify the locations of subdirectories for
* some reason (e.g. the includes directory), see Section 8.
*/

/* The root server path to the contenido backend */
$cfg['path']['contenido'] = '/kunden/183369_07650/mallorcainsel/contenido/';

/* The web server path to the contenido backend */
$cfg['path']['contenido_fullhtml'] = 'http://mallorainsel.hotels-4you.eu/contenido/';

/* The root server path where all frontends reside */
$cfg['path']['frontend'] = '/kunden/183369_07650/mallorcainsel';

/* The root server path to the conlib directory */
$cfg['path']['phplib'] = '/kunden/183369_07650/mallorcainsel/conlib/';

/* The root server path to the pear directory */
$cfg['path']['pear'] = '/kunden/183369_07650/mallorcainsel/pear/';

/* The server path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg'] = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/tinymce3/';

/* The web path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg_html'] = 'http://mallorainsel.hotels-4you.eu/cont ... /tinymce3/';

/* The server path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg'] = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/';

/* The web path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg_html'] = 'http://mallorainsel.hotels-4you.eu/cont ... l/wysiwyg/';





/* Section 2: Database settings
* ----------------------------
*
* Database settings for MySQL. Note that we don't support
* other databases in this release.
*/

/* The prefix for all contenido system tables, usually "con" */
$cfg['sql']['sqlprefix'] = 'con';

/* The host where your database runs on */
$contenido_host = 'xxxxxxxxxxx';

/* The database name which you use */
$contenido_database = 'db183369_7';

/* The username to access the database */
$contenido_user = 'xxxxxxxxx';

/* The password to access the database */
$contenido_password = 'xxxxxxxxxxxx';

$cfg["database_extension"] = 'mysql';

$cfg["nolock"] = 'false';

$cfg["is_start_compatible"] = false;


/* Security fix */
if ( isset($_REQUEST['cfg']) ) { exit; }
if ( isset($_REQUEST['cfgClient']) ) { exit; }
?>

du kannst die Seite auch aufrufen die ist auf einer subdomain (zurzeit)

(mallorainsel.hotels-4you.eu)

die nächste frage wäre was ich machen mus wenn ich die domain ändern möchte ?

VIELEN DANK
Pascal
Dodger77
Beiträge: 3626
Registriert: Di 12. Okt 2004, 20:00
Wohnort: Voerde (Niederrhein)
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von Dodger77 »

Kannst du den Code der Datei mal komplett kopieren (Strg + a/Mac + a) und hier mit Hilfe der Code-Tags einfügen? Also so:

Code: Alles auswählen

[code]EINGEFÜGTER CODE
[/code]

Dabei bitte nichts entfernen.

Alternativ könntest du auch mal testen, wie es ausschaut, wenn du die Datei explizit in einer einfachen Zeichencodierung (z.B. ANSI) speicherst. Manche Editoren stellen UTF-8-kodierten Dateien ein BOF voran. Das sieht man zwar nicht, bewirkt aber trotzdem eine Ausgabe.
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

Code: Alles auswählen

<?php

/******************************************
* File      :   config.php
* Project   :   Contenido
* Descr     :   Defines all general
*               variables of Contenido.
*
* � four for business AG
******************************************/

global $cfg;

/* Section 1: Path settings
 * ------------------------
 *
 * Path settings which will vary along different
 * Contenido settings.
 *
 * A little note about web and server path settings:
 * - A Web Path can be imagined as web addresses. Example:
 *   http://192.168.1.1/test/
 * - A Server Path is the path on the server's hard disk. Example:
 *   /var/www/html/contenido    for Unix systems OR
 *   c:/htdocs/contenido        for Windows systems
 *
 * Note: If you want to modify the locations of subdirectories for
 *       some reason (e.g. the includes directory), see Section 8.
 */

/* The root server path to the contenido backend */
$cfg['path']['contenido']               = '/kunden/183369_07650/mallorcainsel/contenido/';

/* The web server path to the contenido backend */
$cfg['path']['contenido_fullhtml']      = 'http://mallorainsel.hotels-4you.eu/contenido/';

/* The root server path where all frontends reside */
$cfg['path']['frontend']                = '/kunden/183369_07650/mallorcainsel';

/* The root server path to the conlib directory */
$cfg['path']['phplib']                  = '/kunden/183369_07650/mallorcainsel/conlib/';

/* The root server path to the pear directory */
$cfg['path']['pear']                    = '/kunden/183369_07650/mallorcainsel/pear/';

/* The server path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg']                 = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/tinymce3/';

/* The web path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg_html']            = 'http://mallorainsel.hotels-4you.eu/contenido/external/wysiwyg/tinymce3/';

/* The server path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg']                 = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/';

/* The web path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg_html']            = 'http://mallorainsel.hotels-4you.eu/contenido/external/wysiwyg/';





/* Section 2: Database settings
 * ----------------------------
 *
 * Database settings for MySQL. Note that we don't support
 * other databases in this release.
 */

/* The prefix for all contenido system tables, usually "con" */
$cfg['sql']['sqlprefix'] = 'con';

/* The host where your database runs on */
$contenido_host = 'xxxxxxxxxxxx';

/* The database name which you use */
$contenido_database = 'xxxxxxxxx';

/* The username to access the database */
$contenido_user = 'xxxxxxxx';

/* The password to access the database */
$contenido_password = 'xxxxxxxxx';

$cfg["database_extension"] = 'mysql';

$cfg["nolock"] = 'false';

$cfg["is_start_compatible"] = false;


/* Security fix */
if ( isset($_REQUEST['cfg']) ) { exit; }
if ( isset($_REQUEST['cfgClient']) ) { exit; }
?>
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

Hallo Ingo,

mit der anderen codierung hat es geklappt, aber jetzt habe ich die domain geändert und es kommt folgendes:

Code: Alles auswählen

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /kunden/183369_07650/mallorcainsel/cms/front_content.php on line 204
ich habe in der config.php datei die url geändert die datein liegen auf dem selben server und selber datenbank, hier nochmal der code:

Code: Alles auswählen

<?php

/******************************************
* File      :   config.php
* Project   :   Contenido
* Descr     :   Defines all general
*               variables of Contenido.
*
* ? four for business AG
******************************************/

global $cfg;

/* Section 1: Path settings
 * ------------------------
 *
 * Path settings which will vary along different
 * Contenido settings.
 *
 * A little note about web and server path settings:
 * - A Web Path can be imagined as web addresses. Example:
 *   http://192.168.1.1/test/
 * - A Server Path is the path on the server's hard disk. Example:
 *   /var/www/html/contenido    for Unix systems OR
 *   c:/htdocs/contenido        for Windows systems
 *
 * Note: If you want to modify the locations of subdirectories for
 *       some reason (e.g. the includes directory), see Section 8.
 */

/* The root server path to the contenido backend */
$cfg['path']['contenido']               = '/kunden/183369_07650/mallorcainsel/contenido/';

/* The web server path to the contenido backend */
$cfg['path']['contenido_fullhtml']      = 'http://www.mallorcainsel.com/contenido/';

/* The root server path where all frontends reside */
$cfg['path']['frontend']                = '/kunden/183369_07650/mallorcainsel';

/* The root server path to the conlib directory */
$cfg['path']['phplib']                  = '/kunden/183369_07650/mallorcainsel/conlib/';

/* The root server path to the pear directory */
$cfg['path']['pear']                    = '/kunden/183369_07650/mallorcainsel/pear/';

/* The server path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg']                 = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/tinymce3/';

/* The web path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg_html']            = 'http://www.mallorcainsel.com/contenido/external/wysiwyg/tinymce3/';

/* The server path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg']                 = '/kunden/183369_07650/mallorcainsel/contenido/external/wysiwyg/';

/* The web path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg_html']            = 'http://wwww.mallorcainsel.com/contenido/external/wysiwyg/';





/* Section 2: Database settings
 * ----------------------------
 *
 * Database settings for MySQL. Note that we don't support
 * other databases in this release.
 */

/* The prefix for all contenido system tables, usually "con" */
$cfg['sql']['sqlprefix'] = 'con';

/* The host where your database runs on */
$contenido_host = 'xxxxx';

/* The database name which you use */
$contenido_database = 'xxxxx';

/* The username to access the database */
$contenido_user = 'xxxxx';

/* The password to access the database */
$contenido_password = 'xxxxx';

$cfg["database_extension"] = 'mysql';

$cfg["nolock"] = 'false';

$cfg["is_start_compatible"] = false;


/* Security fix */
if ( isset($_REQUEST['cfg']) ) { exit; }
if ( isset($_REQUEST['cfgClient']) ) { exit; }
?>
oder muss ich noch andere änderungen vornehmen wenn sich die url ändert??

vielen dank im voraus
Dodger77
Beiträge: 3626
Registriert: Di 12. Okt 2004, 20:00
Wohnort: Voerde (Niederrhein)
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von Dodger77 »

Kann es sein, dass für die neu eingestellte Domain kein PHP5 aktiv ist?
pascal90
Beiträge: 6
Registriert: So 12. Dez 2010, 18:05
Kontaktdaten:

Re: Fehlermeldung Cannot modify header information

Beitrag von pascal90 »

Ja genau das wars, super vielen dank!!

vielleicht kannst du mir noch sagen wie ich die von contenido generierten meta tags entfernen kann

Code: Alles auswählen

<meta name="description" content="Ihre Installation hat geklappt! " />
<meta name="keywords" content="k&ouml;nnen, contenido, seite, ihnen, anhand, einer, diese, einen" /> 
<meta name="generator" content="CMS Contenido 4.8.12" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="author" content="Systemadministrator" />
<meta name="date" content="2010-12-05 12:42:04" />
ich habe eigene meta tags für jedes Layout.
Gesperrt