Title: Cannot redeclare get_query_template()
Last modified: September 1, 2016

---

# Cannot redeclare get_query_template()

 *  [kaorisawada](https://wordpress.org/support/users/kaorisawada/)
 * (@kaorisawada)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-get_query_template/)
 * I have never changed the source code but the following error happened suddenly.
 * PHP Fatal error: Cannot redeclare get_query_template() (previously declared in
   xxx\wp-includes\template.php:23) in xxx\wp-includes\template.php on line 23
 * get_query_template() function is declared in template.php, line 23 previously.
   But the current position to declare its function is the same file and the same
   line number.
 * Note that this was resolved by restarting php-cgi.exe without changing the source
   code.
 * In which situation does this happen?

The topic ‘Cannot redeclare get_query_template()’ is closed to new replies.

## Tags

 * [redeclare](https://wordpress.org/support/topic-tag/redeclare/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kaorisawada](https://wordpress.org/support/users/kaorisawada/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-get_query_template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
