Results 1 to 5 of 5

Thread: Error message! Cannot modify header information!

  1. #1
    New user
    Join Date
    06-18-10.
    Posts
    13

    Default Error message! Cannot modify header information!

    Hi, I'm having a problem with my site http://dev.filtercreative.co.uk on every page there are 'Warning: Cannot modify header information...' error messages.

    What could be the issue? I think it has something to do with the browsercss module.

    This is the error code.

    Thanks!

    Code:
    Warning: Cannot modify header information - headers already sent by (output started at /home/rob/public_html/dev/system/modules/browsercss/BrowserCSS.php:178) in /home/rob/public_html/dev/system/libraries/Template.php on line 186
    #0 [internal function]: __error(2, 'Cannot modify h...', '/home/rob/publi...', 186, Array)
    #1 /home/rob/public_html/dev/system/libraries/Template.php(186): header('Content-Type: t...')
    #2 /home/rob/public_html/dev/system/modules/frontend/FrontendTemplate.php(187): Template->output()
    #3 /home/rob/public_html/dev/system/modules/frontend/PageRegular.php(136): FrontendTemplate->output()
    #4 /home/rob/public_html/dev/index.php(198): PageRegular->generate(Object(DB_Mysql_Result))
    #5 /home/rob/public_html/dev/index.php(333): Index->run()
    #6 {main}

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Error message! Cannot modify header information!

    Does it work without?

  3. #3
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Error message! Cannot modify header information!

    Quote Originally Posted by Rob
    What could be the issue? I think it has something to do with the browsercss module.
    Yes, this extension is causing the problem!

    Like mentioned by do_while in the German board you would have to remove in the script "BrowserCSS.php" the space character and the line break after the closing PHP tag.

    Anyway, I think this error is fixed certainly soon.
    Contao Community Moderator
    → Support options

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Error message! Cannot modify header information!

    Many people advise to omit enclosing end tags for PHP exactly for this reason....

  5. #5
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Error message! Cannot modify header information!

    The problem should be fixed now with version 1.1.1!
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •