Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

A friend of mine has a WordPress site using the Theisis theme. Recently he added a bit of problematic PHP code to the footer via the Theme (not into a PHP file). The PHP code is erroring out causing the site to WSOD (White Screen of Death). Because the footer is on every page, he can't get back in to remove the PHP code to fix the site. I'm not super familiar with WordPress (use mostly Drupal myself) so I'm not 100% sure how to help him. I'd guess the PHP snippet got stored in the database and needs to be manually removed from there. But I don't know the WordPress schema all that well. Can someone point me in the right direction? Where in the database would this code be store so I can remove it?

share|improve this question
    
Where exactly did he add this code? The footer's PHP code can be edited in the theme editor, are you sure it's not in footer.php? –  Matteo Riva Nov 18 '10 at 19:42
    
he said he added it through the site's interface. Again, I haven't used WordPress much, but he said there was a text box and a save button. That makes me think it's stored in the database. –  Chaulky Nov 18 '10 at 20:09
    
If you can still go into the admin, activate the default theme. This should at least show up your site, naturally not with the theme that was destroyed. –  hakre Nov 18 '10 at 20:38

1 Answer 1

up vote 3 down vote accepted

Use FTP to rename the Thesis theme folder and then WP will use the default theme and you will be able to get back into admin.

If he edited the theme file via the theme editor in WP admin, then replace the file he edited in the Thesis folder from a fresh copy and try and reactivate the theme.

If that doesn't work and the added code was saved to the Thesis theme options, use a plugin called Clean Options to clear out the old Thesis theme options and start over: http://wordpress.org/extend/plugins/clean-options/

share|improve this answer
    
Thanks! –  Chaulky Nov 18 '10 at 21:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.