Wondering if anyone knows anything about the following error:
PHP Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/poison1/public_html/wp-content/themes/thesis_17/lib/html/frameworks.php:6) in /home/poison1/public_html/wp-content/themes/thesis_17/custom/custom_functions.php on line 38
Here's my function that's supposedly causing this problem. Line 38 is the setcookie() line.
PHP Code:
function add_cookie() {
if ($_GET['gclid']) {
$expire=time()+3888000;
setcookie("Believe_Adwords",$_GET['gclid'],$expire,"/",".nickholliday.com");
}
}
I've busted my tail trying to figure this out. Here's what I've done to try to fix it:
- make sure there are no spaces following my final ?>
- make sure my file is saved in UTF-8 no MOD
- actually typed this function in, rather than cutting & pasting, just to make sure there are no hidden characters in it
I'm stumped!
WordpressInstaller.net - Automatically install & configure Wordpress Blog, Theme, Plugins and Posts. Wordpress Installer will DO IT ALL for you in just a FEW SECONDS AND best of all, it's FREE
Mihir.info - A developer's blog