#28648 closed defect (bug) (fixed)
$homeURL['host'] missing null check on site install: Notice: Undefined index: host in /wp-includes/class-http.php on line 186
Reported by: | meekyhwang | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | minor | Version: | 4.0 |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | Cc: |
Description
Notice: Undefined index: host in /wp-includes/class-http.php on line 186
It is an warning which does not break the site, only shows up with debugger on.
Attachments (1)
Change History (9)
#3
@
10 years ago
- Component changed from General to HTTP API
- Keywords reporter-feedback added
Could you provide the steps to reproduce the issue? Why would get_bloginfo( 'url' )
return a URL without a host name?
#4
@
10 years ago
It happened when I tried to install the site for the first time when it redirected to /wp-admin/install.php. (the warning appeared on the screen where it asks you to set up the language before setting up the site admin account.) get_bloginfo( 'url' ) is not set at this point.
Note: See
TracTickets for help on using
tickets.
empty check to fix the issue.