PHP error
-
Hello WebCource,
Your captcha appears to work perfectly except that it is filling up my php error logs with this line:
[21-Aug-2020 01:34:02 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/example/public_html/wp-content/plugins/wc-captcha/includes/class-cookie-session.php on line 49
and occasionally this line:
[21-Aug-2020 01:11:31 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/example/public_html/wp-content/plugins/wc-captcha/includes/class-cookie-session.php on line 46Those lines relate to:
Line 46:
setcookie( ‘mc_session_ids[default]’, $this->session_ids[‘default’], current_time( ‘timestamp’, true ) + apply_filters( ‘Wc_Captcha_time’, Wc_Captcha()->options[‘general’][‘time’] ), COOKIEPATH, COOKIE_DOMAIN, (isset( $_SERVER[‘HTTPS’] ) && $_SERVER[‘HTTPS’] !== ‘off’ ? true : false ), true );
and Line 49:
setcookie( ‘mc_session_ids[multi][‘ . $i . ‘]’, $this->session_ids[‘multi’][$i], current_time( ‘timestamp’, true ) + apply_filters( ‘Wc_Captcha_time’, Wc_Captcha()->options[‘general’][‘time’] ), COOKIEPATH, COOKIE_DOMAIN );I truly appreciate all the work that goes into creating such a plugin and would be very happy to leave a glowing review except that I removed a different plugin to add yours for the same reason. Huge logfiles of “headers already sent” without being able to fix it. Please if it is possible, let me know how I can fix this. WP is v 5.5, PHP is v. 7.4
I believe in supporting responsive plugins!
Thank you
2ferThe page I need help with: [log in to see the link]
- The topic ‘PHP error’ is closed to new replies.