Title: All PHP Rendering As HTML Comments
Last modified: August 20, 2016

---

# All PHP Rendering As HTML Comments

 *  Resolved [Mike](https://wordpress.org/support/users/fsartistgmailcom/)
 * (@fsartistgmailcom)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/)
 * I copied a working theme (making an overhaul).. and made nominal changes. Now,
   when viewing the index, all php code shows up as html comments… for example
 * `<?php get_header(); ?>`
 * which is the first line of code on index.php, shows up as this when loading the
   website:
 * `<!--?php get_header(); ?-->`
 * Anyone have a clue what is causing this? All php blocks of <?php ?> get reformatted
   into this html comment format, causing the entire website to be blank.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828391)
 * Sounds like maybe you have a broken opening PHP tag. Do you have an URL for the
   site that I can see?
 *  [shirazdrum](https://wordpress.org/support/users/shirazdrum/)
 * (@shirazdrum)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828402)
 * Is php running on the server?
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828404)
 * > Is php running on the server?
 * Good question. I assumed it was because copying a _working_ theme and making 
   nominal changes just prior to the failure. Its worth checking though.
 *  [shirazdrum](https://wordpress.org/support/users/shirazdrum/)
 * (@shirazdrum)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828415)
 * Is there a link to this site? Does it happen only on the index or all pages?
 *  Thread Starter [Mike](https://wordpress.org/support/users/fsartistgmailcom/)
 * (@fsartistgmailcom)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828471)
 * It was only happening on index. I though the same thing (in regards to broken
   block), but it was happening from line 1. The file was definitely a php file 
   running in WP, and I checked the permissions (644).
 * I eventually determined that the file was corrupted. Made a new index.php and
   pasted in the same code, worked fine.
 * I’ve never seen a corrupted file do that, but good to know.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘All PHP Rendering As HTML Comments’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Mike](https://wordpress.org/support/users/fsartistgmailcom/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/all-php-rendering-as-html-comments/#post-2828471)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
