Jump to content

Extension talk:DeletePagesForGood

About this board

Previous discussion was archived at Extension talk:DeletePagesForGood/Archive 1 on 2016-01-19.

Use of wfGetDB was deprecated in MediaWiki 1.39

1
184.82.247.9 (talkcontribs)

Hello! Thanks for a useful extension, however, I got a little annoying bug, while using it on my Mediawiki 1.4. I get this message when I tired to delete a page:

Deprecated: Use of wfGetDB was deprecated in MediaWiki 1.39. [Called from ActionDeletePagePermanently::deletePermanently in /.../extensions/DeletePagesForGood/ActionDeletePagePermanently.php at line 92] in /.../includes/debug/MWDebug.php on line 379

Reply to "Use of wfGetDB was deprecated in MediaWiki 1.39"

Call to undefined method OldLocalFile::selectFields()

1
Another Series (talkcontribs)

I tried to delete a file/an image using the 1.42.1 branch and later the master branch of this extension and the lines below are what i got:

[63390a50cbc206f2cf982baa] /another/index.php?title=File:Emblem_of_ISJAC.png&action=delete_page_permanently Error: Call to undefined method OldLocalFile::selectFields()

Backtrace:

from E:\XAMPP\htdocs\another\extensions\DeletePagesForGood\ActionDeletePagePermanently.php(273)

#0 E:\XAMPP\htdocs\another\extensions\DeletePagesForGood\ActionDeletePagePermanently.php(74): ActionDeletePagePermanently->deletePermanently(MediaWiki\Title\Title)

#1 [internal function]: ActionDeletePagePermanently->onSubmit(array, MediaWiki\HTMLForm\OOUIHTMLForm)

#2 E:\XAMPP\htdocs\another\includes\htmlform\HTMLForm.php(793): call_user_func(array, array, MediaWiki\HTMLForm\OOUIHTMLForm)

#3 E:\XAMPP\htdocs\another\includes\htmlform\HTMLForm.php(674): MediaWiki\HTMLForm\HTMLForm->trySubmit()

#4 E:\XAMPP\htdocs\another\includes\htmlform\HTMLForm.php(690): MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()

#5 E:\XAMPP\htdocs\another\includes\actions\FormAction.php(162): MediaWiki\HTMLForm\HTMLForm->show()

#6 E:\XAMPP\htdocs\another\includes\actions\ActionEntryPoint.php(733): FormAction->show()

#7 E:\XAMPP\htdocs\another\includes\actions\ActionEntryPoint.php(510): MediaWiki\Actions\ActionEntryPoint->performAction(ImagePage, MediaWiki\Title\Title)

#8 E:\XAMPP\htdocs\another\includes\actions\ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()

#9 E:\XAMPP\htdocs\another\includes\MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()

#10 E:\XAMPP\htdocs\another\index.php(58): MediaWiki\MediaWikiEntryPoint->run()

#11 {main}  

I know nothing about php or sql and I would like to thank anyone who can find an equivalent alternative for the code below,which was found in ActionDeletePagePermanently.php(line 273)

$fields = OldLocalFile::selectFields();

Reply to "Call to undefined method OldLocalFile::selectFields()"
Summary by Seb35

Similar question than Not working since upgrading to 1.35, and the problem is now solved.

Gota de agua (talkcontribs)

i test this extension in mediawiki 1.36 but the problem is the next:

Error de la base de datos Se ha producido un error en la consulta a la base de datos. Esto puede indicar un fallo en el software. [3102752f71c5e2193d32f7bb] 2021-06-20 06:59:10: Excepción grave de tipo "Wikimedia\Rdbms\DBQueryError"

¿any solution?

Gota de agua (talkcontribs)

who know any extension similar to this?

Seb35 (talkcontribs)

There is Extension:Nuke with a different use case, but if the underlying question is "a working extension" then DeletePagesForGood now works since phabricator:T220884 is solved. You have to use the branch master (when you use Git or when you download it).

Not working since upgrading to 1.35

5
Summary by Seb35

Solved. You have to use the branch master (when you use Git or when you download it).

Cojoilustrado (talkcontribs)

Except for that bug where sometimes extension doesn't work when page has categories or text, this was working fine until upgrade. Updated the database several times without errors but that didn't work. Here's what I'm getting.

