Extension talk:Nuke

Jump to navigation Jump to search

About this board

previous talk on this page

Allow nuke to delete older pages

Guiwald (talkcontribs)

Hello, I would like to use Nuke to delete old pages. How can I modify it to be able to delete older pages?

G.Hagedorn (talkcontribs)

If you have access to LocalSettings, you can change the duration in which recentchanges are recorded to an arbitrary timespan. We repeatedly set it to over a year, then run the rebuildrecentchanges php script, and the desired articles were available to Nuke.

Diomidis Spinellis (talkcontribs)

Specifically in LocalSettings.php set

// Two years
$wgRCMaxAge = 2 * 365 * 24 * 60 * 60;

and run

php maintenance/rebuildrecentchanges.php

Then reset wgRCMaxAge and rerun rebuildrecentchanges.php.

To avoid having a list of thousands of deleted pages you might want to set wgRCMaxAge to 0, run maintenance/rebuildrecentchanges.php and then remove the setting. The list of recent pages will then start from empty.

Reply to "Allow nuke to delete older pages"
NGC 54 (talkcontribs)

Does a "MassRollback" extension exists?

Reply to "MassRollback"
Michael Chidester (talkcontribs)

I have a private wiki and I need to delete every page created by a certain bot. This is on the order of 10^5 pages created over the past five years, only a few thousand of which are edited by the bot in a given month. Is there a way to extend the Nuke threshold to include an arbitrarily long time period like this?

~ Michael Chidester (Contact) 20:55, 29 November 2018 (UTC)

Treebytron (talkcontribs)

same question here... We have tons of spam pages but none of them are showing up, would be helpful to be able to specify dates or search all dates... thanks!

Vapblack (talkcontribs)

same question here. I'd like to delete pages that I didn't notice years ago from certain spam accounts. Is there a way to just delete everything by a user?

Lemmmy (talkcontribs)

me 2

Reply to "How is "recent" defined?"
2600:387:5:805:0:0:0:6B (talkcontribs)
Kghbln (talkcontribs)

People thought it was funny at the time it was created I guess. Anyhow, what's in a name? That which we call a rose by any other name would smell as sweet.

Reply to "name"

Feature request: option to query on content, not just title

Justinacolmena (talkcontribs)

I have installed and used the extension "Nuke," but there are more pages I would like to delete on a full text search query, not just the title. This is line 277 from extensions/Nuke/includes/SpecialNuke.php in MediaWiki 1.34

$where[] = 'rc_title LIKE ' . $dbr->addQuotes( $pattern );

where the LIKE clause of the SELECT query is built, to delete articles based on SQL patterns in the title.

I would want an added option to do a full text search on article contents for mass deletion, as well.

I can enter certain terms in the main search box of the wiki, and find a large number of articles I want to delete, as well.

Any suggestions?

Reply to "Feature request: option to query on content, not just title"

What do you put in the fields?

Summary by Seb35
DaveLeach (talkcontribs)

How do you USE "Nuke"? What do you enter in the fields "Username, IP address or blank" <> "Pattern for the page name" <> "Limit to namespace" <> "maximum number of pages"?

All I find in any explanations anywhere are a list of the fields, as if the names of the fields alone are enough information to inform stupid people like me what to put in them! I tried a few wild guesses but nothing happened.

On the other hand, in some instructions I find code you are supposed to enter somewhere, but they never say where. Am I supposed to enter it in a php file? Am I supposed to try it in some command line somewhere - I saw an article about command lines but couldn't figure out how to get there or how to use it. I tried putting some of those codes in the above fields, but nothing happened.

Is there a help place somewhere more focused on explaining ALL the steps one must take?

Seb35 (talkcontribs)

I added a help page Help:Extension:Nuke. I edited it with various details I found in the code and reading comments on this talk page. Feel free to still improve it yourself, or say if some things are missing.

version (Version 1.1.7) not working with wediawiki 1.16.5

Summary by Seb35

Issue with versions.

Raako71 (talkcontribs)
Raako71 (talkcontribs)

I have tried to install a newer version of nuke, either 1.1.7 or 1.1.6 from tags and it comes up with server error on my browser. Nuke comes up in the verson page as 1.1.7 or 1.1.6, and also appears in special pages, but dosent work from there.

I can get an old version to work, but I cant select a bunch of users easily, and there seem to be hundreds of spam users...

anyway here's the current *working* version of Special:Nuke

What if 'mass delete' does not show on Special:Special pages?

Summary by Seb35

Usage issue. Answered.

Astraeasweb (talkcontribs)

I finally had to ask for the entire wiki I was working on to be deleted and re-created. I went in and installed ConfirmEdit, and found also that Nuke was still present from the old install so I put a link to that in LocalSettings.php also; It says that after it is installed and the link put in, you should see "Mass delete" in Special Pages. I don't see it. I have reloaded the page and I am logged in. What should I do?

This post was posted by Astraeasweb, but signed as Astraea.

Jeroen De Dauw (talkcontribs)

It shows for me as "Mass delete" under "Page tools". If it does not show for you, you probably do not have the rights to use the page. Just got to Special:Nuke to confirm if this is the case.

fatal error undefined getUsers()

Summary by Seb35

Inconsistent versions between MediaWiki and the extension Nuke. (talkcontribs)

I'am using mediawiki ver 1.16.4, I just downloaded Nuke and put it into my extensions/ folder but when I go to the special page "Special:Nuke" get the following error:

Fatal error: Call to undefined method SpecialNuke::getUser() in $IP/extensions/Nuke/Nuke_body.php on line 10 (talkcontribs)

me too (talkcontribs) (talkcontribs)

Dowmloaded latest snapshot and Localization, and error is still the same. Running on a Windows implementation. Call to undefined method SpecialNuke::getUser()

Bawolff (talkcontribs)

Sounds like you have too old a version of MediaWiki. Try using either a newer version of MediaWiki (Specificly, the getUser method was introduced in MediaWiki 1.18) or using an older version of the nuke extension.

Jeroen De Dauw (talkcontribs)

Yes, that indeed is the issue - if you're using MW 1.16.x and cannot upgrade, use Nuke 1.1.1. Compatibility between Nuke releases and versions of MediaWiki can be seen in the factbox of the Nuke extension page.

2001:D30:101:1:0:0:0:5 (talkcontribs)

How can we download the old Nuke 1.1.1 ? Sorry for the newbiness, but I'm confused with the git repository.

Johnywhy (talkcontribs)

I don't see steps to delete multiple pages simply by listing their full page-names.

Just use commas?

Portal:MyPage, Template:MyTemplate, Gorillas
Moscowdreams (talkcontribs)

I think you need one of the other extensions listed on the main page, like batch delete

Seb35 (talkcontribs)