Issue Bug Closed

#41608Page Information shows incorrect number of Total hits

Andrew Moore 10/05/12, 11:03 updated 10/02/18, 12:16

Description

Going into the Page Information section of the Page module on all pages gives the incorrect number of page hits. Due to a bug in the code it is actually displaying a timestamp instead!

Note that page hit information will only appear if the sys_stat extension is installed.

This can easily be fixed by changing line 2471 (in version 4.7.4) of typo3\sysext\cms\layout\class.tx_cms_layout.php from this:

$lines[] = array($GLOBALS[‘LANG’]->getLL(‘pI_hitsTotal’) . ‘:’, $rrow20);

to this:

$lines[] = array($GLOBALS[‘LANG’]->getLL(‘pI_hitsTotal’) . ‘:’, $count);

Looks like someone just made a small mistake when reworking the code at some point. Anyway, easy fix!

Reviews 3