Title: RFE: Database error in theme?
Last modified: August 18, 2016

---

# RFE: Database error in theme?

 *  [sidesh0w](https://wordpress.org/support/users/sidesh0w/)
 * (@sidesh0w)
 * [21 years ago](https://wordpress.org/support/topic/rfe-database-error-in-theme/)
 * I see that 1.5 has a prettified database connection message in `includes/wp-db.
   php`; is there any way to migrate that into the themes schema? It’d be great 
   to style that without touching the core WP code.
 * Just a thought–thanks,
 * – Ethan

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

 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [21 years ago](https://wordpress.org/support/topic/rfe-database-error-in-theme/#post-212338)
 * The currently activated theme is defined in the database, so what you suggests
   creates a chicken-and-egg problem:
    in order to style the error, a successful
   database connection must be made but the error is occuring specifically because
   a database connection could not be made!
 *  Thread Starter [sidesh0w](https://wordpress.org/support/users/sidesh0w/)
 * (@sidesh0w)
 * [21 years ago](https://wordpress.org/support/topic/rfe-database-error-in-theme/#post-212689)
 * Ah, right. Pardon me while I smack myself in the forehead.
 * Still, it’d be pretty cool to have a customizable error template outside of the
   core.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years ago](https://wordpress.org/support/topic/rfe-database-error-in-theme/#post-212690)
 * Instead of the message you could perform an include to a “themed” file, as described
   here:
 * [http://wordpress.org/support/topic/33509](http://wordpress.org/support/topic/33509)
 * However, any WP-related elements would (naturally) have to be hardcoded into 
   your included file. So you wouldn’t really be able to hook into the theming functionality,
   but you could code up a page that duplicated a theme’s layout.

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

The topic ‘RFE: Database error in theme?’ is closed to new replies.

## Tags

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

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 3 replies
 * 3 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/rfe-database-error-in-theme/#post-212690)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
