[GH-ISSUE #423] Telegram gateway not configurable after installing the Mail Nextcloud app #93

Closed
opened 2026-02-26 05:33:03 +03:00 by kerem · 3 comments
Owner

Originally created by @didyouexpectthat on GitHub (Feb 19, 2021).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/423

I used to use this and it worked great. Now I'm running Nextcloud 20.0.7 and want to add my bot token. All IDs fail.
Debian 10
PHP 7.3.19-1-deb10u1
with Zend OPcache v7.3.19-1~deb10u1,

# occ twofactorauth:gateway:configure telegram
Please enter your Telegram bot token: 1234567980:abcde_fghij-_klmnopqr_stuvw
Using 1234567980:abcde_fghij-_klmnopqr_stuvw.
An unhandled exception has been thrown:
TypeError: Return value of "OCA\TwoFactorGateway\Command\Configure::execute()" must be of the type int, "null" returned. in /opt/nextcloud/apps/mail/vendor/symfony/console/Command/Command.php:258
Stack trace:
#0 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand(Object(OCA\TwoFactorGateway\Command\Configure), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /opt/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /opt/nextcloud/console.php(100): OC\Console\Application->run()
#5 /opt/nextcloud/occ(11): require_once('/opt/nextcloud/...')
#6 {main}
Originally created by @didyouexpectthat on GitHub (Feb 19, 2021). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/423 I used to use this and it worked great. Now I'm running Nextcloud 20.0.7 and want to add my bot token. All IDs fail. Debian 10 PHP 7.3.19-1-deb10u1 with Zend OPcache v7.3.19-1~deb10u1, ``` # occ twofactorauth:gateway:configure telegram Please enter your Telegram bot token: 1234567980:abcde_fghij-_klmnopqr_stuvw Using 1234567980:abcde_fghij-_klmnopqr_stuvw. An unhandled exception has been thrown: TypeError: Return value of "OCA\TwoFactorGateway\Command\Configure::execute()" must be of the type int, "null" returned. in /opt/nextcloud/apps/mail/vendor/symfony/console/Command/Command.php:258 Stack trace: #0 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand(Object(OCA\TwoFactorGateway\Command\Configure), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 /opt/nextcloud/apps/mail/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /opt/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /opt/nextcloud/console.php(100): OC\Console\Application->run() #5 /opt/nextcloud/occ(11): require_once('/opt/nextcloud/...') #6 {main} ```
kerem closed this issue 2026-02-26 05:33:04 +03:00
Author
Owner

@didyouexpectthat commented on GitHub (Feb 19, 2021):

Looks to be an incompatibility with the Nextcloud mail app. I disabled the mail app and it worked fine.

<!-- gh-comment-id:781838745 --> @didyouexpectthat commented on GitHub (Feb 19, 2021): Looks to be an incompatibility with the Nextcloud mail app. I disabled the mail app and it worked fine.
Author
Owner

@ChristophWurst commented on GitHub (Feb 19, 2021):

This app needs to be adjusted for https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/upgrade-guide.html#symfony-update

<!-- gh-comment-id:781882813 --> @ChristophWurst commented on GitHub (Feb 19, 2021): This app needs to be adjusted for https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/upgrade-guide.html#symfony-update
Author
Owner

@ChristophWurst commented on GitHub (Feb 19, 2021):

duplicate of https://github.com/nextcloud/twofactor_gateway/issues/414

<!-- gh-comment-id:781882995 --> @ChristophWurst commented on GitHub (Feb 19, 2021): duplicate of https://github.com/nextcloud/twofactor_gateway/issues/414
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#93
No description provided.