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.
I ran into an issue with Drupal 7.43 on a site that has some code which can call drupal_goto() very early in the bootstrap (by manually including the includes/common.inc
file first). drupal_goto() now calls current_path(), which isn't available yet, leading to a fatal error.
The site can fix this itself (and maybe should given how unusual of a case it is) but it also might be reasonable for core to just check $_GET['q'] here since that's what some other core functions already do if they think they might be called very early in the bootstrap.
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-goto-current-path-2676598-2.patch | 818 bytes | David_Rothstein |
Comments
Comment #2
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedHere is a patch.