2020-12-04, 03:52:51
Hello,
this is a great add-on!!
When the page post increases in size (I found that size depends on the theme) page_comments plugin shows a "session can't start because headers already send" warning & I can't post a comment.
The temp fix I found is changing line 27 in check.php and setting in there the $tp='pc';
I hadn't much time to reverse engineer the plugin but this seems to work at the moment.
It's a very strange bug and I was really surprised when I found out that with different themes the bug appears at different page post size...
Any clues of better fixes?
this is a great add-on!!
When the page post increases in size (I found that size depends on the theme) page_comments plugin shows a "session can't start because headers already send" warning & I can't post a comment.
The temp fix I found is changing line 27 in check.php and setting in there the $tp='pc';
Code:
//check Token
if (isset($_POST['guest-submit']) && $tp != 'noenter') {
if ($_POST['guest']["q_token".$_POST['guest']['q_count']] != $_SESSION["pc_token".$_POST['guest']['q_count']]){
//if doesn't come from form
$mi_array = $temp;
$tp = 'pc'; //FIX ****************** ORIGINAL was $tp='noenter2';
$seg= 6;
$msgshw = '*** '.strtoupper(i18n_r('pages_comments/MSG_pcERR')).' ***\n';
$msgshw .= '$_SESSION: '.$_SESSION["pc_token".$_POST['guest']['q_count']].'\n';
$msgshw .= '$_POST: '.$_POST['guest']["q1_token".$_POST['guest']['q_count']];
}
}
I hadn't much time to reverse engineer the plugin but this seems to work at the moment.
It's a very strange bug and I was really surprised when I found out that with different themes the bug appears at different page post size...
Any clues of better fixes?