1.7 KiB
1.7 KiB
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| task-2 | Install HitCounters extension and restore page view data | Done | 2026-02-13 04:03 | 2026-02-13 04:03 |
|
medium |
Description
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.
Acceptance Criteria
- #1 HitCounters v0.3.4 extension installed on p2pwiki container (MW 1.40)
- #2 Extension configured in LocalSettings.php with $wgDisableCounters = false
- #3 Database tables created via maintenance/update.php
- #4 Historical page view data preserved (45,484 pages, 106M+ views)
- #5 Page footer shows 'This page has been accessed X times'
- #6 Special:PopularPages works and lists most viewed pages
- #7 Deprecation warning (Language::convert) fixed with LanguageConverterFactory
Implementation Notes
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).