PHP Dug Error after language select

Discussion in 'PHP' started by scubita, Nov 18, 2008.

  1. #1
    Hi

    Everything just fine in PHPDug languages - except mine :mad:

    This is the error i get in header:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
    (output started at /XXX/XXXXXX/public_html/NAMEOFTHESITE/includes/lang/lang_mylanguage.php:1)
    in /XXXX/XXXXXXX/public_html/NAMEOFMYSITE/index.php on line 14


    And i get some sort of different frame on top, and bellow the correct site.

    Any idea why this had to happen just with my language pack?

    Greenies ahead > :)
     
    scubita, Nov 18, 2008 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    Not enough information. Actually, this error states that lang_mylanguage.php contains some string at line 1, which was outputted to browser. Ensure you have no text or whitespace before opening php tag (<?php).
     
    wmtips, Nov 18, 2008 IP
    scubita likes this.
  3. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Error fixed, wmtips is da man. Thanks! ;)
     
    scubita, Nov 18, 2008 IP
  4. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #4
    To all interested: it was an UTF BOM (invisible chars) embedded at the beginning of file. So do not use Notepad for editing UTF-8 encoded php files on Windows. (Notepad2 is more suitable for example).
     
    wmtips, Nov 18, 2008 IP