Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> node no longer exists
kicaj
post 24.08.2007, 01:06:07
Post #1





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

Ostrzeżenie: (0%)
-----


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

Ten post edytował kicaj 24.08.2007, 01:34:25


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
loopb
post 24.08.2007, 01:35:12
Post #2





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 21.08.2007

Ostrzeżenie: (0%)
-----


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.
Go to the top of the page
+Quote Post
NuLL
post 24.08.2007, 01:36:25
Post #3





Grupa: Zarejestrowani
Postów: 2 262
Pomógł: 21
Dołączył: 3.05.2004
Skąd: Sopot, Krakow, W-wa

Ostrzeżenie: (0%)
-----


Jaki serwer ? Jesli to Linux to mozliwe ze jakis problem z plikami.


--------------------
Javascript, Coffeescript, Node.js, Mongo, CouchDb, chmury, workery & inne bajery - zycie jest zbyt krotkie aby miec nudna prace :)
Go to the top of the page
+Quote Post
loopb
post 24.08.2007, 01:38:43
Post #4





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 21.08.2007

Ostrzeżenie: (0%)
-----


Serwer to webser.
Kolega wczesniej wkleil calego linka z dostempem.

(output started at C:\WebServer\www\acidShop\www\index.php:3)
Go to the top of the page
+Quote Post
kicaj
post 24.08.2007, 09:53:32
Post #5





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

Ostrzeżenie: (0%)
-----


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. ?>


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 22.06.2025 - 12:18