mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #375] Call to undefined method #85
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tamsy on GitHub (Aug 27, 2020).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/375
Ubuntu 18.04.5 LTS
Apache 2.4.46
PHP 7.4.9
Nextcloud 19.0.1
twofactor_gateway v0.16.0 & v0.17.0
Whenever running ’occ twofactorauth:gateway:configure sms’ I am only getting the following error about a call to a undefined method.
Has anybody encountered similar or knows what is going wrong here?
sudo -u www-data php occ twofactorauth:gateway:configure sms
Please choose a SMS provider (websms, playsms, clockworksms, puzzelsms, ecallsms, voipms, huawei_e3531, spryng, sms77io, ovh, clickatellcentral, clicksend): An unhandled exception has been thrown:
Error: Call to undefined method Symfony\Component\Console\Question\Question::getAutocompleterCallback() in /var/www/cloud/3rdparty/symfony/console/Helper/QuestionHelper.php:119
Stack trace:
#0 /var/www/cloud/3rdparty/symfony/console/Helper/QuestionHelper.php(81): Symfony\Component\Console\Helper\QuestionHelper->doAsk(Object(Symfony\Component\Console\Output\StreamOutput), Object(Symfony\Component\Console\Question\Question))
#1 /var/www/cloud/apps/twofactor_gateway/lib/Command/Configure.php(113): Symfony\Component\Console\Helper\QuestionHelper->ask(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\StreamOutput), Object(Symfony\Component\Console\Question\Question))
#2 /var/www/cloud/apps/twofactor_gateway/lib/Command/Configure.php(86): OCA\TwoFactorGateway\Command\Configure->configureSms(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/cloud/3rdparty/symfony/console/Command/Command.php(255): OCA\TwoFactorGateway\Command\Configure->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/cloud/3rdparty/symfony/console/Application.php(1012): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/cloud/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OCA\TwoFactorGateway\Command\Configure), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/cloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/cloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/cloud/console.php(100): OC\Console\Application->run()
#9 /var/www/cloud/occ(11): require_once('/var/www/...')
@ChristophWurst commented on GitHub (Aug 27, 2020):
This shounds like a version conflict with another app. Could you try disable all optional apps. Then try this app's command again and gradually enable the other apps until it breaks?
@Tamsy commented on GitHub (Aug 27, 2020):
Thank you for the hint.
The conflicting app is "External storage support for Google Drive" (files_external_gdrive).
After disabling the latter I was able to configure twofactor_gateway without any hickups. I re-enabled files_external_gdrive afterwards and all seems to work now.
Thank you again, solved, you might want to close this ticket
@ChristophWurst commented on GitHub (Aug 27, 2020):
Sure, though the problem is not solved, so other will run into the exact same issue …