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.

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
http://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.
http://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.
Thank you for saving me from throwing my computer out of the window
Much appreciated
Mark
Thank you!
Is there not just an update to Back My Book? I just ran into this issue and am not the technical type when it comes to themes … was hoping I could just apply an overall update instead.
Pab, any idea what broke Back My Book in WordPress 3.5? Your patch worked wonderfully with 3.4 but, stupidly, I updated to 3.5 and it’s back to the same error.