Title: Debug template error
Last modified: August 19, 2016

---

# Debug template error

 *  [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * (@thorhammer)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/debug-template-error/)
 * My custom single template returns this source:
 *     ```
       <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       <HTML><HEAD>
       <META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
       <BODY></BODY></HTML>
       ```
   
 * I have gone through every line of my templates for God knows how many times, 
   but I am unable to find anything wrong. Is it possible to suggest any place in
   my code (which follows the rules in the codex) where it all stops? Is it anything
   really wrong with the loop??

Viewing 1 replies (of 1 total)

 *  [lukich](https://wordpress.org/support/users/lukich/)
 * (@lukich)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/debug-template-error/#post-1408458)
 * From what you have described and shown – there’s no way to tell. Here’s a suggestion–
   put a few echo and var_dump statements in different parts of the loop to see 
   it it returns the info at all and if it returns the right info. Hope that helps,
 * Luka

Viewing 1 replies (of 1 total)

The topic ‘Debug template error’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [lukich](https://wordpress.org/support/users/lukich/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/debug-template-error/#post-1408458)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
