Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Warning:
Day Walker
post 21.03.2007, 22:11:33
Post #1





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 14.03.2007

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


  1. <?php
  2. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 1
  3.  
  4. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 4
  5.  
  6. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 5
  7.  
  8. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 6
  9.  
  10. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 7
  11.  
  12. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 8
  13.  
  14. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 9
  15.  
  16. Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesWebServhttpdpsaaa.php:8) in C:Program FilesWebServhttpdpsstrona1.php on line 26
  17. ?>


Robię strone w edytorze PHP Maker i mam dwa panele na stronie jeden do wyświetlania treści a drugi jako np. Najnopwsze tutoriale (wyświuetlane tam bedą 10 ost. rekordów dodanych do bazy tutoriali) i gdy klikne na Tytuł danego tutka w tym panelu przeniesie mnie do Własciwej pozycji (tego kliknietego Tutoriala)

Ten błąd pokazuje mi sie gdy: zaincluduje ten skrypt panelu "Najnowsze Tutoriale" na strone... Powiem ze to jest oparte o system templatek smile.gif

Ktoś pomoże ? jesli chcecie mogę powiedzieć więcej, jezeli wyżej jest napisane niezrozumiale smile.gif

To mi zostało do zrobienia i ruszam ze stronką smile.gif

Proszę o Helpa!
Go to the top of the page
+Quote Post
strife
post 21.03.2007, 22:13:32
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 605
Pomógł: 96
Dołączył: 22.10.2004
Skąd: UK

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


Przenoszę na Przedszkole.

A Ty przeczytaj: PHPedia::Cannot add header information - headers already sent


--------------------
Go to the top of the page
+Quote Post
lectric
post 21.03.2007, 22:27:05
Post #3





Grupa: Zarejestrowani
Postów: 167
Pomógł: 1
Dołączył: 22.08.2006
Skąd: universe

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


proponuje zebys ustawil session_start() w pierwszych bajtach zaraz po zdeklarowaniu <?


--------------------
Potrzebujesz dodać darmowe ogłoszenia ?, w takim razie musisz odwiedzić to miejsce !
Presell - tutaj dodasz swoj artykul za darmo ! Presell Page dla wszystkich bez limitów i utrudnień
Masz firme ? Ta baza firm jest dla Ciebie i Twoich znajomych są też śmieszne filmiki
Go to the top of the page
+Quote Post
Day Walker
post 21.03.2007, 22:45:46
Post #4





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 14.03.2007

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


No wporządku... teraz mi cos takiego wyskoczyło ;/

  1. <?php
  2. Fatal error: Cannot redeclare basicsearchsql() (previously declared in C:Program FilesWebServhttpdpsdownloadlist.php:404) in C:Program FilesWebServhttpdpsCustomView1list.php on line 380
  3. ?>


Ktoś moze pomóc ?


P.S Na początku kodu mam:

  1. <?php 
  2. ?>
  3. <?php include ("ewconfig.php") ?>
  4. <?php include ("db.php") ?>
  5. <?php include ("CustomView1info.php") ?>
  6. <?php include ("advsecu.php") ?>
  7. <?php include ("phpmkrfn.php") ?>
  8. <?php include ("ewupload.php") ?>
  9. <?php
  10. if (!IsLoggedIn()) {
  11. header("Location: login.php");
  12. exit();
  13. }
  14. ?>


Ten post edytował Day Walker 21.03.2007, 22:48:03
Go to the top of the page
+Quote Post
tansky
post 21.03.2007, 23:16:14
Post #5





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 5.12.2005

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


No, po raz wtóry deklarujesz basicsearchsql()... przecież pisze. Jeśli nie rozumiesz komunikatów z debuggera to raczej nie zaczynaj przygody z pehape.

Zatem niech będzie smile.gif
  1. <?php
  2. Straszliwy błąd: Nie można raz jeszcze zadeklarować basicsearchsql() (poprzednio deklarowana w C:Program FilesWebServhttpdpsdownloadlist.php:404) w C:Program FilesWebServhttpdpsCustomView1list.php w linii 380
  3. ?>
Go to the top of the page
+Quote Post
Day Walker
post 21.03.2007, 23:24:09
Post #6





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 14.03.2007

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


Cytat(tansky @ 21.03.2007, 23:16:14 ) *
No, po raz wtóry deklarujesz basicsearchsql()... przecież pisze. Jeśli nie rozumiesz komunikatów z debuggera to raczej nie zaczynaj przygody z pehape.

Zatem niech będzie smile.gif
  1. <?php
  2. Straszliwy błąd: Nie można raz jeszcze zadeklarować basicsearchsql() (poprzednio deklarowana w C:Program FilesWebServhttpdpsdownloadlist.php:404) w C:Program FilesWebServhttpdpsCustomView1list.php w linii 380
  3. ?>


Więc jak to naprawić ? Pozmieniać nazwy Funkcji na inne ? Chyba pliki z Funkjami tez będe musiał skopiowac i zmienic nazwe...

w jednym pliku bedize:

  1. <?php 
  2. ?>
  3. <?php include ("ewconfig.php") ?>
  4. <?php include ("db.php") ?>
  5. <?php include ("CustomView1info.php") ?>
  6. <?php include ("advsecu.php") ?>
  7. <?php include ("phpmkrfn.php") ?>
  8. <?php include ("ewupload.php") ?>
  9. <?php
  10. if (!IsLoggedIn()) {
  11. header("Location: login.php");
  12. exit();
  13. }
  14. ?>


a w drugim:

  1. <?php 
  2. ?>
  3. <?php include ("1ewconfig.php") ?>
  4. <?php include ("1db.php") ?>
  5. <?php include ("1CustomView1info.php") ?>
  6. <?php include ("1advsecu.php") ?>
  7. <?php include ("1phpmkrfn.php") ?>
  8. <?php include ("1ewupload.php") ?>
  9. <?php
  10. if (!IsLoggedIn()) {
  11. header("Location: login.php");
  12. exit();
  13. }
  14. ?>


I z reszta tez questionmark.gif

np:

Kod
basicsearchsql

na
Kod
1basicsearchsql


Ten post edytował Day Walker 21.03.2007, 23:25:18
Go to the top of the page
+Quote Post
Kicok
post 22.03.2007, 08:23:26
Post #7





Grupa: Zarejestrowani
Postów: 1 033
Pomógł: 125
Dołączył: 17.09.2005
Skąd: Żywiec

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


Jeśli funkcję basicsearchsql() masz w pliku, który includujesz, to upewnij się, że includujesz go tylko raz. Ew. możesz pójść na łatwiznę i używać include_once" title="Zobacz w manualu PHP" target="_manual zamiast include" title="Zobacz w manualu PHP" target="_manual


--------------------
"Sumienie mam czyste, bo nieużywane."
Go to the top of the page
+Quote Post
Day Walker
post 23.03.2007, 15:05:39
Post #8





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 14.03.2007

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


include_once niedziała... require też sad.gif
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: 13.06.2025 - 09:38