The page callback function view_mode_modal_view_entity() calls drupal_access_denied() which causes warnings as the function attempts to change headers after output has started. Per the docs for drupal_access_denied(), it should return MENU_ACCESS_DENIED instead.

CommentFileSizeAuthor
#2 2771419-cannot-modify-header.patch489 bytesShawn Conn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shawn Conn created an issue. See original summary.

Shawn Conn’s picture

  • arshadcn committed 51ee78b on 7.x-1.x authored by Shawn Conn
    Issue #2771419 by Shawn Conn: "Cannot modify header..." warnings from...
shadcn’s picture

Status: Active » Fixed

Thanks.

shadcn’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.