I'm seeing this error when a user types "http://" and then pauses, triggering the autocomplete.

The parsed URL doesn't contain a 'host' value, hence the notice:

{
query: [], 
scheme: http, 
url: http://
}

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new717 bytes

Here's a simple patch which makes sure that 'host' exists in the parsed URL.

alansaviolobo’s picture

StatusFileSize
new748 bytes

there are two variables that can potentially generate warnings. added a check for both the variables.

  • anon committed 0c0a097 on 7.x-3.x authored by alansaviolobo
    Issue #2816505 by joelstein, alansaviolobo, anon: Notice: Undefined...
anon’s picture

Status: Needs review » Fixed
joelstein’s picture

Thanks for committing this!

Status: Fixed » Closed (fixed)

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