Wikipedia talk:WPCleaner

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Nuvola web broom.svg WPCleaner - 1.33 (May 21, 2014 (2014-05-21)) [±]

Nuvola web broom.svg WPCleaner

General information about WPCleaner

Gnome-help-faq.svg Discussion

Discuss the application

Gnome-tools-check-spelling.svg Typos

Suggestions for spelling and typography

Gnome-help-browser.svg Help · Book icon Book

Basic user manual

Gnome-system-software-installer.svg Installation

Install instructions

History of changes · Configuration (help, template) · Other wikis · Languages · Users · Screenshots

Nuvola web broom.svg
Dedicated user of WPCleaner.

To-do list for WPCleaner:

Things to do

Postit large.jpg

Random crashing while using Mac OS X Mavericks[edit]

Ever since I used Mavericks, WP Cleaner occasionally crashes itself. When it crashes, it is unpredictable and displays the usual "This application crashed and the crash report is automatically sent to Apple." Johnny Au (talk/contributions) 04:57, 18 January 2014 (UTC) Here it is in detail:

Johnny Au (talk/contributions) 03:16, 19 January 2014 (UTC)

Err might want to consider putting that giant dump in a {{collapse}} template. :D Also I'm not sure how active Nico is on the English wiki, you might have better luck on the French wiki. (Don't worry you won't have to type in French :P) Usb10 plug me in 02:18, 22 January 2014 (UTC)
I collapsed the code. Johnny Au (talk/contributions) 02:56, 22 January 2014 (UTC)
It's not going to be easy to diagnose this crash, I don't have any computer with Mac OS X on it. It looks like a specific problem for Mac OS X. --NicoV (Talk on frwiki) 12:19, 24 January 2014 (UTC)
Hi Nico, that error is at my Mac OS X Maverikcs too. Near every "get descripction" on "External links without description" kill the app. --Frettie (talk) 21:54, 28 January 2014 (UTC)
Hi Johnny Au, Frettie. I looked at the dump, and I didn't see anything that could give me an idea on where the problem could be. Are you able to display the Java console with logging and tracing (,, ? If so, when WPCleaner crashes, do you still see the console ? If you can still see it, I can try adding logs to narrow down the problem. --NicoV (Talk on frwiki) 16:48, 11 February 2014 (UTC)
I have enabled the Java console to be displayed. Johnny Au (talk/contributions) 17:04, 11 February 2014 (UTC)
Update: When WPCleaner crashes, the Java console is not there. Johnny Au (talk/contributions) 03:02, 14 February 2014 (UTC)

Johnny Au, Frettie. I've added the ability to log messages into a file in the last version. Could you go in WPCleaner options window, and activate the last 2 checkboxes in the debug tab (log file and detailed log), then quit and restart WPCleaner ? A file named WPCleaner.log should be created in the system temporary directory (I don't know where it is on Mac...). I've added a few logs for the "Add description..." action on "External links without description", so if it crashes during this action, I hope to have more info in the log file. --NicoV (Talk on frwiki) 17:48, 17 February 2014 (UTC)

The WPCleaner.log file is not created, even with those enabled. However, Apple saves all the crash logs. Johnny Au (talk/contributions) 03:45, 20 February 2014 (UTC)

Scaling on high DPI screens[edit]

I am a new user to WPCleaner, and there is a problem with scaling on high-res screens (objects are too small). Could this be looked into? -download ׀ talk 04:23, 26 January 2014 (UTC)

Hi Download, is it only the fonts that are too small or also other things ? For fonts, you have an option to increase the size of the fonts. --NicoV (Talk on frwiki) 08:32, 27 January 2014 (UTC)
Ah, thanks for that. It looks a lot better now - but one thing to note is that the message at the bottom is not affected by the font settings. -download ׀ talk 08:45, 27 January 2014 (UTC)
FYI... If the WMF have their way, all articles will be 700px wide. It already in beta. Enjoy Wikipedia on your high DPI screen while you can. Bgwhite (talk) 09:07, 27 January 2014 (UTC)

CHECKWIKI #94 (2014-04-15)[edit]

WPCleaner is recognizing this as a #94: <ref name="First Vienna FC » Dates & results 2013/2014">{{cite web|title=First Vienna FC » Dates & results 2013/2014|url=|publisher=World Football|accessdate=31 January 2014}}</ref></nowiki>

