Page MenuHomePhabricator

Board election SecurePoll type fails with exception on creation
Closed, ResolvedPublic

Description

When creating a securePoll election on voteWiki using the Board Election setting (almost all wikis) the creation fails with a blank page saying 'Exception encountered, of type "BadMethodCallException"'. This election setting worked earlier during acceptance testing.

[The actual 'all wikis' election still fails with a db error given connection issues to some of the labs dbs on all.dblist, which is why the board election setting was used]

Event Timeline

Jalexander raised the priority of this task from to High.
Jalexander updated the task description. (Show Details)
Jalexander added subscribers: Jalexander, Deskana.

Is there some election taking place soon? Wondering how time-critical fixing this is (plus not sure who looks at SecurePoll code or its bug reports).

Anomie set Security to None.
Anomie subscribed.

Stack trace:

Exception encountered, of type "BadMethodCallException"
[1681fee7] /wiki/Special:SecurePoll/create BadMethodCallException from line 425 of /srv/mediawiki/php-1.25wmf17/extensions/SecurePoll/includes/pages/CreatePage.php: Call to a member function getId() on a non-object (boolean)
Backtrace:
#0 /srv/mediawiki/php-1.25wmf17/includes/htmlform/HTMLForm.php(544): SecurePoll_CreatePage->processInput(array, HTMLForm)
#1 /srv/mediawiki/php-1.25wmf17/includes/htmlform/HTMLForm.php(467): HTMLForm->trySubmit()
#2 /srv/mediawiki/php-1.25wmf17/extensions/SecurePoll/includes/pages/CreatePage.php(346): HTMLForm->tryAuthorizedSubmit()
#3 /srv/mediawiki/php-1.25wmf17/extensions/SecurePoll/includes/main/Base.php(68): SecurePoll_CreatePage->execute(array)
#4 /srv/mediawiki/php-1.25wmf17/includes/specialpage/SpecialPage.php(383): SecurePoll_BasePage->execute(string)
#5 /srv/mediawiki/php-1.25wmf17/includes/specialpage/SpecialPageFactory.php(581): SpecialPage->run(string)
#6 /srv/mediawiki/php-1.25wmf17/includes/MediaWiki.php(270): SpecialPageFactory::executePath(Title, RequestContext)
#7 /srv/mediawiki/php-1.25wmf17/includes/MediaWiki.php(560): MediaWiki->performRequest()
#8 /srv/mediawiki/php-1.25wmf17/includes/MediaWiki.php(424): MediaWiki->main()
#9 /srv/mediawiki/php-1.25wmf17/index.php(46): MediaWiki->run()
#10 /srv/mediawiki/w/index.php(3): include(string)
#11 {main}
gerritbot subscribed.

Change 191110 had a related patch set uploaded (by Anomie):
Fix handling of dblists for poll creation

https://gerrit.wikimedia.org/r/191110

Patch-For-Review

Could anomie's patch in Gerrit (14 lines) please get a review?

Change 191110 merged by jenkins-bot:
Fix handling of dblists for poll creation

https://gerrit.wikimedia.org/r/191110

Legoktm moved this task from Needs Review/Feedback to Done on the MediaWiki-Core-Team board.
Legoktm subscribed.