Opened 3 years ago
Closed 21 months ago
#60173 closed defect (bug) (duplicate)
Warning: Undefined array key "host"
| Reported by: | ainsleyclark | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Canonical | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
I encountered an issue on my WordPress website where an ErrorException is thrown, displaying the following error message:
ErrorException Warning: Undefined array key "host"
This error occurs in the canonical.php file on line 718 of the /wp-includes/ directory. Here is the relevant code snippet:
$compare_original = array( $original['host'], $original['path'] );
Additionally, the error stack trace includes the following information:
/wp-includes/canonical.php in redirect_canonical at line 718
Change History (3)
This ticket was mentioned in PR #5827 on WordPress/wordpress-develop by @sebastienserre.
3 years ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
https://core.trac.wordpress.org/ticket/60173