Home>
I get an error in the production environment of php7.
It is an inquiry function in zeromail.php.
Since I don't touch php in the source of the person who made it before (* wordpress, scss, css, html are fine), I have no idea how to solve the error.
The browser says that there is an error in header ('Location:'. SUCCESSPAGE) ;, but I don't know how to fix it.
Please kindly advise.
Warning: Cannot modify header information --headers already sent by (output started at directory zeromail.php: 676) in directory
// Automatic reply body shaping
if (strpos (PHPVER, '5') === false) {
$replymessage = unhtmlentities ($replymessage);
} else {
$replymessage = html_entity_decode ($replymessage, ENT_QUOTES,'UTF-8');
}
$replymessage = str_replace ("\ r", "", str_replace ("<br />", "", $replymessage));
@mb_send_mail ($formitem ['email'], REPSUBJECT, $replymessage, $replyheader);
}
if (is_admin ()) zeromail_data_put_csv ($csv);// Save CSV
session_destroy ();
if (NOSCRIPT === false) {
print $endMassage;
} else {
header ('Location:'. SUCCESSPAGE);
}
-
Answer # 1
Related articles
- error in callback function in php class
- php - i want to send a value when redirecting with the header function
- an error occurs when calling a function in a php external file from html
- how to make html file php and make header and footer common
- php - page transition with comment function, cannot be sanitized
- php - the return value of the mb_send_mail function is true, but nothing arrives at the destination email address
- php - call to undefined function mb_language () when changing the theme in wordpress
- php - [laravel] after setting up the auth function, the page that could be displayed until now can no longer be displayed
- i want to use a user-defined function that contains magic constants in php
- php: there is an error in the insert into line and it cannot be resolved
- i want to solve a php function problem! !!
- i want to create a function that passes php int type and string type and outputs the content string of the int type number of ti
- error occurred in postgresql trigger function and stored procedure
- php - i want to implement an editing function i would like advice
- php - i want to switch the header logo image of the wordpress theme "lightning" by page
- python - i want to learn using my own error function in tensorflow
- php - i want to implement a function to log in to a user account with an administrator account without a password
- php - an error that i personally cannot solve
- php parse error: syntax error, unexpected'class' (t_class) error
- php - "doesn't have a default value" error when performing seeding
Related questions
- php : How to correctly pass the output of posts to foreach (using WP_Query as an example)?
- php : Separate link from comma with space
- How to fix error Undefined offset: 0 in capabilities.php?
- php : Reusable wordpress element
- php : ACF How to display all checkbox values on a specific page?
- php : Woocommerce product views counter
- javascript : How to make store search work in WordPress?
- php : Long url in wordpress
- php : Demo data for wordpress template Newses
- php : Entries in wordpress theme Newses
header ()
This is because I have output something to RESPONSE BODY before.header ()
Do not output any single character to RESPONSE BODY before the call.(www.php.net) header