We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34466
    • 19 Posts
    My homepage crashed and I have no clue how to fix it. One strange thing is the manager works fine, just the homepage is down. Godaddy support says the php and database are working fine. Here’s the error:
    MODx version 1.0.4
    MySQL 5.0
    Php 5.x

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/96/4524996/html/c3llphone/index.php:96) in /home/content/96/4524996/html/c3llphone/index.php on line 154

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/96/4524996/html/c3llphone/index.php:96) in /home/content/96/4524996/html/c3llphone/index.php on line 155

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/96/4524996/html/c3llphone/index.php:96) in /home/content/96/4524996/html/c3llphone/manager/includes/config.inc.php on line 154

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/96/4524996/html/c3llphone/index.php:96) in /home/content/96/4524996/html/c3llphone/manager/includes/config.inc.php on line 168
    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Cannot modify header information - headers already sent by (output started at /home/content/96/4524996/html/c3llphone/index.php:96)
    Error type/ Nr.: Warning - 2
    File: /home/content/96/4524996/html/c3llphone/manager/includes/document.parser.class.inc.php
    Line: 564
    Line 564 source: header(’Content-Type: ’ . $type . ’; charset=’ . $this->config[’modx_charset’]);

    Parser timing
    MySQL: 0.0205 s (42 Requests)
    PHP: 0.3785 s
    Total: 0.3990 s
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That’s all the error message says? The "header already sent" message just means that there was a major PHP error that PHP itself has already sent its error message for, so MODx’s attempts to send a message are prevented. But it’s not saying what the actual original error is.

      What does your Logs->System Events log say? What do your server’s error logs say?

      Did you add any new snippets or plugins?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org