Помогите - ошибка на wordpress...

12 3
wpgagik
На сайте с 19.05.2010
Offline
81
8365

Все установил вроде нормально, сайт в целом отображается нормально, только вверху пишет следующее - Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-content/plugins/last-viewed-posts/last_viewed_posts.php on line 87

Что я сделал не так?

И еще - когда пробую войти в админку выдает:

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-login.php on line 302

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-login.php on line 314

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-includes/pluggable.php on line 665

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-includes/pluggable.php on line 666

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-includes/pluggable.php on line 667

Warning: Cannot modify header information - headers already sent by (output started at /home/ygarinf/public_html/wp-content/themes/cloudy/functions.php:1) in /home/ygarinf/public_html/wp-includes/pluggable.php on line 868

Wiz828
На сайте с 10.08.2010
Offline
58
#1

Вы редактируемый файл сохранили в кодировке UTF-8 (BOM). Сохраните без BOM

wpgagik
На сайте с 19.05.2010
Offline
81
#2
Wiz828:
Вы редактируемый файл сохранили в кодировке UTF-8 (BOM). Сохраните без BOM

а можно больше деталей? (что и как) буду очень вам признателен!:)

Wiz828
На сайте с 10.08.2010
Offline
58
#3
wpgagik:
а можно больше деталей? (что и как) буду очень вам признателен!:)

Файл last_viewed_posts.php откройте с помощью notepad++ и сохраните в кодировке UTF8 без BOM.

Путь у этому файлу написан у вас в первом сообщении:)

viКing
На сайте с 20.03.2008
Offline
124
#4

если я правильно понял, то нужно вот этот файл пересохранить в UTF-8 without BOM

/home/ygarinf/public_html/wp-content/themes/cloudy/functions.php

samimages
На сайте с 31.05.2009
Offline
427
#5

Писали ченить что выводится скриптом перед header();

Опыт как иммунитет — приобретается в муках! Аудит семантики от 15К [долго] - ЛС
BD
На сайте с 22.03.2010
Offline
5
#6

Проверьте начало functions.php на лишние символы вроде пробелов и переводов строки перед <?php

[Удален]
#7
viКing:
если я правильно понял, то нужно вот этот файл пересохранить в UTF-8 without BOM
/home/ygarinf/public_html/wp-content/themes/cloudy/functions.php

Абсолютно верно. И лучше это делать в текстовом редакторе notepad, как и говорили выше.

И на сервере его не забудьте заменить.

wpgagik
На сайте с 19.05.2010
Offline
81
#8

всем спасибо за помощь! помогло, но тут еще одно - когда пытаюсь зайти в админку выдает Fatal error: Call to undefined function is_multisite() in /home/ygarinf/public_html/wp-content/languages/ru_RU.php on line 10 - что делать:)

П.С. Извиняйте что я такой, просто у меня как-то никогда таких проблем с вп небыло :)

[Удален]
#9

wp-config.php в UTF был сохранен?

wpgagik
На сайте с 19.05.2010
Offline
81
#10
nomads:
wp-config.php в UTF был сохранен?

Да, конфиг сохранен правильно...

12 3

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий