Dovator 2 Posted October 28, 2013 Report Share Posted October 28, 2013 Друзья, всем привет. Срочно нужна помощь знающего человека. Есть 2 сайта: http://pupsomir.ru/ http://mamochkavdekrete.ru/ при проверке валидатором validator.w3.org выдает фатальную ошибку: A fatal error occurred when attempting to decode response body from http://pupsomir.ru/. Either we do not support the content encoding specified ("none"), or an error occurred while decoding it. The error was: Don't know how to decode Content-Encoding 'none' и дальнейшую проверку не производит. Может кто-то сталкивался с такой проблемой и сумел ее решить? Облазил уже кучу форумов, все не то, хоть сайты переустанавливай... блин. Заранее очень благодарен. Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 На первом сайте у вас нету тега <head> поставьте его примерно так: <html xmlns="http://www.w3.org/1999/xhtml"><head> Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Поставил, не помогло. То же самое. Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Куда ж вы его поставили-то? после этого: <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="ru-RU"> <!--<![endif]--> поставте <head> Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Также у вас ругается на кодировку: 1) Замените там же в шапке: <meta charset="UTF-8" /> на <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> 2) Пересохраните header.php в кодировке utf-8 P.S. Для http://mamochkavdekrete.ru выполнить пункты 1 и 2 (обратите внимание что "...charset=utf-8"" должен быть в нижнем регистре) Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Все сделал как Вы написали. Не помогло. Может я что - то не так делаю? Теги поставил, шапку сохранил в кодировке, закачал на сервер - безрезультатно. Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Вместо того, что у вас там счас: <html class="no-js" lang="ru-RU"> <!--<![endif]--><html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width" /><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> должно быть: <html class="no-js" lang="ru-RU"> <!--<![endif]--><head><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /><meta name="viewport" content="width=device-width" /> Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Поменял, теперь кусок кода header.php выглядит следующим образом: <?php /** * @package WordPress * @subpackage Snow Summit * @since Snow Summit 1.0 */ ?><!DOCTYPE html> <!--[if lt IE 7 ]> <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 7 ]> <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> <html class="no-js" lang="ru-RU"> <!--<![endif]--> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <title> <?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); // Conditional page description $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Conditional page number if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'snowsummit' ), max( $paged, $page ) ); ?> </title> Валидатор пишет то же самое... Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Может это из - за какого - нибудь плагина? попробовал сменить несколько тем, Валидатор пишет то же самое.... Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Идем дальше. Так правильно: <?php/*** @package WordPress* @subpackage Snow Summit* @since Snow Summit 1.0*/?><!DOCTYPE html><!--[if lt IE 7 ]> <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]--><!--[if IE 7 ]> <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]--><!--[if IE 8 ]> <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]--><!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--><head><meta http-equiv='Content-Type' content="application/xhtml+xml; charset=utf-8" /><meta name="viewport" content="width=device-width" /> И в футере удалите: <div style="display:none"><b></b></div> Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Не могу найти в футере указанную строчку, ниже код футера: <?php /** * @package WordPress * @subpackage Snow Summit * @since Snow Summit 1.0 */ ?> </div><!-- #contentblock --> <div id="access" role="navigation"> <?php /* Our foter navigation menu. The menu assiged to the footer position is the one used. Blank if none assigned */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'fallback_cb' => false, 'theme_location' => 'footer' ) ); ?> </div><!-- #access --> <?php // leaderboard footer widget area if ( is_active_sidebar( 'leaderboard-widget-area-footer' ) ) : ?> <div class="clear"></div><div id="waleaderfooter"> <?php dynamic_sidebar( 'leaderboard-widget-area-footer' ); ?> </div><!-- #waleader --> <?php endif; ?> <div id="footer" role="contentinfo"> <?php get_sidebar( 'footer' ); ?> <div id="colophon"> <?php if ( (is_home())&&!(is_paged()) ){ ?><?php printf( __( '%1$s от %2$s' ), 'Snow Summit', '<a href="http://weddingthemes.marriagescene.com/wedding-themes/snow-summit/">weddingthemes.marriagescene</a>' ); ?> <?php } ?><span class="generator-link"><?php if ($user_ID) : ?><?php else : ?> <?php if (is_home()) { ?><a href="http://italysummer.ru/">italysummer.ru</a> <?php } elseif (is_single()) {?><a href="http://italysummer.ru/">italysummer.ru</a> <?php } elseif (is_category()) {?><a href="http://mamochkavdekrete.ru/">mamochkavdekrete.ru</a> <?php } elseif (is_archive()) {?><a href="http://mamochkavdekrete.ru/">mamochkavdekrete.ru</a> <?php } elseif (is_page()) {?><a href="http://mamochkavdekrete.ru/">mamochkavdekrete.ru</a> <?php } else {?><?php } ?><?php endif; ?></span> </div><!-- #colophon --> </div><!-- #footer --> </div><!-- #container --> </div><!-- #wrapper --> </div><!-- #outerwrap --> <?php wp_footer(); ?> </body> </html> Возможно эту строку генерирует что - либо другое? И еще вопрос: в шапке оставлять строчку: <html class="no-js" lang="ru-RU"> Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Может это из - за какого - нибудь плагина? попробовал сменить несколько тем, Валидатор пишет то же самое.... Через фтп зайдите на сайт: переименуйте на время папку plugins на plugins_ в папке wp-content (что отключит все плагины) и проверьте на валидатор Quote Link to post Share on other sites
Dovator 2 Posted October 28, 2013 Author Report Share Posted October 28, 2013 Уже пробовал, и сейчас еще раз попробовал - все так же. Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Думаю, тут требуется хирургическое вмешательство. Свяжитесь со мной в реквизитах ЛС. Дистанционно тут вроде уже ничего и не посоветуешь Dovator 1 Quote Link to post Share on other sites
Модератор files 2810 Posted October 28, 2013 Модератор Report Share Posted October 28, 2013 Проблему решили методом исключения всех возможных ошибок по очереди. Проблема была следующая (кому-то впоследствии пригодится) : На сайтах на Вордпрессе в ответах сервера содержалась строка: Content-Encoding: none из-за нее сайт не проходил валидацию и другие сюрпризы. Проблема была не в родном вордпрессе, а в левом, на который ТС перешел из-за конфликта ява-скриптов в предпоследнем ВП 3.6 Ну а в этом не родном ВП какой-то Кулибин прописал $gzip = strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip');$deflate = strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate');$encoding = $gzip ? 'gzip' : ($deflate ? 'deflate' : 'none'); Мораль: не качайте чужое! При возникновении проблем с Вордпрессом - всегда обращайтесь http://talk.pr-cy.ru/topic/2053-услуги-по-cms-wordpress/ Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.