Warning : Cannot modify header information - headers already sent by (output started at /[...]/includes/common.inc:2700) in drupal_send_headers() (line 1220 in /[...]/includes/bootstrap.inc).

I get this error logged each time flag_page() leads to a denied access.

Comments

k.skarlatos’s picture

I've got the same issue. Running PHP 5.4

shabana.navas’s picture

Could you please provide some specifics as to how your flag is configured so that I can re-create this error. Thanks.

anrikun’s picture

Hi Shabana,
I think this happens because some robots try to visit the flag links.
There are has_js=1 in the links but links are visited directly (out of a JavaScript context).
flag_page() adds headers according to has_js=1 then the errors occur.