Steps to replicate the issue (include links if applicable):
- on your localhost wiki...
$wgSecurePollUseNamespace = true;
- make sure you are using 1 mariadb server, not 2
- give yourself election admin
- Visit Special:SecurePoll/create
- Create a poll
What happens?:
- PHP TypeError
[2437ea5fae22cb9cb5c640a8] /wiki/Special:SecurePoll/create TypeError: MediaWiki\Extension\SecurePoll\SecurePollContentHandler::makeContentFromElection(): Argument #1 ($election) must be of type MediaWiki\Extension\SecurePoll\Entities\Election, bool given, called in /var/www/html/w/extensions/SecurePoll/includes/Pages/CreatePage.php on line 914
Backtrace:
from /var/www/html/w/extensions/SecurePoll/includes/SecurePollContentHandler.php(161)
#0 /var/www/html/w/extensions/SecurePoll/includes/Pages/CreatePage.php(914): MediaWiki\Extension\SecurePoll\SecurePollContentHandler::makeContentFromElection()
#1 /var/www/html/w/extensions/SecurePoll/includes/Pages/CreatePage.php(893): MediaWiki\Extension\SecurePoll\Pages\CreatePage->recordElectionToNamespace()
#2 [internal function]: MediaWiki\Extension\SecurePoll\Pages\CreatePage->processInput()
#3 /var/www/html/w/includes/htmlform/HTMLForm.php(822): call_user_func()
#4 /var/www/html/w/includes/htmlform/HTMLForm.php(703): MediaWiki\HTMLForm\HTMLForm->trySubmit()
#5 /var/www/html/w/extensions/SecurePoll/includes/Pages/CreatePage.php(541): MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#6 /var/www/html/w/extensions/SecurePoll/includes/SpecialSecurePoll.php(65): MediaWiki\Extension\SecurePoll\Pages\CreatePage->execute()
#7 /var/www/html/w/includes/specialpage/SpecialPage.php(728): MediaWiki\Extension\SecurePoll\SpecialSecurePoll->execute()
#8 /var/www/html/w/includes/specialpage/SpecialPageFactory.php(1726): MediaWiki\SpecialPage\SpecialPage->run()
#9 /var/www/html/w/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#10 /var/www/html/w/includes/actions/ActionEntryPoint.php(146): MediaWiki\Actions\ActionEntryPoint->performRequest()
#11 /var/www/html/w/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()
#12 /var/www/html/w/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#13 {main}What should have happened instead?:
- election is successfully created
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
