Page Information shows incorrect number of Total hits
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);
$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!
Updated by Steffen Gebert about 11 years ago
- Status changed from New to Accepted
- Priority changed from Must have to Should have
- Target version deleted (
Thanks for your report, Andrew.
It looks pretty straight-forward what you report. You've already half of the work done - could you please push the change into the review workflow? See http://wiki.typo3.org/Contribution_Walkthrough_Tutorials
Please don't try to fix this in master branch (which will be 6.0 later), as this feature has been removed there. So please push directly to branch
If you have any questions or problems, just ask here or in the mailing lists!
Updated by Ernesto Baschny about 11 years ago
- Status changed from Resolved to Under Review
This same fix also applies to TYPO3 4.6 and 4.5. Commit message should carry a "Releases" line displaying all relevant branches, so that we don't forget to backport the fix to previous releases. See http://www.typo3-anbieter.de/typo3-merges/core.html
I'll take care of the backports. Thanks!