But Wikipedia does not think it is a problem. See my sandbox. (tJosve05a (c) 00:20, 15 April 2014 (UTC)

Josve05a "»" is a quote and I would not use it as an arrow. I'll replace it. -- Magioladitis (talk) 05:11, 15 April 2014 (UTC)
Ok, I have to understand how MW parses attributes with various quotes... --NicoV (Talk on frwiki) 06:16, 15 April 2014 (UTC)
Tests: [e94 1] · [1] · [2] · [3]
--NicoV (Talk on frwiki) 14:24, 15 April 2014 (UTC)
  1. ^ "First Vienna FC » Dates & results 2013/2014". World Football. Retrieved 31 January 2014. 
  1. ^ "First Vienna FC » Dates & results 2013/2014". World Football. Retrieved 31 January 2014. 
  2. ^ "First Vienna FC » Dates & results 2013/2014". World Football. Retrieved 31 January 2014. 
  3. ^ "First Vienna FC » Dates & results 2013/2014". World Football. Retrieved 31 January 2014. 

Yes, it's a new thing. They broke something and Wikipedia does not shout for problems on unclosed ref tags. Not our problem. We should fix them. -- Magioladitis (talk) 17:46, 11 July 2014 (UTC)

New error?[edit]

I think that WPCleaner should warn for any of these and suggest changes. E.g. If an article has {{DEFAULTSORT|Center For Transportation And Logistics Neuer Adler}} it should suggest changing the | to a :. (tJosve05a (c) 19:08, 16 April 2014 (UTC)

And changing {{pagename}} to {{subst:PAGENAME}}. (tJosve05a (c) 19:13, 16 April 2014 (UTC)
About 1000 transclusions of the latter. I started fixing them. -- Magioladitis (talk) 09:07, 5 May 2014 (UTC)
Josve05a, where do I get the list of templates that are used instead of a magic word ?
  • Should I use a internal list of magic words (defaultsort, ...) and detect usage of templates with the same name (eventually case insensitive) ? But then, what happens if a wiki has really defined a template with a name equal to a magic word ?
  • Should I add a parameter to define which templates are to be detected ?
What should be the suggestion ? Substing the template or replacing it directly by the magic word ?
Bgwhite, should we add this to CW ?
--NicoV (Talk on frwiki) 09:33, 23 May 2014 (UTC)

These things are tracked already by Category:Pages which use a template in place of a magic word. -- Magioladitis (talk) 10:09, 23 May 2014 (UTC)

You're right, I should have thought about it before asking to add it on CW... --NicoV (Talk on frwiki) 11:35, 23 May 2014 (UTC)

Error xx sometimes takes two runs to fix completely[edit]

Check edit history. -- Magioladitis (talk) 10:13, 1 July 2014 (UTC)

CHECKWIKI error 16 in categories[edit]

Maybe you could do this? And this? -- Magioladitis (talk) 11:33, 5 July 2014 (UTC)

Magioladitis, not sure I understand, WPCleaner is already supposed to do this. I checked on the previous version of the pages that the LRM is detected and that WPCleaner suggest to remove it. I haven't checked if it's done automatically when opening an article with this problem, but it should. NicoV (Talk on frwiki) 12:37, 5 July 2014 (UTC)
NicoV it is not. Maybe same problem with AWB. Also AWB fails in bot mode for these. -- Magioladitis (talk) 12:49, 5 July 2014 (UTC)
It happened once with me when I was using WPC, I had already stopped using that mode, didn't knew that it would still exist. OccultZone (TalkContributionsLog) 13:01, 5 July 2014 (UTC)
OccultZone, would you have an example? Depending on what characters are surrounding the control character, WPCleaner doesn't fix it on purpose. --NicoV (Talk on frwiki) 13:10, 5 July 2014 (UTC)
I can't, it was when I had about 89,000-90,000 edits, that edit was like this bit. Going by its view, certainly we cannot make or accept any changes that have "no effect" on page or "they don't change the face" of page. OccultZone (TalkContributionsLog) 13:17, 5 July 2014 (UTC)
Well, that edit is completely OK, and I think it's OK to do it by bot even if there's no visual difference, because it's very difficult for a regular editor to find the extra control characters. NicoV (Talk on frwiki) 13:20, 5 July 2014 (UTC)
Yes that's a technical thought, but people are usually opposed to it. Far different edits than these have been opposed, even if they are made with bot. But I hope you will find a solution. You can try AWB anytime and if there is any type of concern you can simply link to this post. OccultZone (TalkContributionsLog) 13:38, 5 July 2014 (UTC)

NicoV if the only change is invisible character removal then AWB fails to save in bot mode. Now we know it occurs in WPCleaner too(?). -- Magioladitis (talk) 13:05, 5 July 2014 (UTC)

Magioladitis, It's strange, I've just tested it in bot mode, and it works. NicoV (Talk on frwiki) 13:09, 5 July 2014 (UTC)
NicoV do you have a bot account in AWB? I wonder if this works for you with AWB too. Then it will have something to do with my computer. -- Magioladitis (talk) 13:10, 5 July 2014 (UTC)
Magioladitis, I don't have any account authorized for AWB, but if you want me to test something, just tell me what I should do. I use my NicoVTest account for this kind of things usually. --NicoV (Talk on frwiki) 13:15, 5 July 2014 (UTC)

There is a small chance that the page was not fixed because it was not in the list of the loaded pages. I'll keep an eye on the matter. -- Magioladitis (talk) 13:56, 5 July 2014 (UTC)

CHECKWIKI #16 (2014-07-06)[edit]

Here are some suggestion WPCleaner can give when right-clicking on a Unicode-character:

  • Replace (U+2022 : BULLET) with * (U+002A : ASTERISK)
  • Replace (8U+F0FC : PRIVATE USE CHARACTER-F0FC) with
    • * (U+002A : ASTERISK)
    • (U+2713 : CHECK MARK)

@NicoV, Magioladitis: These are just two characters, but I will add more when I find them... (tJosve05a (c) 18:28, 6 July 2014 (UTC)

I am not willing to add any PUA characters in AWB's code. We skip pages with those characters. Moreover, I am not sure asterisk is a valid character either. -- Magioladitis (talk) 18:52, 6 July 2014 (UTC)

@Magioladitis: I'm not talking about automatic-changing, just as a suggestion if you right-click in WPCleaner. And what I was refering to whaen replacing with an asterisk, is that people as using those characters as a "list-bullet". (tJosve05a (c) 18:54, 6 July 2014 (UTC)

CHECKWIKI #10 (2014-07-06)[edit]

This was found on Børselv on svwiki.

Right now WPCleaner suggest to change [[kväner|kvänsk]t] with [[kväner|kvänsk]].

It should also suggest [[kväner|kvänskt]]. (tJosve05a (c) 19:17, 6 July 2014 (UTC)

Waze configuration change[edit]


Hi, Nico,

You helped me about six weeks ago to get WPCleaner to support the Waze wiki. Thank you again.

We started trying to use it, but ran into some problems. I believe it relates to URL configuration. In Waze, all Wiki hooks are through /wiki/. This is unlike WP, where read actions are through /wiki/ but other actions are through /w/ instead. Waze always uses /wiki/, not /w/. For example, if we open a page, right-click, and choose history, the URL is wrong. It shows but the /w/ should be /wiki/. Is this configurable? Can WPCleaner query the Wiki directly for this configuration information?

Also, another error. Upon login, we get "An error occured: Login unsuccessful: Need Token - (long_hex_string)" But then, if we try a second time, there is no problem. Is there something we need to fix on our side?

(Note: it should be "An error occurred" with two r's. Do you want me to update the translation?)

- Qwaletee (talk) 16:29, 10 July 2014 (UTC)

Hi Qwaletee.
  • I've modified the /w URLs for Waze, it should be better now.
  • For the login problem, could you post WPCleaner logs (you have to display the Java console to see them) ?
  • I've fixed the spelling.
NicoV (Talk on frwiki) 19:59, 10 July 2014 (UTC)
Thanks, our admin is going to test and we'll get back to you. Qwaletee (talk) 03:45, 11 July 2014 (UTC)
Hi NicoV, thanks so much for the quick reply and fix on the URL. I installed the new version and the URL issue is indeed fixed. However our hope that the URL problem was causing the other issues does not seem to be the case. I still see the initial login error (takes two attempts to log in), and when I have a page on screen, I make changes, add my comment and when I go to save with the airplane I get the error "An error occurred: Error reported: notoken - The token parameter must be set". I just tried to enable the Java Console on my Chrome system. I don't see it in the system tray, so I guess I have to reboot. :( I always have too many things multitasking and never reboot. Will try later to get a dump. Maybe Qwaletee already has his on and can get you a trace you need from his side. Kentsmith9 (talk) 04:32, 11 July 2014 (UTC)


Hi Qwaletee and Kentsmith9. I've created an acount in waze wiki. I'm seeing the same problems.

I've to analyze the problem with the login, it may be causing the problem when saving, but not sure.

In the Java console, I've the following error when logging the second time: "tokens - Action 'edit' is not allowed for the current user". So apparently edit is not allowed, and this is probably the reason for not being able to save edits (the message "notoken - The token parameter must be set" simply tells that the edit token is not sent by WPCleaner when trying to save the page, which seems normal since the previous error message means that the edit token was not given to WPCleaner). Is editing through API allowed on Waze? The write API must be explicitly enabled in the wiki configuration.

--NicoV (Talk on frwiki) 18:39, 11 July 2014 (UTC)

I've checked what WPCleaner is doing for login, and I don't understand why Waze answers the way it does:
  • First, WPCleaner calls the login method
  • Waze answers normally saying that it requires a token (NeedToken)
    <login result="NeedToken" token="XXX..." cookieprefix="wikidb" sessionid="..." />
  • WPCleaner calls again the login method with the token
  • Waze answers agains saying that it requires a token (NeedToken). I don't understand why.
    <login result="NeedToken" token="YYY..." cookieprefix="wikidb" sessionid="..." />
--NicoV (Talk on frwiki) 18:52, 11 July 2014 (UTC)
I believe the login problem is due to WPCleaner not sending back the session cookie in the second call to the login method. When WPCleaner connects to wikipedia, this doesn't seem to be a problem, but it seems to be for waze... I have to see to set the cookies in the second call, or understand why it's a problem for waze. Do you know if anything in waze wiki configuration can explain this? --NicoV (Talk on frwiki) 20:04, 11 July 2014 (UTC)
I checked a few more things and, in my understanding, WPCleaner is doing the correct calls (cookies are correctly sent back). I have asked a question about this problem on I hope someone knowing how the API works will be able to help. --NicoV (Talk on frwiki) 22:16, 11 July 2014 (UTC)
Thanks so much for all this work and effort for us. I will pass this link to my contacts in Israel who manage the server and ask that they check out your question. The guy who does most of the server side Wiki work is on a special project currently, so it often takes him a while to get time slices to put to the Wiki. :-( Hopefully you will get some idea from the MediaWiki side until then. Kentsmith9 (talk) 02:10, 12 July 2014 (UTC)
In thinking about this more, I would not doubt that the write API setting you mentioned might be restricted to protect the Wiki since they did't expect any bots to be run on the data. But Qwaletee and I have some big plans for this baby as we keep growing beyond the tens of millions of users on Waze. Hopefully that is the issue and I can get it enabled at least for the external admins (us). Kentsmith9 (talk) 02:22, 12 July 2014 (UTC)


Hi Qwaletee and Kentsmith9. I've found a workaround to make login work on Waze wiki. Once this has been fixed, edits seem to work also (see my user page history).

Technically, I had to change the parameters of the library I'm using for HTTP connections (Apache Commons HttpClient) so that all cookies sent back to waze server are grouped in a single Cookie header, instead of the default way of sending each cookie in its own Cookie header. This is probably a configuration/script problem on the waze server, because it should be able to work correctly with cookies sent in different headers. Would it be possible for you to fix this on your side? I've released a version of WPCleaner that implements the workaround but I don't find it very satisfactory. --NicoV (Talk on frwiki) 15:54, 14 July 2014 (UTC)

NicoV, great news on the work around. I will ask the Waze server manager to see about that fix on their server. Once they confirm the fix I will let you know and you can remove the work around if you like. If past experience serves, it may take a while before they get to this. I hope the work around does not cause too much trouble for you (or any other Wiki). We look forward to using your tool on ours. Kentsmith9 (talk) 18:33, 14 July 2014 (UTC)
Hello, @NicoV, Kentsmith9:. This sounds like an Apache configuration problem, not a Wiki configuration problem. Kent, can we gain read-only access to the Apache and Wiki configuration files? It might help to compare them to a reference configuration. If we can't, perhaps we could at least get the ifles e-mailed to us. Qwaletee (talk) 15:24, 15 July 2014 (UTC)