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 error!!!  XML
Forum Index » Support Forum
Author Message
Anonymous



Took me a long time to figure this sucker out. If you get the problem about adding header make sure this is before 1st <html> tag:
<?php
/* Include this before your html code */
include "./poll_cookie.php"; (------this has to be the path to the actual cookie creating php script)
?>

and it has to be at very top no spaces at all before it

I had just 1 space before the <?php and it kept giving me a smimilar message to this:
Warning: Cannot add header information - headers already sent by (output started at /usr/home/warzoneonline/public_html/index.php:7) in /usr/home/warzoneonline/public_html/poll/poll_cookie.php on line 22

gotta get rid of that and it should work for you. My poll would work, it just gave the warning at top of page after a vote but if you closed the window and reopened the page it was fine. Its just when it writes the cookie i suppose. Well hope this info saves someone from a few hours of head banging that i had to go threw
Anonymous



if u gettin these errors try this:
do the CHMOD 755 or similer to all your files in your poll folder , well it worked for me and it got rid of the errors so if all else fails try it...
Shadeaux
Newbie

Joined: 29/05/2003 23:54:23
Messages: 2
Offline

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



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