38 lines
1.7 KiB
Markdown
38 lines
1.7 KiB
Markdown
---
|
|
id: task-2
|
|
title: Install HitCounters extension and restore page view data
|
|
status: Done
|
|
assignee: []
|
|
created_date: '2026-02-13 04:03'
|
|
updated_date: '2026-02-13 04:03'
|
|
labels:
|
|
- wiki
|
|
- extension
|
|
- mediawiki
|
|
dependencies: []
|
|
priority: medium
|
|
---
|
|
|
|
## Description
|
|
|
|
<!-- SECTION:DESCRIPTION:BEGIN -->
|
|
Install the HitCounters MediaWiki extension on the p2pwiki (wiki.p2pfoundation.net) to restore the visitor counter from the old deployment. Restore 106M+ historical page views from the database backup.
|
|
<!-- SECTION:DESCRIPTION:END -->
|
|
|
|
## Acceptance Criteria
|
|
<!-- AC:BEGIN -->
|
|
- [x] #1 HitCounters v0.3.4 extension installed on p2pwiki container (MW 1.40)
|
|
- [x] #2 Extension configured in LocalSettings.php with $wgDisableCounters = false
|
|
- [x] #3 Database tables created via maintenance/update.php
|
|
- [x] #4 Historical page view data preserved (45,484 pages, 106M+ views)
|
|
- [x] #5 Page footer shows 'This page has been accessed X times'
|
|
- [x] #6 Special:PopularPages works and lists most viewed pages
|
|
- [x] #7 Deprecation warning (Language::convert) fixed with LanguageConverterFactory
|
|
<!-- AC:END -->
|
|
|
|
## Implementation Notes
|
|
|
|
<!-- SECTION:NOTES:BEGIN -->
|
|
Cloned HitCounters REL1_40 branch into p2pwiki container extensions volume. Added wfLoadExtension('HitCounters') and $wgDisableCounters=false to LocalSettings.php at /opt/websites/p2pwiki/. Ran maintenance/update.php - hit_counter tables already existed from DB import with 45,484 pages and 106,355,286 total views. Fixed SpecialPopularPages.php deprecation by replacing Language::convert with MediaWikiServices::getInstance()->getLanguageConverterFactory()->getLanguageConverter(). Committed and pushed to Gitea (7633ea6).
|
|
<!-- SECTION:NOTES:END -->
|