Extension talk:HitCounters

Jump to navigation Jump to search

About this board

Please create Phabricator tasks if you run into bugs
I need bug reports in Phabricator so that they can be worked on. If you run into a problem with one of the following, please create a phabricator task and link to it here. -- MarkAHershberger(talk) 16:03, 30 July 2016 (UTC)

--> Archived talk

Tgr (talkcontribs)

Despite the scary warning, installing under 1.35a works fine, and at a glance I don't see any reason in the code why it wouldn't. Anyone knows what that's about?

Cboltz (talkcontribs)
Tgr (talkcontribs)

That's the opposite of what the template says, though (Currently it is only possible to migrate wikis using MW 1.25 to use this extension. A fresh install in MW 1.26 and higher is not possible!).

Cboltz (talkcontribs)

Please re-read the template - the important part is the word "migrate", and all text in that box talks about migration and updating. The next sentence after what you quoted says (highlighting done by me)

[...] an update to MediaWiki 1.26 or newer can permanently delete your hitcounter numbers! See task T120216.

So if you ignore this warning, you will loose the old visitor count from the page table - but in a fresh installation, you have 0 visits, and therefore don't loose anything.

That's at least how I interpret this warning, and also what I expect based on the experience with this extension. Besides this, the fact that it works for you in a fresh install also confirms this.

So: don't worry too much ;-)

Tgr (talkcontribs)

Updated the warning.

Special:PopularPages redirects to Special:Beliebteste_Seiten (German)

2
Summary by Kghbln

This was reported with task T236012 and fixed in the meantime.

Amousey (talkcontribs)

Version 0.3

1. Despite a default MediaWiki language of "en", Special:PopularPages actually uses the page name Special:Beliebteste_Seiten.

This may be due to an error in HitCounters.i18n.alias.php using "en" not "de": $specialPageAliases['en'] = [ 'PopularPages' => [

'Beliebteste_Seiten' ], ];

Kghbln (talkcontribs)

This was reported with task T236012 and fixed in the meantime.

195.141.167.186 (talkcontribs)

Is it possible to read the total hits from the database by using the API-interface?


Kind regards from Basel, Switzerland

Thomas


MarkAHershberger (talkcontribs)
195.141.167.186 (talkcontribs)

Would be nice.

Reply to "API and HitCounter"
Wgkderdicke (talkcontribs)

The infobox tells that this extension is compatible with MW 1.25 or higher. The installation chapter says insistent: "Use MediaWiki 1.25 and install this extension. Still in MediaWiki 1.25, run update.php.". Yet a few lines later in the installation chapter the instructions regarding the needed code in the LocalSettings.php file are suggesting that one can install this in MW 1.24 or in an earlier version. Why should one do this if exact MW 1.25 is needed?

Or, asked the other way around, if I do this:

  1. Installation of this extension in MW 1.23.17
  2. Running update.php after installation in MW 1.23.17
  3. Update to MW 1.31.1
  • Hit counters are still available and counting???
Kghbln (talkcontribs)

The MW 1.24 stuff was indeed not needed and misleading.

This is how I have done it many times.

  1. Backup database
  2. Update software, in your case from 1.23.x to 1.31.x including extensions (DO NOT run update.php)
  3. Install HitCounters and invoke it in LocalSettings.php
  4. Now run update.php
  5. That's it.

I am not sure if HitCounters is installable for MW 1.24 and earlier.

Wgkderdicke (talkcontribs)

Shouldn't your way mentioned in the installation chapter also? Because at the moment the installation chapter tells me this:

  1. Coming from < MW 1.25, that, firstly, I have to install MW 1.25 (update software & run update.php)
  2. Then I have to install this extension here
  3. After that I have to run update.php under MW 1.25 with this extension installed
  4. And at the end I have to install MW 1.31, for example (update software & run update.php)

Your solution skips the complete MW 1.25 installation and it seems that with the installation of this extension in addition to the update to MW 1.31 with a update.php runthrough only once one gets two things at a single stroke.

Kghbln (talkcontribs)

Hmm, the more I think about this ... I believe I made a big mistake here. It is over two years ago I last did this. Yeah, do this:

  1. Backup database
  2. Update software, in your case from 1.23.x to 1.25.x including extensions (DO NOT run update.php)
  3. Install HitCounters and invoke it in LocalSettings.php
  4. Now run update.php
  5. Update software from 1.25.x to 1.31.x including extensions
  6. Run update.php
  7. That's it.

In the end the docu is correct and you understood correctly.

Reply to "Installation in MW 1.23?"
There are no older topics