1

I'm getting an error on only certain pages within my wordpress site. The error is always the same.

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/d/i/sdillinger/html/index.php:7) in /home/content/s/d/i/sdillinger/html/wp-includes/pluggable.php on line 896

I researched the error and seems the most common answer is related to unnecessary whitespace within the .php file. I'm not convinced that is the answer as it doesn't look like there is inadvertent whitespace within the index.php code. Below is an excerpt from that page on the site.

**Start index.php code**
1<?php
2
3require_once(dirname(__FILE__) . '/temfile.php');
4
5?>
6
7<?php
8
9/**
10
11 * Front to the WordPress application. This file doesn't do anything, but 12loads
13
14 * wp-blog-header.php which does and tells WordPress to load the theme.
15
16 *
17
18 * @package WordPress
19
20 */
rnevius
  • 26,578
  • 10
  • 58
  • 86
  • read the error again, it tells you the offending line –  Sep 30 '15 at 21:22
  • @Dagon , that's actually incorrect. The warning mentions where the output was started, not where the issue occurred. *pluggable.php* is a core WordPress file, and won't be where the OP needs to look. To the OP: the issue may be in *functions.php*. Unless you're sending headers in your index page, that's unlikely to be the issue. – rnevius Sep 30 '15 at 21:33

0 Answers0