Extension talk:Nuke

About this board

previous talk on this page

Cocopuff2018 (talkcontribs)

how do i fix this error it happens when i try to block a user from the wiki?

[ZG6QLuX5ow6G@Z@RqZ-gqwAAAAI] /index.php/Special:Block/Wiskyonthebayou Error: Call to undefined method MediaWiki\Block\DatabaseBlock::getTarget()


from /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/DiscordNotifications/DiscordNotificationsCore.php(410)

#0 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(338): DiscordNotificationsCore::onDiscordUserBlocked(MediaWiki\Block\DatabaseBlock, User, NULL)

#1 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)

#2 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookRunner.php(1039): MediaWiki\HookContainer\HookContainer->run(string, array)

#3 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/block/BlockUser.php(604): MediaWiki\HookContainer\HookRunner->onBlockIpComplete(MediaWiki\Block\DatabaseBlock, User, NULL)

#4 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/block/BlockUser.php(532): MediaWiki\Block\BlockUser->placeBlockInternal(boolean)

#5 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/block/BlockUser.php(466): MediaWiki\Block\BlockUser->placeBlockUnsafe(boolean)

#6 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/specials/SpecialBlock.php(922): MediaWiki\Block\BlockUser->placeBlock(boolean)

#7 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/specials/SpecialBlock.php(1036): SpecialBlock::processFormInternal(array, User, MediaWiki\Block\UserBlockCommandFactory, MediaWiki\Block\BlockUtils)

#8 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/htmlform/HTMLForm.php(725): SpecialBlock->onSubmit(array, OOUIHTMLForm)

#9 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/htmlform/HTMLForm.php(615): HTMLForm->trySubmit()

#10 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/htmlform/HTMLForm.php(631): HTMLForm->tryAuthorizedSubmit()

#11 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/specialpage/FormSpecialPage.php(209): HTMLForm->show()

#12 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/specialpage/SpecialPage.php(701): FormSpecialPage->execute(string)

#13 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(string)

#14 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)

#15 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(904): MediaWiki->performRequest()

#16 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(562): MediaWiki->main()

#17 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(50): MediaWiki->run()

#18 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(46): wfIndexMain()

#19 {main}

nuked pages are not moved to the archive table

1 (talkcontribs)

I nuked a few thousands pages in my wiki to clean up some spam vandalism and the pages haven't been moved to the archive table. The spam is still in the text and content tables, but there are no references to these records in the archive or revisions tables.

Running maintenance/deleteArchivedRevisions.php or maintenance/purgeOldText.php doesn't cleanup the database, and there is still activity attributed to the spam accounts, so I can't clean them up with maintenance/removeUnusedAccounts.php.

Does anyone know why this might have happened ? This is a wiki that began at 1.35, so I suspect that the changes to the database have something to do with it, but I'm really not sure.

Reply to "nuked pages are not moved to the archive table"

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"

How is "recent" defined?

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.

Return to "Nuke" page.