Some old code in Statistics module is calling node_load() and user_load() when it doesn't need to do so. I came across this because of an apparent bug in Workbench Moderation: #1780182: Revision tab shown in node form, if node/x/track is clicked

I'll post a patch shortly.

Comments

stevector’s picture

Status: Active Β» Needs review
StatusFileSize
new7.89 KB
new2.21 KB

I'm posting two patches. The real patch is mostly whitespace fixes. The patch without the whitespace fix makes the change easier to see.

Status: Needs review Β» Needs work

The last submitted patch, stats-node-user-load-removal-1863260-1.patch, failed testing.

stevector’s picture

Status: Needs work Β» Needs review

Hmm, failing tests is one thing, but they shouldn't fail different tests.

stevector’s picture

stevector’s picture

iamEAP’s picture

Version: 8.x-dev Β» 7.x-dev
Status: Needs review Β» Needs work

Neither of these routes exist in 8.x anymore. Moving to 7.x

iamEAP’s picture

Issue summary: View changes

Fixing link to other d.o issue

nohup’s picture

Issue summary: View changes
StatusFileSize
new921 bytes

With the 'me' alias module enabled user/me/track/navigation results in a "page not found". The 'me' modules replaces the user id in the URL with the string 'me'. The statistics module uses user_load(arg(1)) to load the user from the argument which fails because the user id in the URL was replaced with 'me'. The following patch users menu_get_object to load the user.

nohup’s picture

Status: Needs work Β» Needs review

updating status

Status: Needs review Β» Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.