Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Warning: Cannot modify header information - headers already sent by

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1293 Views
  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Warning: Cannot modify header information - headers already sent by Link to this post

    I got this message initially for the site wwf2.gooduse.co.nz when I didn't have the right database name.

    Now I'm getting it in the backend admin when I try to edit a particular page type (ProjectPage). This clearly used to work because someone has added content on their local computer and i think it must have happened when I uploaded the site to the server... But I've re-uploaded it a lot and it's still there.

    The error is really unhelpful and obviously means a whole bunch of different things...

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Warning: Cannot modify header information - headers already sent by Link to this post

    Errors aren't displayed on live sites. Instead, they get emailed to the developer, for security reasons.

    Add the following line to your _config.php

    if(Director::isLive()) Debug::send_errors_to("developer@email.com");

    1293 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.