Title: How to run this code
Last modified: August 21, 2016

---

# How to run this code

 *  [doctorvay](https://wordpress.org/support/users/doctorvay/)
 * (@doctorvay)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/how-to-run-this-code/)
 * As per the instructions on page.
 *  Deactivate Theme
 * Rename the active theme folder (in wp-content/themes) by using FTP. Once renamed,
   WordPress will revert to using the WordPress Twenty Twelve theme. When finally
   logged in, change to a different theme.
    To find out what caused problem in the
   theme, upload and run this code when the theme is active:
 * <? ini_set(‘display_errors’,’1′); ini_set(‘display_startup_errors’,’1′); error_reporting(
   E_ALL);include(‘index.php’); ?>
 * Where to a put this code? in the functions.php of the broken theme or where?

The topic ‘How to run this code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [doctorvay](https://wordpress.org/support/users/doctorvay/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/how-to-run-this-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
