Thesis Theme 1.7 Custom File Editor Error in WordPress 3.0

by Bob Waltman · 0 comments

info There is a confirmed problem with Thesis 1.7 and the new WordPress 3.0 update.
If you use the Thesis theme and attempt to use the custom file editor you will get the following 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

Codepress is a Javascript based syntax highlighter that the Thesis custom file editor uses to highlight syntax used in the editor. In WordPress 3.0 it has been deprecated and no longer used due to browser incompatibilities.

The solution is pretty simple:

Just follow these steps and you should be good to go.

1. Use FTP to connect to your site.

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

3. Download admin.php to your desktop 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 at the beginning of the line:

//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!

Remember that this is just one of the services that we offer so if you need some help just fill out a support ticket at our help desk.

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: