Warning about headers already sent when using 'form redirect'
-
When using the option ‘Form redirect’ there’s always a warning displayed at the top of the page after submitting a form:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/waaromjezus.biz/httpdocs/wp-content/plugins/formbuilder/modules/form_redirect.php:72) in /var/www/vhosts/waaromjezus.biz/httpdocs/wp-content/plugins/formbuilder/php/formbuilder_processing.inc.php on line 1052
It looks like it’s a bug, because line 72 of modules/form_redirect.php says:
echo "<meta HTTP-EQUIV='REFRESH' content='0; url=" . $field['field_value'] . "'>";
and line 1052 of php/formbuilder_processing.inc.php says:
header("Location: " . $field['field_value']);
So it’s using a http header to redirect to a different location and it tries to sent a html meta refresh tag. I think one of these 2 lines have to go?
- The topic ‘Warning about headers already sent when using 'form redirect'’ is closed to new replies.