SimplePortal

Support => English Support => Topic started by: mforum on April 08, 2014, 05:21:56 AM

Title: error on vote by guest
Post by: mforum on April 08, 2014, 05:21:56 AM
Hi, i have added a pole block in portal and having the following error when i try to vote as guest for the second time in the same poll.

Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/forum/Sources/Subs-WikiBBC.php:48) in /home/*****/public_html/forum/SSI.php on line 1459

SSI.php (Lines 1452-1460)
   
Code: [Select]
// Track the vote if a guest.
if ($user_info['is_guest'])
{
$_COOKIE['guest_poll_vote'] = !empty($_COOKIE['guest_poll_vote']) ? ($_COOKIE['guest_poll_vote'] . ',' . $row['id_poll']) : $row['id_poll'];

require_once($sourcedir . '/Subs-Auth.php');
$cookie_url = url_parts(!empty($modSettings['localCookies']), !empty($modSettings['globalCookies']));
setcookie('guest_poll_vote', $_COOKIE['guest_poll_vote'], time() + 2500000, $cookie_url[1], $cookie_url[0], 0);
}

redirectexit('topic=' . $row['id_topic'] . '.0');
}

forum version SMF 2.0.7
SP version 2.3.4

Title: Re: error on vote by guest
Post by: AngelinaBelle on April 09, 2014, 08:23:48 AM
My guess is that this error is caused by WikiBBC.

SSI.php should not be starting any output before the call to ssi_pollVote (which is what you are showing part of at your line 1459).  But output was started in a file from one of your mods.
I have to assume that this mod has made a change to SSI.php in order to write something to the output.  Please investigate this code, or talk to the mod's author about what it is doing and why.

Thanks
Title: Re: error on vote by guest
Post by: mforum on April 10, 2014, 03:07:56 AM
I guess it`s the SA Affiliates mod ....  :o

Thank you !
Title: Re: error on vote by guest
Post by: AngelinaBelle on April 10, 2014, 12:58:08 PM
Glad to be able to help you trouble-shoot. I assumed it was related to "WikiBBC", since that is the code that had written output prematurely, but I am glad you figured it out.

I hope the mod's author can help you find a good fix.
SimplePortal 2.3.8 © 2008-2024, SimplePortal