#63733 closed defect (bug) (fixed)
Undefined array key "path" error coming from dynamically generated redirect paths
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Canonical | Keywords: | has-patch |
| Focuses: | Cc: |
Description
We use Sentry to monitor errors on WP sites, and we keep getting a warning coming from the canonical.php file line 619 for "Undefined array key "path"". This warning triggers at random times, and seems to be related to the dynamic nature of these paths. Is there a way to update or alter the canonical.php file to get this error to go away?
Attachments (1)
Change History (5)
#1
@
9 months ago
- Milestone changed from Awaiting Review to 6.9
- Owner set to johnjamesjacoby
- Status changed from new to assigned
This ticket was mentioned in PR #9296 on WordPress/wordpress-develop by @dhruvang21.
9 months ago
#2
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
This may happen if
$redirect_urlis "seriously malformed" causing theparse_url()calls on either line 578 or 597 to returnfalse.It also may have revealed itself due to error suppression being removed as part of #49980.
I think the easiest fix is to redo what already happens at the top of
redirect_canonical(). Patch imminent.