Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentCountError: Too few arguments to function OCA\Polls\Migration\FixVotes::__construct() #1810

Closed
hokascha opened this issue Jul 5, 2021 · 2 comments

Comments

@hokascha
Copy link

hokascha commented Jul 5, 2021

Polls 2.0.5:

While upgrading to nextcloud 20.0.11 I get the following output:

`sudo -u www-data /usr/bin/php7.4 occ upgrade

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Updating ...
An unhandled exception has been thrown:
ArgumentCountError: Too few arguments to function OCA\Polls\Migration\FixVotes::__construct(), 0 passed in /var/www/nextcloud/lib/private/Repair.php on line 129 and exactly 4 expected in /var/www/nextcloud/apps/polls/lib/Migration/FixVotes.php:50
Stack trace:
#0 /var/www/nextcloud/lib/private/Repair.php(129): OCA\Polls\Migration\FixVotes->__construct()
#1 /var/www/nextcloud/lib/private/legacy/OC_App.php(1043): OC\Repair->addStep()
#2 /var/www/nextcloud/lib/private/legacy/OC_App.php(978): OC_App::executeRepairSteps()
#3 /var/www/nextcloud/lib/private/Updater.php(379): OC_App::updateApp()
#4 /var/www/nextcloud/lib/private/Updater.php(258): OC\Updater->doAppUpgrade()
#5 /var/www/nextcloud/lib/private/Updater.php(130): OC\Updater->doUpgrade()
#6 /var/www/nextcloud/core/Command/Upgrade.php(255): OC\Updater->upgrade()
#7 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1000): Symfony\Component\Console\Command\Command->run()
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand()
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun()
#11 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#12 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#13 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#14 {main}`

Disabling the plugin via occ app:disable polls finishes the upgrade, though. But still cannot reactive the polls plugin with the same error.

@dartcafe
Copy link
Collaborator

dartcafe commented Jul 5, 2021

Duplicate to #1811

@dartcafe dartcafe closed this as completed Jul 5, 2021
Copy link

github-actions bot commented Jun 3, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants