Jump to content

Topic on Extension talk:DeletePagesForGood/Archive 2

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()"