[X6OycVcDvIsIZ-OIJWQc8QAAAE0] /index.php?title=Categor%C3%ADa:Discos_de_m%C3%BAsica_Fusi%C3%B3n_folcl%C3%B3rica&action=delete_page_permanently Wikimedia\Rdbms\DBQueryError from line 1699 of /home/perm/mockup.org/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1054: Unknown column 'rev_text_id' in 'field list' (mysql.mockup.org) Function: Wikimedia\Rdbms\Database::select Query: SELECT rev_text_id FROM `venci_revision` WHERE rev_page=16603 Backtrace:

  1. 0 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
  2. 1 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
  3. 2 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
  4. 3 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
  5. 4 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(string, string, string)
  6. 5 /home/perm/mockup.org/wiki/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)
  7. 6 /home/perm/mockup.org/wiki/extensions/DeletePagesForGood/ActionDeletePagePermanently.php(104): Wikimedia\Rdbms\DBConnRef->select(string, string, string)
  8. 7 /home/perm/mockup.org/wiki/extensions/DeletePagesForGood/ActionDeletePagePermanently.php(55): ActionDeletePagePermanently->deletePermanently(Title)
  9. 8 /home/perm/mockup.org/wiki/includes/htmlform/HTMLForm.php(707): ActionDeletePagePermanently->onSubmit(array, OOUIHTMLForm)
  10. 9 /home/perm/mockup.org/wiki/includes/htmlform/HTMLForm.php(597): HTMLForm->trySubmit()
  11. 10 /home/perm/mockup.org/wiki/includes/htmlform/HTMLForm.php(613): HTMLForm->tryAuthorizedSubmit()
  12. 11 /home/perm/mockup.org/wiki/includes/actions/FormAction.php(160): HTMLForm->show()
  13. 12 /home/perm/mockup.org/wiki/includes/MediaWiki.php(527): FormAction->show()
  14. 13 /home/perm/mockup.org/wiki/includes/MediaWiki.php(313): MediaWiki->performAction(CategoryTreeCategoryPage, Title)
  15. 14 /home/perm/mockup.org/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
  16. 15 /home/perm/mockup.org/wiki/includes/MediaWiki.php(543): MediaWiki->main()
  17. 16 /home/perm/mockup.org/wiki/index.php(53): MediaWiki->run()
  18. 17 /home/perm/mockup.org/wiki/index.php(46): wfIndexMain()
  19. 18 {main}
Ammarpad (talkcontribs)

It seems the extension is not compatible with MW 1.35. You have to look for alternative.

Cojoilustrado (talkcontribs)

Thanks! I'll look into it. This thing was awesome.

Gota de agua (talkcontribs)

exist an a alternative of this extension?

Seb35 (talkcontribs)

Namespaces NS_IMAGE and NS_IMAGE_TALK Error

2
Summary by FunkyBeats99

Inexistant namespaces were removed from the config explanation on Extension page

FunkyBeats99 (talkcontribs)

Are those namespaces really correct ? Can't find them on the Meta-Wiki page and it creates an error on my wiki.

Taavi (talkcontribs)

Extension cannot delete pages in categories

2
Ugng (talkcontribs)

Any time I try to perma-delete a page that is in a category, it throws a "Wikimedia\Rdbms\DBUnexpectedError" exception. Possibly because the extension does not remove category associations for the page (?).

This is also most likely the cause of the problem many others are having, where certain pages work but others don't (see below).

Temporary work-around: manually remove all Category tags from the page before perma-deleting it.

Cojoilustrado (talkcontribs)

This happened to me because I was using a semantic mediawiki template in those pages I wanted to delete. I deleted the template and the problem went away. The template had a bunch of parser functions , so my guess is that was what it was Mark 02:50, 27 July 2019 (UTC)

Reply to "Extension cannot delete pages in categories"
Aka sektor (talkcontribs)

When I try delete page, that write me error:

[b890fc3456e647424de6b01f] 2017-08-08 11:20:50: Неустранимое исключение типа «Wikimedia\Rdbms\DBUnexpectedError»

Aka sektor (talkcontribs)

Read this: Topic:Tsu2kurqbgwrm544

There was a similar error.

Tried to run update.php, and try delete page. It's work.

However, before that, I deleted the category from the page.

Zer00CooL (talkcontribs)

Do not work for me anymore. Under shared server I can not use update.php I do not have shell console.

