403s and 404s are counted in {node_counter}

Created on 10 December 2008, over 15 years ago
Updated 1 April 2024, 5 months ago

While working on ✨ Only record unique hits in node counter stats Postponed , I found out that 403s and 404s are counted in {node_counter}. This further invalidates the node view counter.
I see no quick and easy solution, as the status is not available in $GLOBALS nor elsewhere. Querying the node title in {accesslog} would be ugly and slow, so we'd need this to be set somewhere. Or: we use (or add) another hook that resembles hook_exit but is not called in these cases.
Unfortunately I don't have the time right now to further investigate this. Maybe someone can throw in her/his knowledge?

Note: This is loosely connected to #330542: Exempt custom 403 and 404 pages from popular content β†’ - customerror could probably help.

πŸ› Bug report
Status

Needs work

Version

7.0 ⚰️

Component
StatisticsΒ  β†’

Last updated 21 days ago

No maintainer
Created by

Pancho UTC+2 πŸ‡ͺπŸ‡Ί EU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024