What is the problem?
I have not been able to tally STV elections via the CLI (using the tally.php script).
It might be a good idea to get this working now in case there are any problems when trying to tally elections after 17th August. T277222 should hopefully deal with these problems, but just in case.
So far, I have tried:
- php extensions/SecurePoll/cli/tally.php --name <name of election>
- Produces no output except Script finished in 0 s
- php extensions/SecurePoll/cli/tally.php <name of dump>.securepoll (after downloading the dump from Special:SecurePoll)
- Produces no output except Script finished in 0 s
- php extensions/SecurePoll/cli/tally.php --html=foo.html <name of dump>.securepoll
- Error:
PHP Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /var/www/html/w/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /var/www/html/w/vendor/oojs/oojs-ui/php/Element.php(260): OOUI\Theme::singleton() #1 /var/www/html/w/vendor/oojs/oojs-ui/php/Tag.php(494): OOUI\Element->toString() #2 /var/www/html/w/extensions/SecurePoll/includes/Talliers/ElectionTallier.php(175): OOUI\Tag->__toString() #3 /var/www/html/w/extensions/SecurePoll/cli/tally.php(61): MediaWiki\Extensions\SecurePoll\Talliers\ElectionTallier->getHtmlResult() #4 /var/www/html/w/maintenance/doMaintenance.php(108): TallyElection->execute() #5 /var/www/html/w/extensions/SecurePoll/cli/tally.php(74): require_once('/var/www/html/w...') #6 {main} in /var/www/html/w/vendor/oojs/oojs-ui/php/Tag.php on line 496
Environment
Wiki(s): local docker SecurePoll 3.0.0 (fba66dd) 13:13, 2 August 2021