Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
k.skarlatos CreditAttribution: k.skarlatos commentedI've got the same issue. Running PHP 5.4
Comment #2
shabana.navas CreditAttribution: shabana.navas commentedCould you please provide some specifics as to how your flag is configured so that I can re-create this error. Thanks.
Comment #3
anrikun CreditAttribution: anrikun commentedHi 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.