Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 08.02.08, 18:47
Forum Newbie
 
Registriert seit: 03.02.06
Beiträge: 27

mehrsprachigkeit fehlermeldung


hallo
habe folgendes problem:
habe eine neue website erstellt und bis zum hinzufügen von mehreren sprachen auch kein problem gehabt.

habe mithilfe eines markers ein sprachmenu in website integriert und das läuft eigentlich alles prima. nur bekomme ich nun folgende fehlermeldung im frontend wenn ich mich durch die menupunkte klicke. sobald ich einen menupunkt zum zweiten ma angeklickt habe erscheint die fehlermedlung nicht mehr???

PHP-Code:
[code]WarningCannot modify header information headers already sent by (output started at /home/httpd/vhosts/meinedomain.ch/httpdocs/web/fileadmin/scripts/sprachmenu.php:1in /home/httpd/vhosts/meinedomain.ch/httpdocs/web/typo3_src/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2907[/code
wäre super wenn mir jemand weiterhelfen könnte.

liebe grüsse
braindead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 08.02.08, 19:11
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.515

und was steht bei fileadmin/scripts/sprachmenu.php in zeile 1?
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 08.02.08, 19:22
Forum Newbie
 
Registriert seit: 03.02.06
Beiträge: 27

danke für die schnelle antwort!

in der ersten zeile steht schlicht und einfach
<?php
unten der ganze inhalt des php scripts

PHP-Code:
<?php 

/***************************************************************
*  Copyright notice
*  
*  (c) 1999-2002 Kasper Skårhøj (kasper@typo3.com)
*  All rights reserved
*
*  This script is part of the Typo3 project. The Typo3 project is 
*  free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.

*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*  A copy is found in the textfile GPL.txt and important notices to the license 
*  from the author is found in LICENSE.txt distributed with these scripts.
*

*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
 * sprachmenu.php
 *
 * THIS IS AN EXAMPLE designed to work with the official Typo3 Quickstart
 *
 * @author    Patrik Bitzer <kaepten@c-dev.ch>
 */



/// Fuer die aktuelle Seite werden alle all pages_language_overlay records geholt. Jeder Record entspricht einer Sprache
$query "SELECT * FROM pages_language_overlay WHERE pid=".$GLOBALS["TSFE"]->id.$GLOBALS["TSFE"]->sys_page->enableFields("pages_language_overlay")." GROUP BY sys_language_uid";

$res mysql(TYPO3_db,$query);
$langArr=array();
while(
$row=mysql_fetch_assoc($res)) {
     
$langArr[$row["sys_language_uid"]]=$row["title"];
}


$flags = array();
if (
$GLOBALS["TSFE"]->sys_language_uid==0) {
    
// Englisch ist aktiv - Deutsch und Franzoesisch werden anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=1" target=_top>deutsch </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=3" target=_top>francais</a>';
    
} elseif (
$GLOBALS["TSFE"]->sys_language_uid==1) {
    
// Deutsch ist aktiv - Englisch und Franzoesisch werden anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" target=_top>english </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=3" target=_top>francais</a>';
}
elseif (
$GLOBALS["TSFE"]->sys_language_uid==3) {
    
// Franzoesisch ist aktiv - Englisch und Deutsch anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" target=_top>english </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=1" target=_top>deutsch</a>';
}


// Macht die Ausgabe. Das Menu transferitert die page-id und die "L" variable zur Sprachsteuerung
$content implode("",$flags);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 08.02.08, 19:26
Benutzerbild von worCOhOLic
Forum Stammgast
 
Registriert seit: 14.09.07
Ort: Dortmund
Alter: 33
Beiträge: 106

und wo geht der php-tag wieder zu?
__________________
~~~~~~
Dennis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 08.02.08, 19:29
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.515

Zitat:
Zitat von worCOhOLic Beitrag anzeigen
und wo geht der php-tag wieder zu?
das ist nicht notwendig und muss nicht gemacht werden


@ braindead: keine whitespaces vor dem <?php tag ?

georg
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 08.02.08, 19:48
Forum Newbie
 
Registriert seit: 03.02.06
Beiträge: 27

hab ich alles gemacht, also habs mal mit schliessen von php versccht wie unten gezeigt.
und eigentlich habe ich vor dem <?php auch keine leerzeichen ?



PHP-Code:
<?php 

/***************************************************************
*  Copyright notice
*  
*  (c) 1999-2002 Kasper Skårhøj (kasper@typo3.com)
*  All rights reserved
*
*  This script is part of the Typo3 project. The Typo3 project is 
*  free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.

*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*  A copy is found in the textfile GPL.txt and important notices to the license 
*  from the author is found in LICENSE.txt distributed with these scripts.
*

*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
 * sprachmenu.php
 *
 * THIS IS AN EXAMPLE designed to work with the official Typo3 Quickstart
 *
 * @author    Patrik Bitzer <kaepten@c-dev.ch>
 */



/// Fuer die aktuelle Seite werden alle all pages_language_overlay records geholt. Jeder Record entspricht einer Sprache
$query "SELECT * FROM pages_language_overlay WHERE pid=".$GLOBALS["TSFE"]->id.$GLOBALS["TSFE"]->sys_page->enableFields("pages_language_overlay")." GROUP BY sys_language_uid";

$res mysql(TYPO3_db,$query);
$langArr=array();
while(
$row=mysql_fetch_assoc($res)) {
     
$langArr[$row["sys_language_uid"]]=$row["title"];
}


$flags = array();
if (
$GLOBALS["TSFE"]->sys_language_uid==0) {
    
// Englisch ist aktiv - Deutsch und Franzoesisch werden anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=1" target=_top>deutsch </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=3" target=_top>francais</a>';
    
} elseif (
$GLOBALS["TSFE"]->sys_language_uid==1) {
    
// Deutsch ist aktiv - Englisch und Franzoesisch werden anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" target=_top>english </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=3" target=_top>francais</a>';
}
elseif (
$GLOBALS["TSFE"]->sys_language_uid==3) {
    
// Franzoesisch ist aktiv - Englisch und Deutsch anzeigen
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" target=_top>english </a>';
    
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=1" target=_top>deutsch</a>';
}


// Macht die Ausgabe. Das Menu transferitert die page-id und die "L" variable zur Sprachsteuerung
$content implode("",$flags);

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #7  
Alt 09.02.08, 07:45
Forum Newbie
 
Registriert seit: 03.02.06
Beiträge: 27

in der fehler meldung gibt es einen zeilnumbruch(nach ), aber keine ahnung ob dies der urheber des fehlers ist und wenn ja wo könnte ich diesen entfernen (suche wohl schon zu weit)?

richtige fehlermeldung:
PHP-Code:

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/meinedomain.ch/httpdocs/web/fileadmin/scripts/sprachmenu.php:1in /home/httpd/vhosts/meinedomain.ch/httpdocs/web/typo3_src/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2907 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #8  
Alt 09.02.08, 10:51
Benutzerbild von worCOhOLic
Forum Stammgast
 
Registriert seit: 14.09.07
Ort: Dortmund
Alter: 33
Beiträge: 106

ich glaube kaum, dass das  zum quellcode gehört...
__________________
~~~~~~
Dennis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Mehrsprachigkeit Eva TYPO3 4.x Fragen und Probleme 4 05.02.08 09:27
Mehrsprachigkeit smithers TemplaVoila 2 16.05.07 12:08
Mehrsprachigkeit smithers TYPO3 4.x Fragen und Probleme 3 28.03.07 16:13
TV und Mehrsprachigkeit valentin TemplaVoila 3 18.10.06 14:09
Mehrsprachigkeit VolkerG TYPO3 3.x Fragen und Probleme 27 02.03.06 16:09


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:46 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0