A quick hurray overhere as we are starting the weekend: 8 months ago I wrote the post Replace/Remove Default Header Image Twenty Eleven Theme and we have just broke through the 25,000 post views barrier, quite a big feat for WP TIPS!
image by D Sharon Pruitt





7 Responses to 25K views on one single post!!!
WOW!!!!!! Congratulations !!!!! I m so proud of you!!!!!!!!!!
Kusjesssssss!!!!!
M
Hello,
I’d like to be happy for you, but it’s hard to be, as the modification you suggested breaks my site.
I tried carefully following all of the instructions, and everything works just fine when I am simply viewing pages. However, I get the following error whenever I try to edit a post: “Warning: Cannot modify header information – headers already sent by (output started at /home/tyds/public_html/wp-content/themes/tyds/functions.php:23) in /home/tyds/public_html/wp-includes/pluggable.php on line 866″
Given that the hack attempts to modify header information, this error doesn’t seem that surprising. Any thoughts on how to fix it?
ok Forest, I am going to really do my best to be nice to you as you obviously spoiled my hurray post with your comment.
my bad, I closed the comments long time ago…
You do realize that your comment here has no relevance whatsoever to the post?! Was it really so difficult to put it under the appropriate post? It probably was and I continue assuming that you actually saw that there is nobody of the 66 commenters that a. cannot get it to work and b. experience the same error as you do.So the big question for you is what does it say on line 23 of your functions.php file?
Apart from that you can try to let me know what exactly is not working as I just visited your site and there seems to be no problem whatsoever.
Okay, I’m embarrassed. I apologize for my initial post. Maybe some day I’ll have a single post with 25,000 views and I hope I’ll be as helpful as you if someone posts a negative note on it. Thank you for rising above my snarkiness.
I was frustrated because I had just broken my site (at least the ability to edit posts), and other people rely on the site. I’m dying to launch the site, and completely overwhelmed by everything I have on my plate. A bad day, I guess.
I’m a WP newbie, but I couldn’t figure out how to post on the other page. I suspect that comments are turned off, as I couldn’t find a “Leave a Reply” box at the bottom and couldn’t find any reply buttons in the text.
The error happens whenever I try try to do an administrative action, such as editing or making a post. It’s always the same error: ”
Warning: Cannot modify header information – headers already sent by (output started at /home/tyds/public_html/wp-content/themes/tyds/functions.php:23) in /home/tyds/public_html/wp-includes/pluggable.php on line 866″
Line 23 is a blank line at the end of the file. The complete text of functions.php is
array (
‘url’ => “$child2011_dir/images/banner1.jpg”,
‘thumbnail_url’ => “$child2011_dir/images/image1-thumb.jpg”, // 230 x 66px
‘description’ => __( ‘Image Description’, ‘banner1′ )
)
));
}
add_action( ‘after_setup_theme’, ‘wptips_new_default_header_images’ );
?>
[EOF]
I’m going to feel right stupid if this was an obvious mistake I made following your directions.
OK my best guess is that either there are spaces in the code or the closing tag is not necessary.
Anyways, I have made a gist for you, try it and let me know.
And apologies for my remark on commenting here instead of in the original post, I indeed closed the comments there a while ago…
Ugh. That worked perfectly.
Thanks again for your generous help. My apologies for spoiling your post. :embarrassed:
Yeah, that is sth that you’ll learn over time. With copying and pasting PHP, you’ll always have to make sure that the spaces are actually tabs and not real spaces…
Actually pasting your code in Gists and then pasting a link to a Gist instead of in comments works the best for this purpose.
Anyways, glad that you got it working, so now we can focus on the hurray part again of 25,400 views at the time of writing this response :)