How to fix Thesis Theme Custom File Editor use_codepress() fatal error?


If you are using Thesis Theme 1.7 and recently upgraded to WordPress 3.0, you must be facing an error caused by use_codepress() function while you are trying to working in Custom File Editor.

Can you please explain what is happening?

When you are using Thesis Theme’s built-in code editor, Custom File Editor, it uses a WordPress function called use_codepress(). Actually this function highlights the code syntax in the browser. But the use_codepress() function is now deprecated in WordPress 3.0. So the error appears.

Fatal error: Call to undefined function: use_codepress() in /[YOUR DIRECTORY NAME]/wp-content/themes/thesis_17/lib/admin/admin.php on line 42

OK… Tell me how I can fix Thesis Theme use_codepress() problem

  • Start your FTP program and log in to your hosting account. Personally I use FileZilla, it’s free to download and simple to use.
  • Browse to /wp-content/themes/thesis_17/lib/admin/ folder.
  • Download admin.php to your desktop.
  • Open the file in a text editor like Notepad.
  • Go to line 42 where the following code appears
    1
    
    <?php if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js'); ?>
  • Comment out that line by placing two forward slashes just before it.
    1
    
    <?php // if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js'); ?>
  • Save the file, Upload and replace admin.php

Hope this will fix all the use_codepress errors, but you will not be able to use the syntax highlighter in your Custom File Editor anymore. Please keep a backup of admin.php before editing in case something goes wrong.

By | On Sunday, July 25th, 2010 | Under How To's, Premium Themes | No Comments ยป


DO YOU NEED OUR HELP?

Contact our experts, most of the time we assist our readers free of charge.

Those who found this page were searching for:

  • error: call to undefined function _ deprecated file()
  • Call to undefined function use_codepress
  • wordpress error call to undefined function 3.2
  • thesis theme codepress
  • fatal error call to undefined function use_codepress() in on line 57
  • thesis code editor
  • code editor for thesis
  • thesis theme Fatal error: Call to undefined function use_codepress() in
  • call thesis function from
  • function admin_print_footer_scripts

Previous post:

Next post: