Thesis Custom File Editor Fatal Error – A Fix

by on January 6, 2011

in consumer

Fatal Error … undefined function

I just recently updgraded to WordPress 3.4 while still on Thesis 1.6.  Everything seems smooth, more or less, while I tool around on the site but I encountered an error when I tried to use the Thesis Custom File Editor.

I received the following error in my WordPress admin window:

Fatal error: Call to undefined function use_codepress() in /…/public_html/wp-content/themes/thesis_16/lib/admin/admin.php on line 57

A quick look around the web let me know that I could comment out the following line:

if (use_codepress()) add_action(‘admin_print_footer_scripts’, ‘codepress_footer_js’);

and things would work wonders once again.  Sure enough, I put a ‘//’ (without the tickmarks) in front of the offending line and the Custom File Editor worked once again.

This would seem to be a conflict between WordPress 3.+ and Thesis 1.6.

I discovered, that for me, I could get to this file in an external FTP/editor… in my case, FileZilla.  It was pretty handy and I was back to trying to destroy my theme in no time flat.

Word of caution:  Before trying anything, always back up your blog.  In the last 24 hours I’ve made a huge number of changes behind the scenes to the site, but before doing anything, I’ve backed up my database (this retains posts and comments, but no images) with phpMyAdmin that was provided via my hosting company, the most excellent HostGator, and I further used the BackUpWordPress plugin to back up my entire collective of posts, comments, images, uploads, etc…

What you use is totally up to you.  I’d suggest plenty of research  before making any move and not making any snap decisions before trying to break your website.  Broken websites suck so much more than update worries.

Mucho kudos to Rosalind Gardner of RosalindGardner.com for pointing this out over on AffiliateBlogger Pro.  Hooyah!!

Thesis Theme for WordPress:  Options Galore and a Helpful Support Community

See what I have to say about HostGator.  Clue… I’m lovin’ the hosting services!

{ 3 comments… read them below or add one }

Bruce Simmons December 22, 2011 at 4:02 pm

Amanda, presuming you’ve tried the suggestion in this article, have you considered upgrading to Thesis 1.8.2?

Amanda December 22, 2011 at 3:56 pm

Mine isn’t working. I have thesis 1.6 and just updated to WP 3.0 and now it won’t work. I’ve commented out the line 57 and nothing is happening. Any suggestions?

Jeff February 8, 2011 at 3:12 pm

I ALWAY forget how to fix this and there was your post: one select, right-click, search google away. Muchos gracias amigo. Now in return, I want to point out to tweak your like-button code as the name is in white and invisible against the background. I also forget how to fix this but you sound like a more competent coder than me anyway!

Leave a Comment

Previous post:

Next post: