When Access Logs are enabled and a number sign (#) is present in the title of a node, it breaks the Access Logs for that node at /admin/logs/hits/page/[nodetitle]

It may have something to do with encoding the entity in the URL, but many other symbols do work.

Comments

grohk’s picture

Title: Number Sign in Node Title breaks Access Logs » Unencoded Symbol in Node Title breaks Access Logs

I just noticed that the ampersand symbol does the same thing so I am changing the title. Steven mentioned that this is probably due to urlencode() and I am going to work up a list of problem symbols.

mleicester’s picture

Various characters: ?, # and / (any others?) seem to cause problems for the statistics link, as you say. I played around long enough to see that URLEncode won't help; if you type a URL in manually with encoded %2F instead of /, it will still break the statistics view (truncating the URL). I think that perhaps the statistics view needs to take a node ID as a parameter instead of the node name. Any comments?

grohk’s picture

I am in favor of anything that fixes this issue. Unfortunately, this issue is a rather small bug that is unlikely to be addressed until one of us offers up a patch.

In the hopes that this will be addressed sometime soon I am changing this to "version: cvs"

paul-at-murphymaphia.com’s picture

I would prefer that the stats logs use "node id" rather than the title of the node anyway. This used to be the case but isn't since 4.3 or so... I wonder why?
I have noticed that this is actually also a problem in generating accurate stats because hits the the node called by node id rather than title are not displaying in the log for that title at all.
Any explanation as to why title (which is not guaranteed unique) is used instead of node id?

grohk’s picture

Status: Active » Fixed

This problem does not exist in the current drupal-cvs, node ids are used instead.

Anonymous’s picture

Status: Fixed » Closed (fixed)