If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll 2.0.2 error:Warning: Cannot modify header info  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi all and TNX for any help.

I try to install a poll for my web page and I find this one.

Is a really good poll with easy installation, the poll works but sometime I get this error:

Warning: Cannot modify header information - headers already sent by (output started at /u/web/sfane1/test/news/en.php:2) in /u/web/sfane1/poll/poll_cookie.php on line 21


This error it appears at the top of the web page.

In the head of my web page I have this:

<?php
// Important! You have to include it before your html code
include_once "/u/web/sfane1/poll/poll_cookie.php";
?>
<html>
<head>

I put this as the setup of the poll explain.


and this is the poll code in the web page:

<?php
include_once "/u/web/sfane1/poll/booth.php";
echo $php_poll->poll_process(4);
?>
Anonymous



You simply needed to put the REAL PATH to your cookie file like this:

Code:
<?php
/* Include this before your html code */
include "/usr/home/warzoneonline/public_html/poll/poll_cookie.php";
?>


Sorry that all these other people are giving you funky advice.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum