Open-CSP / FlexForm

MediaWiki extensions : HTML5 Form renderer
https://www.mediawiki.org/wiki/Extension:FlexForm
5 stars 4 forks source link

`DBTransactionError` when editing a page using FlexForm #42

Closed marijnvanwezel closed 7 months ago

marijnvanwezel commented 8 months ago

Very rarely, I get the following error when I edit a page using FlexForm:

[4e31fda1c4ef073b98c61474] /index.php?title=Speciaal:FlexForm Wikimedia\Rdbms\DBTransactionError: Explicit transaction still active; a caller might have failed to call endAtomic() or cancelAtomic().

Backtrace:

from /var/www/x.wikibase.nl/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1732)
#0 /var/www/x.wikibase.nl/public_html/includes/libs/rdbms/lbfactory/LBFactory.php(414): Wikimedia\Rdbms\LoadBalancer->approvePrimaryChanges()
#1 /var/www/x.wikibase.nl/public_html/includes/MediaWiki.php(670): Wikimedia\Rdbms\LBFactory->commitPrimaryChanges()
#2 /var/www/x.wikibase.nl/public_html/includes/MediaWiki.php(640): MediaWiki::preOutputCommit()
#3 /var/www/x.wikibase.nl/public_html/includes/MediaWiki.php(917): MediaWiki->doPreOutputCommit()
#4 /var/www/x.wikibase.nl/public_html/includes/MediaWiki.php(562): MediaWiki->main()
#5 /var/www/x.wikibase.nl/public_html/index.php(50): MediaWiki->run()
#6 /var/www/x.wikibase.nl/public_html/index.php(46): wfIndexMain()
#7 {main}

With the following additional message printed at the top of the page:

FlexForm\Core\HandleResponse::exitResponse: got COMMIT while atomic sections MediaWiki\Storage\PageUpdater::doModify are still open
Designburo commented 7 months ago

That is unlikely to be related to FlexForm. MediaWiki throws this error, in MW 1.39.+, when it cannot finish its own processes. Disable FlexForm and do the things you want FlexForm to do manually and you will get the same error. I am closing this for now. If you have any updates on this that would point to FlexForm, just re-open it.