@sumcovsherbak

Предупреждение о двух файлах index.php?

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/musop60/public_html/wp-content/themes/twentyfourteen/index.php on line 2
  • Вопрос задан
  • 187 просмотров
Решения вопроса 1
qonand
@qonand
Software Engineer
Где Вы тут увидели два файла index.php, в тексте сообщения четко сказано, что у Вас ошибка при использовании ob_start() в второй строке файла index.php
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@sumcovsherbak Автор вопроса
вот она вторая строка, помогите пожалуйста
<?php
ob_start("ob_gzhandler");
/**
* The main template file
*
* This is the most generic template file in a WordPress theme and one
* of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query,
* e.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/

get_header(); ?>

<?php
if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
// Include the featured content template.
get_template_part( 'featured-content' );
}
?>
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы