We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3071
    • 99 Posts

    After locking up my includes folder, I don’t know how...I had to copy another on from a different installation then managed to get site back up. However, when I go to /manager to log in I get this error message, does anyone know how to fix this at all? I looked for white space etc but none, this is specifically to do with me messing with another installation I think?


    Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/e/v/sevenagain/html/manager/includes/config.inc.php:1) in /home/content/s/e/v/sevenagain/html/manager/index.php on line 148

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/s/e/v/sevenagain/html/manager/includes/config.inc.php:1) in /home/content/s/e/v/sevenagain/html/manager/includes/config.inc.php on line 78

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/e/v/sevenagain/html/manager/includes/config.inc.php:1) in /home/content/s/e/v/sevenagain/html/manager/includes/config.inc.php on line 95
      • 22303 MODX Staff
      • 10,725 Posts
      There’s definitely either extra whitespace, or possibly even a UTF-8 BOM on line 1 of your config.inc.php.
        • 3071
        • 99 Posts
        How do I get rid off white spaces? Is there a program to do this? Thanks
          • 3071
          • 99 Posts
          It still does the same sadly, took formatting off it. sad

            • 3071
            • 99 Posts
            Fixed! Might have been that white space after all! Thanks... http://www.quirkybet.com
              • 11369
              • 1 Posts
              Also, if it’s not a whitespace remember to have your header sent before anything else is sent, example:
              <?php
              
              // PUT HEADER CONDITIONAL HERE
              if (isset($_GET['redirect'])) {
                 header("Location: " . $_GET['redirect']);
              }
              ?>
              <html>
              <head>
              <title>SOMETHING</title>
              <body>
              <?php
              
              // NOT HERE:
              if (isset($_GET['redirect'])) {
                 header("Location: " . $_GET['redirect']);
              }
              ?>
              </body
              </head>
              </html>


              I found that to be a problem with my code smiley. Hope that helps