Quote:
Originally Posted by opelgtman
make the file on here its own php page, then on your main page use a php include statement and it works fine
|
I've got the same problem ("Unable to add cookies, header already sent"), but only sometimes:
If my page is .shtml and include the hack as a server-side include
Code:
<!--#include virtual="/community_events.php" -->
<!-- this is the calendar_on_nonvb.txt file -->
ie
http://www.tear.org.au/index-new.shtml
then the code works.
If my page is php and I use a php include it doesn't:
http://www.tear.org.au/index-new.php
I get an error relating to line 6 which is the first line after <title>...</title>. I can move this line, or change it (in index-new.php) but I still get the error referring to the whatever line of code comes after the html <title> tags.
I've found the line in vBulletin's includes/functions.php (line 1607)
Code:
eval(standard_error(fetch_error('cant_set_cookies', $filename, $linenum)));
which calls the error message we're getting, but it is beyond me what is triggering it or how to fix it.
Any help appreciated. I really don't want to change my index page back to .shtml. I've probably got 1000 pages linked to it as index.php