Jump to content

Extension talk:Wiretap

Add topic
From mediawiki.org
Latest comment: 2 years ago by Hoopid in topic Chart display not working


run the update.php

[edit]

Hi,

very good extension, works great! I'm curious about new features. Thanks a lot!

Just one tip: Maybe it would be helpful to add the following line to the Installation section

  • Run the update script which will automatically create the necessary database tables that this extension needs.

- even if the advice is in the infobox. Otherwise newbies will get an SQL error.

Greetings Deli68 (talk) 11:09, 18 May 2015 (UTC)Reply

This was added. Thank you. MikeDarling (talk) 21:17, 27 December 2017 (UTC)Reply

error on MW 1.27

[edit]

I installed it on MW 1.27. Installation works, but when I visit Special:Wiretap, I get: "Fatal error: Call to undefined function wfCheckLimits() in ../extensions/Wiretap/SpecialWiretap.php on line 18" Krabina (talk) 16:27, 13 October 2016 (UTC)Reply

Fatal error w/ 1.28

[edit]

On https://demo.qualitybox.us/wiki/Special:Wiretap?requestDebug=true&useskin=vector

I get Fatal error: Call to undefined method SkinVector::link() in /opt/htdocs/mediawiki/extensions/Wiretap/SpecialWiretap.php on line 528

That line is

$page = $this->getSkin()->link( $pageTitle );

I tried inserting a 'context' (property) or getContext() method into the chain, but that too errored:

$page = $this->getContext->getSkin()->link( $pageTitle );

I could only find a 'link' method in the Linker class. https://doc.wikimedia.org/mediawiki-core/master/php/classLinker.html#ad97e40cfea2343c5cae8307cf1fe47a4 Greg Rundlett (talk) 20:31, 19 February 2018 (UTC)Reply

Feature request - store data locally as csv

[edit]

Great extension. Thanks! .. One additional feature that I think would be easy to implement would be to have the extension save the data locally to a csv file that could also be used by outside processes to do more with the data.

For example.. line 144 of ../w/extensions/wiretap/modules/charts/ext.wiretap.charts.js is var myLineChart = new Chart( ctx ).Line( data, options );.

Is the variable data the data i'm interested in?

Could a line be added below 145 that would write that data to a file?

Could it be that straightforward? Revansx (talk) 12:57, 6 June 2018 (UTC)Reply

@Jamesmontalvo3 Revansx (talk) 13:36, 6 June 2018 (UTC)Reply
I second that. It would be great to be able to do this. Beaujjeffrey (talk) 02:52, 20 September 2019 (UTC)Reply
Would love this feature too! 2A02:C7F:9885:AD00:8CF6:53B2:790:DC9D (talk) 07:57, 25 August 2021 (UTC)Reply

filter OUT user(s)?

[edit]

How hard would it be add a configuration option that would ignore users whose usernames are the values of an array in LocalSettings.php?

This would be handy to track the usage by say, non-admins. Revansx (talk) 21:53, 6 June 2018 (UTC)Reply

@Jamesmontalvo3 Revansx (talk) 21:56, 6 June 2018 (UTC)Reply
[edit]

Hi James, Great extension. Thanks! .. I see that you are tinkering with this extension to add a "trending pages" feature. cool. Could you say a word or two about how hard/easy it might be to add the following other features:

  1. List of IP address and/or users to ignore in the stats. (My host scans my sites monthly with thousands of hits and as a result is "always" the largest number making the "Daily page hits" metric meaningless.)
  2. Easiest way to get the the access statistics directly (via API call, cURL, or otherwise) (currently I am only aware of seeing them plotted or in a fully-rendered wiki table page)

Any words you can provide (or tricks) would be welcomed.

Thanks!

-Rich Revansx (talk) 16:22, 13 August 2018 (UTC)Reply

Mismatch between wiretap and user page view tracker

[edit]

Chart display not working

[edit]

Getting errors on chart display after upgrading to 1.40 LTS:

Call to undefined method Wikimedia\Rdbms\DatabaseMysqli::fetchRow()

Looks like this is known, fetchRow deprecated:

Release notes/1.39#Breaking changes in 1.39

The raw Individual Hit values still show, but chart display and any of the other lists fail on fetchRow().

I've used this extension for several years to get details and have quick traffic charts, so sad to see this finally dying. (Yes, I know it is unmaintained.) Hoopid (talk) 15:36, 9 October 2023 (UTC)Reply