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 π
The topic ‘Error when using header on static page’ is closed to new replies.