• Resolved goldatlas

    (@goldatlas)


    Hi
    We are facing an error code happence in error_log file:
    …………………………………………………………………………..
    [21-Nov-2022 14:27:21 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/myshopsh/public_html/wp-content/advanced-headers.php on line 12
    [21-Nov-2022 14:27:21 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/myshopsh/public_html/wp-content/advanced-headers.php on line 13
    [21-Nov-2022 14:27:21 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/myshopsh/public_html/wp-content/advanced-headers.php on line 14
    ……………………………………………………………………………
    After opening the advanced-headers.php file under /wp-content we found those lines:
    …………………………………………………………………………..

    <?php
    /**
    * This file is created by Really Simple SSL
    */
    
    defined('ABSPATH') or die();
    
    if ( isset($_GET["rsssl_header_test"]) && (int) $_GET["rsssl_header_test"] ===  211414390 ) return;
    
    //RULES START
    
    if ( !headers_sent() ) {
    header("X-XSS-Protection: 0");
    header("X-Content-Type-Options: nosniff");
    header("Referrer-Policy: strict-origin-when-cross-origin");
    }

    ……………………………………………………………………….
    Like you see this PHP content file is created by Really Simple SSL.
    Now, How to fix and prevent those headers and get rid of those errors?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    The issue seems to be that on some systems, the server throws an error or warning, resulting in a header sending action, before it reaches the ‘advanced-headers.php’ file. As a result, the code which starts to send security headers at that moment throws a warning ‘headers already sent’

    As these headers are part of the premium add on, as per the forum rules we are not allowed to offer support on the free forum.

    Please reach out to us on https://really-simple-ssl.com/support, then we can help you further.

    Thread Starter goldatlas

    (@goldatlas)

    OK I will do it but why I am blocked after I am submitted a support question

    We have that allert:

    Sorry, you have been blocked
    You are unable to access convesioperformance.com

    Thanks

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @goldatlas that seems like a false positive from the firewall. I will check here.

    If you didn’t receive a confirmation mail, please also send a mail to support(at)really-simple-ssl.com

    Thread Starter goldatlas

    (@goldatlas)

    Hi
    we receive back the mail [email protected] is not correct.
    Thanks

    Thread Starter goldatlas

    (@goldatlas)

    Sorry it is my mistake I forgot the t
    now it working and the support mail sent
    Thanks

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Sorry, a typo: support(at)really-simple-ssl.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Warning: Cannot modify header information – headers already sent in’ is closed to new replies.