Problem/Motivation

When upgrading from 10.5 to Drupal 11.3 I started to get 404 when trying to load /admin/* paths.

Proposed resolution

When checking the table router there are paths that have pattern_outline empty. This causes the 404.
Results SQL query

    $sql = "SELECT name, path, pattern_outline FROM {router} WHERE :path LIKE CONCAT(pattern_outline, '%') AND pattern_outline != '/'";

Adding to the clause to not get empty pattern_outline should fix this.

    $sql = "SELECT name, path, pattern_outline FROM {router} WHERE :path LIKE CONCAT(pattern_outline, '%') AND pattern_outline != '/' AND pattern_outline != ''";

Issue fork fast_404-3567303

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

eescribanoc created an issue. See original summary.

eescribanoc’s picture

Issue summary: View changes
StatusFileSize
new308.98 KB
elaman’s picture

Status: Active » Needs review
StatusFileSize
new754 bytes

Tested the patch and it works.

elaman’s picture

djdevin’s picture

Patch also works for me. This also affected a lot of other non-admin paths.

joseph.olstad’s picture

Assigned: Unassigned » joseph.olstad

  • eescribanoc committed 1a2929fd on 8.x-3.x
    Issue #3567303 prevent pattern_outline empty as results
joseph.olstad’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
joseph.olstad’s picture

Status: Fixed » Closed (fixed)

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