frontcover.jpg

"A Funny Thing Happened on the Way to Columbine" now available

In 2005, I got a lot of anger and frustration out of my system by writing the first draft of a novel. Six years, nine rewrites and polishes, dozens of "we like it but... uh... no" rejections, and one annoying hack of a literary agent later, that story is now available. Seeking revenge against a...

The PaBlog

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:

  1. Extract “custom-header.php” to your /wp-admin/ directory.
  2. 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.

This entry was posted in Uncategorized. Bookmark the permalink.

14 Responses to Fixing the “Back My Book” theme when WordPress 3.4 breaks it.

  1. Mandy says:

    Pab – THANK YOU! You just saved me!

  2. Antonio says:

    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

  3. Matt Milano says:

    Pab, thanks a million!

  4. Jason Ansley says:

    AWESOME! Thank you. I was sweating this as well! But thank you for sharing!
    Jason Ansley
    ansleyRDgroup
    http://www.ansleyRDgroup.com
    Building Generous Business

  5. Craig says:

    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

    • Pab says:

      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).

  6. Andreas says:

    THANK YOU

  7. Amanda says:

    Thanks, everything seems to be working fine again on my theme again.

  8. Jordan says:

    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?

  9. Ellen says:

    Thank you so much for this posting! I can finally log back into the dashboard.

  10. Mark says:

    Thank you for saving me from throwing my computer out of the window :)
    Much appreciated

    Mark

  11. Jacob says:

    Thank you! :D

  12. daltonlynne says:

    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.

  13. Matt Milano says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Back My Book Theme Author: Writer Website Themes © 2013

© 2010-2013 2,000 Monkeys With Typewriters, LLC. All Rights Reserved. No portion may be reproduced or redistributed except as specified by prior, written permission. -- Copyright notice by Blog Copyright