SimplePortal
Support => English Support => Topic started 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)
// 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
-
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
-
I guess it`s the SA Affiliates mod .... :o
Thank you !
-
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.