Thesis 1.7 Custom File Editor Errors Out In WordPress 3.0

By | June 19, 2010

WordPress 3.0, the much awaited wordpress release so far, finally arrived and I was excited to try to it out on my blog just like so many bloggers out there. I did and I was exploring the new features of this setup when I ran into the problem. I have Thesis theme version 1.7 installed on my blog, as you may already know and everything was looking compatible with WordPress 3 till I clicked on Custom File Editor option of Thesis.

BOOM!

I was confronted with the below error:

Fatal error: Call to undefined function use_codepress() in /home/content/46/5420546/html/wp-content/themes/thesis_17/lib/admin/admin.php ย on line 42

I had no idea what codepress is and why it is used in Thesis. So I googled to check out whether anybody else faced the similar problem and surely I stumbled upon this post describing the problem. After more search, I found out that CodePress is javascript based syntax highlighting editor used behind the scenes, in what we, Thesis users, call Custom File Editor. Since, codepress has been deprecated in WordPress 3.0 due to browser incompatibilities, Thesis theme ran into the current problem.

What’s The Solution?

Well, it’s pretty simple! Follow the below steps and you should be good.

1. Connect to your domain host using FTP client like FileZilla (my favorite!)

2. Go to the location mentioned in the error message i.e. wp-content/themes/thesis_17/lib/admin/

3. Download admin.php to your local machine and open it using any editor of your choice

4. Just comment out line number 42 (mentioned in the error message) by adding two forward slashes before it:

//if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');

5. Upload the updated admin.php to the wp-content/themes/thesis_17/lib/admin/ and you are done!

You should be able to use Custom File Editor now without any hassle. The only thing missing would be syntax highlighting, but until Thesis developers come out with some concrete solution, we will have to live with that. I am sure Thesis team is already looking for alternative solutions. Keep your fingers crossed and keep geeking!

P. S. Don’t forget to keep backup copy of admin.php, just in case anything goes wrong.

Share

