If a request to non-existent path contains a malformed referrer (e.g. "art.nouveau.world" with no protocol specified), you can see the 404 log entry in the dblog but when you click on it to drill down to the details you get an error:

The website encountered an unexpected error. Please try again later.
InvalidArgumentException: The URI 'art.nouveau.world' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 281 of core/lib/Drupal/Core/Url.php).

IMHO the logger code should not assume that REFERRER field always contains a valid URL - it can contain any garbage if it comes from a malicious/sloppily written bot/spider.

Comments

ndlarge created an issue. See original summary.

cilefen’s picture

Component: other » dblog.module
Status: Active » Closed (duplicate)
Related issues: +#2868725: Refactor how dblog module is rendering links in event details

This seems to be a duplicate.

marassa’s picture

Oops, sorry I didn't search well enough. Duplicate (or rather quadruplicate) it is...

marassa’s picture

cilefen’s picture

Well, it's definitely reproducible...