Title: codeofalice's Replies | WordPress.org

---

# codeofalice

  [  ](https://wordpress.org/support/users/codeofalice/)

 *   [Profile](https://wordpress.org/support/users/codeofalice/)
 *   [Topics Started](https://wordpress.org/support/users/codeofalice/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codeofalice/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codeofalice/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codeofalice/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codeofalice/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codeofalice/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Flat] Fatal error](https://wordpress.org/support/topic/fatal-error-1520/)
 *  [codeofalice](https://wordpress.org/support/users/codeofalice/)
 * (@codeofalice)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1520/#post-5802527)
 * I had the same issue, and this is how I fixed it:
 * Go to Appearance > Editor in your admin panel.
 * For the Flat Theme, go to `hooks.php`.
 * Under the `<?php` line, add the following code:
 *     ```
       function flat_hook_page_before() {
       	do_action( 'flat_page_before' );
       	do_action( 'tha_page_before' );
       }
   
       function flat_hook_page_after() {
       	do_action( 'flat_page_after' );
       	do_action( 'tha_page_after' );
       }
   
       function flat_hook_page_top() {
       	do_action( 'flat_page_top' );
       	do_action( 'tha_page_top' );
       }
   
       function flat_hook_page_bottom() {
       	do_action( 'flat_page_bottom' );
       	do_action( 'tha_page_bottom' );
       }
       ```
   
 * and update the file. It should fix the error.
 * I assume that when the creator updates the template, they’ll probably fix this
   bug, but now I don’t have the error anymore.

Viewing 1 replies (of 1 total)