It's not really true. The extension works with 1.29.1 (tested) but does not work with content coming from 1.28.x

However, I updated the tables during the last update.

I updated the tables during the installation of version 1.29.1 but the extension DeletePagesForGood does not work.

On my debian server I tested update, without improvement.

On my local Debian server, however, I notice that, if indeed, I can not delete existing pages ...

I can create a new page, and destroy the new page created with the extension DeletePagesForGood.

I'm doing a deleteOldRevision.php to delete all the logs and save space in the database.

I test a "GOODBYE" page that refuses to be deleted with the extension DeletePagesForGood. I delete it normally. I recreate it. I can then delete it with the extension DeletePagesForGood. ( Delete / create / delete with DeletePagesForGood work for me. )

Zer00CooL (talkcontribs)
Paladox (talkcontribs)

You can run the update.php script through mw-config (web ui)

<wiki>/mw-config/

80.11.252.19 (talkcontribs)

I don't have the file update.php in the folder /mw-config/

Paladox (talkcontribs)

Nope but it is the online updated for when you cannot run commands or ssh in.

Database error in MW version 1.31

2
93.188.32.252 (talkcontribs)

I unpacked this extension and run update.php in the folder "maintenance". But when I tried to delete a page I received exception "Wikimedia\Rdbms\DBUnexpectedError". Is it possible to fix this problem?

莫如 (talkcontribs)

I have the same problem on some pages but not all. Mine is also MW 1.31.

[23a349443279e368cc3e0372] 2018-11-30 15:32:10: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"


I did patch manually with https://gerrit.wikimedia.org/r/#/c/268902/


but it still fails on some pages.


Reply to "Database error in MW version 1.31"
Summary by PlavorSeol

Moved to Phabricator

PlavorSeol (talkcontribs)

When I try to delete page, it shows following error:

[900c19c0bc56df073fc35bae] /plavorexitbeta/index.php?title=User:PlavorSeol/Test&action=delete_page_permanently Wikimedia\Rdbms\DBQueryError from line 1443 of C:\inetpub\wwwroot\plavorexitbeta\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 

Query: DELETE FROM searchindex WHERE si_page = '177'

Function: ActionDeletePagePermanently::deletePermanently

Error: 1 no such column: si_page

Backtrace:

#0 C:\inetpub\wwwroot\plavorexitbeta\includes\libs\rdbms\database\Database.php(1413): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 C:\inetpub\wwwroot\plavorexitbeta\includes\libs\rdbms\database\Database.php(1186): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 C:\inetpub\wwwroot\plavorexitbeta\includes\libs\rdbms\database\Database.php(2887): Wikimedia\Rdbms\Database->query(string, string)

#3 C:\inetpub\wwwroot\plavorexitbeta\extensions\DeletePagesForGood\ActionDeletePagePermanently.php(86): Wikimedia\Rdbms\Database->delete(string, string, string)

#4 C:\inetpub\wwwroot\plavorexitbeta\extensions\DeletePagesForGood\ActionDeletePagePermanently.php(53): ActionDeletePagePermanently->deletePermanently(Title)

#5 C:\inetpub\wwwroot\plavorexitbeta\includes\htmlform\HTMLForm.php(662): ActionDeletePagePermanently->onSubmit(array, OOUIHTMLForm)

#6 C:\inetpub\wwwroot\plavorexitbeta\includes\htmlform\HTMLForm.php(554): HTMLForm->trySubmit()

#7 C:\inetpub\wwwroot\plavorexitbeta\includes\htmlform\HTMLForm.php(569): HTMLForm->tryAuthorizedSubmit()

#8 C:\inetpub\wwwroot\plavorexitbeta\includes\actions\FormAction.php(143): HTMLForm->show()

#9 C:\inetpub\wwwroot\plavorexitbeta\includes\MediaWiki.php(500): FormAction->show()

#10 C:\inetpub\wwwroot\plavorexitbeta\includes\MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#11 C:\inetpub\wwwroot\plavorexitbeta\includes\MediaWiki.php(867): MediaWiki->performRequest()

#12 C:\inetpub\wwwroot\plavorexitbeta\includes\MediaWiki.php(524): MediaWiki->main()

#13 C:\inetpub\wwwroot\plavorexitbeta\index.php(42): MediaWiki->run()

#14 {main}

Of course I ran update.php