Stuff Pab thinks you might find interesting
The Susan G. Komen Foundation: Why It Sucks.
Note: I started writing this piece almost four years ago, in March of 2008. I... read more
Dealing with the two most annoying bugs in iOS 5
UPDATE: OCTOBER 15, 2011: Please read through the comments on this entry. Some... read more
How Not to Write a Comic Book: “Mr. Terrific #1″ (DC New 52)
Until I actually picked up and read "Mr. Terrific #1" I could honestly have... read more
How to Save Music Radio
The death of the former top-rated music station in the market has pushed some... read more
“Go To Hell” now available in paperback, hardback, Kindle, and Nook
My Young Adult novel Go To Hell is now available is paperback, hardback , and... read more
“Star Trek:” Why It Sucks (Part One)
In the interest of full disclosure, I really wanted to hate this movie. I... read more
Giant Nerd Battle Royale: The Starship Enterprise Vs. Space Battleship Yamato!
Somewhere, out in deep space, the Starship Enterprise, NCC-1701-D, is... read more
The Catcher In The Rye: Why It Sucks
After re-reading portions of Rumpled Trenchcoats and Rubber Bullets while... read more
Fixing the “Back My Book” theme when WordPress 3.4 breaks it.
I love WordPress. It makes life so much easier. And they update it regularly for security patches and to fix bugs.
Unfortunately, from time to time they break a lot of shit, too.
I “upgraded” my blog to WordPress 3.4 a while back and started getting this handy little message whenever I tried to get to my dashboard:
Cannot redeclare class Custom_Image_Header in /wp-admin/custom-header.php on line 16
Nifty, huh? And because it broke my dashboard I couldn’t do anything about it.
Well, after much hacking, smacking, wailing and gnashing of teeth, etc., I got it working. Especially since one of the fixes in 3.4.1 was NOT a fix to unbreak what they broke.
And, as I tend to do in these circumstances, I like to share.
This file includes patched versions of the two .php files that break the “Back my Book” theme. Download it, and extract the two files as follows:
-
Extract “custom-header.php” to your /wp-admin/ directory.
-
Extract “theme.php” to your /wp-includes/ directory.
Then go to your blog and access your dashboard. Voila.
Hopefully the authors will eventually fix the theme themselves, but in the mean time kludge away.
10 Responses to Fixing the “Back My Book” theme when WordPress 3.4 breaks it.
Pab – THANK YOU! You just saved me!
I did a fresh clean install of WP , then added the theme, it crashed, follow your instructions and now getting another error:
Fatal error: Class ‘Custom_Image_Header’ not found in /home/modelos/public_html/portal/wp-includes/theme.php on line 1360
Pab, thanks a million!
AWESOME! Thank you. I was sweating this as well! But thank you for sharing!
Jason Ansley
ansleyRDgroup
www.ansleyRDgroup.com
Building Generous Business
Thanks for this patch. I was really hoping it would just work. I tried this update but my theme doesn’t have a wp-include folder. I tried adding one but I’m still getting error messages. Any idea on what I may be doing wrong.
www.joanfriedlander.com/wp-admin/
Thanks
The wp-includes folder isn’t under your theme, it’s under the wordpress root folder (or, in your site’s case, your main directory).
THANK YOU
Thanks, everything seems to be working fine again on my theme again.
WHEW! Thank you for this. Even though I had to go and hunt down an .zipx program (not a lot, I know, but I was already pretty aggravated with the entire Internet at that point). Works perfectly now.
If we do change to another theme, do we need to change these files back to the originals?
Thank you so much for this posting! I can finally log back into the dashboard.