Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: node no longer exists
Forum PHP.pl > Forum > PHP
kicaj
Czym moze byc spowodowany ten blad:
Kod
Warning: session_start() [function.session-start]: Node no longer exists in index.php on line 3

Kod
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at index.php:3) in index.php on line 3

oraz na koncu pliku
Kod
Warning: Unknown: Node no longer exists in Unknown on line 0


Mecze sie z tym juz troche czasu, nie wiem czym moze byc to spowodowane sciana.gif
loopb
Message
Warning: Cannot send session cache limiter - headers already sent
Occurance
PHP, HTML, webpages, using start_session() or headers()
Cause
The PHP function such as headers(), used with start_session(), produces HTML headers. When the PHP fragments are placed in the body of the HTML, this causes errors because the PHP fragments are trying to put HTML headers within the HTML body.
Solution
Put the PHP fragments before the HTML body tag.

Other
White spaces before the <?php or after ?>, session_start(); must be at the firts line at the code; no enter; use ob_start() at start of the script and ob_flush() at end to desabe the header send message
Innymi słowy i po naszemu:

"Cannot send session cache limiter - headers already sent"
"Nie można wysłać zapytania sesji - nagłówek już został wysłany"

1 linijka: <?php session_start();
2 linijka:
3 linijka:

przed session_start(); nie moze być nic; przed <?php nawet spacji

błą 2 związany z pierwszym.
NuLL
Jaki serwer ? Jesli to Linux to mozliwe ze jakis problem z plikami.
loopb
Serwer to webser.
Kolega wczesniej wkleil calego linka z dostempem.

(output started at C:\WebServer\www\acidShop\www\index.php:3)
kicaj
Nie chodzi o zwykly blad z naglowkiem jak pisze @loopb.

Problem juz rozwiazany.
Problem polegal na zarjestrowaniu obiektu SimpleXML w sesji (wywala wlasnie te 3 bledy). Wyjsciem z sytuacji jest umieszczenie typu przed obiektem:
  1. <?php
  2. $strText = (string) simplexml_load_file( /... );
  3. $_SESSION['name'] = $strText;
  4. ?>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.