Jump to content
  • 0

Ошибка WordPress 3.8


Omega24v
 Share

Question

Здравствуйте. Помогите найти ошибку в коде. В PHP не разбираюсь  :(

 

Warning: Cannot modify header information - headers already sent by (output started at S:\home\localhost\www\localblog\index.php:2) in S:\home\localhost\www\localblog\wp-includes\pluggable.php on line 895

 

index.php

<title>http://localhost/localblog</title><?php/** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress *//** * Tells WordPress to load the WordPress theme and output it. * * @var bool */define('WP_USE_THEMES', true);/** Loads the WordPress Environment and Template */require( dirname( __FILE__ ) . '/wp-blog-header.php' );?>

pluggable.php 

	if ( ! $location )		return false;	$location = wp_sanitize_redirect($location);	if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )		status_header($status); // This causes problems on IIS and some FastCGI setups	/*895 строчка*/header("Location: $location", true, $status);	return true;
Edited by Omega24v
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Обычно это значит, что в файлах активной темы или плагинов есть лишние пробелы, переносы строк или еще какая-нибудь ерунда за пределами <?php ?> тегов.

Благодарю. Будем устранять ...

Edited by Omega24v
Link to comment
Share on other sites

  • 0

Первым делом проверь functions.php . В идеале там должен быть открывающий тег в самой первой строке, а закрывающих быть не должно вообще, если не считать костылей вроде вывода HTML контента внутри функций. Но вне функций, т.е. в глобале, никаких открывашек-закрывашек быть не должно (кроме самого первого открывающего тега).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy