Wordpress a localhost

Witam

Postanowiłem zrobić sobie sam (poprawić stronkę - wcześniej nie ja robiłem)

tak więc aby nie bawić się od razu na serwerach postanowiłem , popróbować w domu

Już na początku mam problemy…

Zainstalowałem webserv , Ok

User root , Hasło brak , nazwa bazy danych - utworzona prze ze mnie jest

Uruchomiłem instalkę

już przy niej na górze linijka

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-admin\install.php on line 36

instalacja na szczęście “poszła” Blog normalnie się wyświetla ale… przy logowaniu do admina na górze już jest linijka:

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 255


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 267

zalogować się da ale potem już tylko :

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 255


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 267


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\pluggable.php on line 649


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\pluggable.php on line 650


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\pluggable.php on line 651


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\pluggable.php on line 850

z ciekawości zobaczyłem te 2 pierwsze linijki i utwierdziłem się w przekonaniu że dużoooo wieeem *(laik praktycznie) :confused: Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 255

header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-login.php on line 267

setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);

jak coś to mogę wszystkie linijki przytoczyć . Pomóżcie , proszę

ob_start(); na samą góre pliku zaraz po <?

<?

ob_start();

Mógłbyś chociaż wytłumaczyć dlaczego :wink:

Błąd jest z tego powodu że nic nie można wysłać do przeglądarki przed użyciem header.

Pokazany kod powoduje że strona jest wpierw buforowana czyli przetwarzana cała na serwerze a potem wysyłana do przeglądarki.

ok dzięki za zainteresowanie , tylko proszę powiedzcie mi którego pliku ? ;]

a już wiem !!

Dodane 23.07.2009 (Cz) 10:41

aha jednka teraz to ob nie pomaga dalej (tzn przy logowaniu nic nie wyswietla) , ale teraz przy panelu admina

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\functions.php on line 699


Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\WebServ\httpd\wp-config.php:1) in C:\Program Files\WebServ\httpd\wp-includes\functions.php on line 700

a te linijki to opdowiednio:

setcookie( ‘wp-settings-’ . $user-ID, $settings, time() + 31536000, SITECOOKIEPATH );

setcookie( ‘wp-settings-time-’ . $user-ID, time(), time() + 31536000, SITECOOKIEPATH );

Pokaż gdzie wkleiłeś ten kod, ten kod powinien być na samym początku pliku. Najlepiej dać to do pliku index, wtedy cały WP jest buforowany (o ile dobrze pamiętam jego konstrukcje).