Problem/Motivation

Currently the special menu items register menu items with drupal_not_found() as page callback. This can lead to errors like: Cannot modify header information - headers already sent by (output started at....
This is due the fact that drupal_not_found() already calls drupal_deliver_page(), which later is called again as this is the delivery callback.

Proposed resolution

As in the documentation of drupal_not_found() defined we should have an own page callback which just returns drupal_not_found instead.

Remaining tasks

Reviews needed.

User interface changes

None.

API changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gagarine’s picture

Status: Needs review » Patch (to be ported)

Thanks

  • gagarine committed cbb077d on 7.x-2.x authored by das-peter
    Issue #2466737 by das-peter: Do not use drupal_not_found as page...
gagarine’s picture

Status: Patch (to be ported) » Fixed

Committed.

Status: Fixed » Closed (fixed)

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