45 thoughts on “Thesis 1.7 Custom File Editor Errors Out In WordPress 3.0

  1. Pingback: Tweets that mention Thesis Custom File Editor Issue With Wordpress 3.0 -- Topsy.com

  2. Kay

    yea, but if you would just use FTP all the time, you wouldn’t have this problem…

    Reply
    1. Harsh Athalye Post author

      That’s true, but using custom file editor is much more simple for me. I only use FTP route when absolutely necessary. Thanks for the comment! :)

      Reply
  3. Hesham

    Thank you so much for posting about the error, I haven’t upgrade yet because I was expecting problems :)

    I have got an email from my friend Pascal of fourblogger.com telling about this issue and redirecting me to your post!

    Reply
    1. Harsh Athalye Post author

      Hi Hisham,

      It’s always a make or break situation with new releases. I wasn’t expecting Thesis to break though, but unfortunately it did. Hence, I shared my experience. Pascal has been very kind to have spread the word about my post. Thanks for commenting and let me know if you find any other problems with WordPress upgrade.

      Reply
      1. Hesham

        I have just sent my newsletter now, I have included your post!

        Sure I will let you know if there is any other issues!

        Reply
  4. Bill

    Had the same prob and fixed it with //. Picked it up on diy forum yesterday.Were that the only problem – but it isn’t, by far. Check out the wordpress forum – especially with regard to images. In my particular case my image widgets are dropping like flies. Every time I update one – boom – it’s worthless, because the image won’t load. Now, if someone has a solution to this issue, that’d be great.

    Reply
    1. Harsh Athalye Post author

      Hi Bill,
      It might be the problem due to your plugins. Try deactivating all the plugins and then check whether problem still appears. If not, then reactivate plugin one at a time to find out which plugin is causing the issue. Hope it might help.

      Reply
  5. Thomas Griffin

    Thanks for the fix..I was wondering about how to fix this issue. I knew what the problem was…just didn’t know how to get around to fixing it without disabling syntax highlighting. But I suppose I can live without that for now. ๐Ÿ˜›

    Reply
    1. Harsh Athalye Post author

      True, till the time we get any fix from Thesis developers, we will have to live with syntax highlighting. Thanks for comment!

      Reply
  6. Felix | Blogging Access

    I also got a problem on this version even though I didn’t use thesis theme. I think everyone got the problem about the wp 3.0 version.

    When I encountered the problem, I didn’t know what to do then I decided to contact hostgator live support and asked them to undo my previous wordpress version. I am glad that they did it successfully.

    Now, I am still using the previous version and waiting for some more errors of wp to be totally fixed that would be compatible to all wordpress user not just for those wp users who also use thesis theme.

    Thanks for sharing this information. I got from my friend PASCAL of fourblogger.

    – Felix Albutra

    Reply
    1. Harsh Athalye Post author

      Felix,

      I am seeing lot of issues reported in WP forums and I hope WP is on top of the issues. Till that time, all we can do is wait and explore to see if there are any parts of the WP setup that are breaking, especially plugins. Thanks for commenting!

      Reply
  7. Sherryl Perry

    Thanks for the tip. I am holding off for a while on the wp 3.0 upgrade but this tip led me to your blog. Iโ€™m following you on Twitter now and am looking forward to learning more from you.

    Reply
    1. Harsh Athalye Post author

      You are welcome, Sherry. I am glad that you liked the blog and you are following me. In fact, I checked your blog and it looks to be quite nice. I hope we both can learn something from each other. :)

      Reply
  8. Pingback: Thesis Custom File Editor Issue With Wordpress 3.0 : How Do You Do That? : Your Online How To Source « How Do You Do That?

  9. KS Chen

    I faced the same problem too. I just delete the codepress from my admin.php. It works! But i think i might lost some interesting good features of THesis at the same time. I hope that Thesis Team can really solve this problem as soon as possible. Thanks for your sharing!

    Reply
    1. Harsh Athalye Post author

      Nothing to worry. Only thing missing would be syntax highlighting, but that’s not a big deal till next Thesis update. I am glad you liked the post. Thanks for comment!

      Reply
  10. Pingback: Monday Blogging Amoeba – 21/06/10

    1. Harsh Athalye Post author

      Hi Heidi,

      I haven’t faced this issue with my upgrade. What I can suggest is you de-activate all your plugins and try to check if that helps because most of the problems with WordPress 3.0 are with incompatible plugins. If that works, enable plugins one by one to find out the culprit.

      If that doesn’t work, contact your host support and switch back to older version of wordpress. In the meantime, report this issue in the Thesis forums so that it can get proper attention.

      Reply
  11. Dennis

    I’m having the same problem as Heidi – blank white screen. I even went in & fixed line 42 of admin.php, but still getting that blank white screen. Dennis NOT happy. Is there any help?

    Thanks

    Reply
    1. Harsh Athalye Post author

      Hi Dennis,

      I will suggest you the same as Heidi. Disable all plugins to check if any plugin is causing problem. Also, apart from WP upgrade, have to added/removed any files? The best way to get solution is to post this issue in Thesis as well as WP forums where somebody might have already faced and resolved the issue. :) Let me know how it goes.

      Reply
  12. Harsh Athalye Post author

    You are welcome, my friend! I know many Thesis users are affected due to this problem, hence I decided to share this. :)

    Reply
  13. Laura

    My custom file is also a blank white page/ does not load. I already went through all my plugins and ended up deleting all the tmp files and manually installing WP3. Yesterday my whole blog came up as a blank white page so just having the custom file for Thesis not load is a massive improvement. I am going to make any changes to the Thesis custom file through ftp and just leave the code alone until someone comes up with a solid sounding solution. I don’t want to put more time into fixing WP this week.

    Reply
    1. Harsh Athalye Post author

      That is a wise decision, Laura. I suggest that you wait till Thesis developers comes out with update which makes Thesis more compatible with WP 3.0

      Reply
  14. Alana Burton

    Thanks for the post! I was so glad to find a quick and easy solution on the first result I found when Googling this issue just now. I had thought I’d temporarily bunged something on a custom file but am glad it should be something the mighty Thesis bods are probably already on :-)

    Reply
  15. Sumon

    Hi,
    This is great post, but I can’t do this, I was trying this but I was failed. Please, give me solution.

    Reply
  16. Jane

    Thanks! This really helped! Didn’t click it was a problem with WordPress 3.0 untill I read this! :)

    Reply

Leave a Reply

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