Title: Error when using header on static page
Last modified: August 18, 2016

---

# Error when using header on static page

 *  Resolved [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-header-on-static-page/)
 * I have a contact form that I developed and use quite a bit. It’s fairly spam-
   proof (I did that on purpose 🙂 ) and I have serveal people that like to use 
   it on their sites for form mail injection prevention.
 * I’m trying to put it up on a friend’s site – it’s a new site with a fresh install,
   and I’ve done this many many times. But I’m getting this weird error I’ve never
   seen before – it shows up even with all plugins disabled.
 * The error is this:
 * Warning: extract() [function.extract]: First argument should be an array in /
   home/###/public_html/wordpress/wp-includes/functions.php on line 2139
 * Now, my setup is thus:
 * WordPress is in it’s own folder. The contact form is actually in the root directory.
   It’s a PHP based form, using includes to call in the HTML form.
 * Within the PHP file itself, I have this at the very very top:
 * <?php include(“/home/###/public_html/wordpress/wp-config.php”); ?>
 * so it can call in the header, sidebar and footer. However, in the spots where
   the header, sidebar and footer are, the above-mentioned error appears. (the header,
   sidebar and footer also appear – they’re just prefaced by the error message.)
 * Would anyone know what’s up? Like I said, I’ve done this many many times before,
   and never had this happen. Any insight would be appreciated 🙂

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

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-header-on-static-page/#post-488218)
 * Um. When I do this sort of thing, the line I use looks thusly:
 * `<?php include("/home/###/public_html/wordpress/wp-blog-header.php"); ?>`
 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-header-on-static-page/#post-488220)
 * OMG.
 * Duh.
 * Thank you. 🙂
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-header-on-static-page/#post-488222)
 * Heh. You’re welcome, I’ll expect you to help ME next time with my own “duh” moment!

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

The topic ‘Error when using header on static page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-header-on-static-page/#post-488222)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
