Title: Dashboard executes php file, wrongly
Last modified: August 19, 2016

---

# Dashboard executes php file, wrongly

 *  [toxicriptide](https://wordpress.org/support/users/toxicriptide/)
 * (@toxicriptide)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/dashboard-executes-php-file-wrongly/)
 * I am trying to follow along with a book to learn theme coding – “Sitepoint.com–
   Build Your Own Wicked WordPress Themes”.
 * I’m trying to register a widget-ready area for the theme I have been working 
   with, Thematic. The book says I need to add
 * `include('library/widget-areas.php');`
 * to my functions.php file, and this include will call up a subsequent php file,
 *     ```
       <?php
       // Register the extra Footer Aside
       function wicked_footer_aside() {
       register_sidebar(array(
       'name' => 'Main Footer Aside',
       'id' => 'footer-aside',
       'description' => __('A widget area in the footer, above the subsidiary
       ➥asides.', 'thematic'),
       'before_widget' => thematic_before_widget(),
       'after_widget' => thematic_after_widget(),
       'before_title' => thematic_before_title(),
       'after_title' => thematic_after_title(), )
       );
       }
       add_action('init', 'wicked_footer_aside');
       ?>
       ```
   
 * My question is, whenever I write my include code into my functions.php, My dashboard
   gets screwed up by including (displaying) that php file in almost every header
   of my dashboard – [http://coreylight.com/docs/error.JPG](http://coreylight.com/docs/error.JPG)
 * What am I doing wrong? (I have tried to look up this answer on my own somehow,
   but I can’t figure out how to phrase it correctly)

The topic ‘Dashboard executes php file, wrongly’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [toxicriptide](https://wordpress.org/support/users/toxicriptide/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/dashboard-executes-php-file-wrongly/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
