Topic on User talk:Paladox

Extension:DeletePagesForGood - Error

18
Summary by Paladox

Marking as resolved, fix in the patches described in this thread.

Sasazuka! (talkcontribs)

Hi, I've installed the Extension:DeletePagesForGood, but when I try to delete a page, it doesn't work. The error is

Warning: preg_split(): No ending delimiter ':' found in <SITE PATH>\extensions\DeletePagesForGood\ActionDeletePagePermanently.php on line 165

Exception encountered, of type "Error"

----

PHP 7.0.9

MediaWiki 1.27.1

Paladox (talkcontribs)
Paladox (talkcontribs)
Sasazuka! (talkcontribs)

Now I'm getting the error

Internal error

[238883a4ce388335357e7dab] 2016-09-25 22:58:22: Fatal exception of type "DBUnexpectedError"

Paladox (talkcontribs)
Paladox (talkcontribs)
Sasazuka! (talkcontribs)

[e0d818fd90271f519995febd] /site/index.php?title=DeletionTest&action=delete_page_permanently DBUnexpectedError from line 2668 of <site path> \includes\db\Database.php: MediaWiki::preOutputCommit: Flushing an explicit transaction, getting out of sync!

Backtrace:

#0 <site path> \includes\db\loadbalancer\LoadBalancer.php(1055): DatabaseBase->commit(string, string)

#1 <site path> \includes\db\loadbalancer\LBFactory.php(206): LoadBalancer->commitMasterChanges(string)

#2 <site path> \includes\db\loadbalancer\LBFactorySimple.php(154): LBFactory->{closure}(LoadBalancer, string, array)

#3 <site path> \includes\db\loadbalancer\LBFactory.php(208): LBFactorySimple->forEachLB(Closure, array)

#4 <site path> \includes\db\loadbalancer\LBFactory.php(250): LBFactory->forEachLBCallMethod(string, array)

#5 <site path> \includes\MediaWiki.php(560): LBFactory->commitMasterChanges(string, array)

#6 <site path> \includes\MediaWiki.php(539): MediaWiki::preOutputCommit(RequestContext)

#7 <site path> \includes\MediaWiki.php(750): MediaWiki->doPreOutputCommit()

#8 <site path> \includes\MediaWiki.php(519): MediaWiki->main()

#9 <site path> \index.php(43): MediaWiki->run()

#10 {main}

Sasazuka! (talkcontribs)

And I have an another question - is it possible to permanently delete a single edit from the history (e.g. a vandal one), because the only way to do this now is to hide it with the RevisionDelete thing; when I want to delete it from the db?

Paladox (talkcontribs)

I'm not sure about the edit thing but the db that looks like changes in mediawiki core, I know someone who does the mw db I can ask him for help with this.

Sasazuka! (talkcontribs)

Yeah, it would be great; an extension like Delete Revision for Good ; maybe in the future.

Paladox (talkcontribs)
Sasazuka! (talkcontribs)

[a9f6a78146dcbf0085a96a0c] /site/index.php?title=DeletionTest&action=delete_page_permanently DBUnexpectedError from line 2658 of <site path> \includes\db\Database.php: Got COMMIT while atomic sections ActionDeletePagePermanently::deletePermanently are still open

Backtrace:

#0 <site path> \includes\db\loadbalancer\LoadBalancer.php(1055): DatabaseBase->commit(string, string)

#1 <site path> \includes\db\loadbalancer\LBFactory.php(206): LoadBalancer->commitMasterChanges(string)

#2 <site path> \includes\db\loadbalancer\LBFactorySimple.php(154): LBFactory->{closure}(LoadBalancer, string, array)

#3 <site path> \includes\db\loadbalancer\LBFactory.php(208): LBFactorySimple->forEachLB(Closure, array)

#4 <site path> \includes\db\loadbalancer\LBFactory.php(250): LBFactory->forEachLBCallMethod(string, array)

#5 <site path> \includes\MediaWiki.php(560): LBFactory->commitMasterChanges(string, array)

#6 <site path> \includes\MediaWiki.php(539): MediaWiki::preOutputCommit(RequestContext)

#7 <site path> \includes\MediaWiki.php(750): MediaWiki->doPreOutputCommit()

#8 <site path> \includes\MediaWiki.php(519): MediaWiki->main()

#9 <site path> \index.php(43): MediaWiki->run()

#10 {main}

Paladox (talkcontribs)
Sasazuka! (talkcontribs)

It works, thanks!

Paladox (talkcontribs)

Oh, thanks for trying my fixes. I will get them merged tomarror :)

did it delete the page?

just wondering to make sure the fix did not have any unexpected changes that stopped it from deleting pages

Sasazuka! (talkcontribs)

Just deleted several pages and got no errors, so I guess, it's ok.

Paladox (talkcontribs)

OK thanks I'm merging the patches now. And will backport them to the REL1_27 branch :)

Paladox (talkcontribs)

I've backported it to the REL1_27 branch now.