-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Update to Nextcloud 31.0.10
- Extract the twofactor_gateway.tar.gz to /custom_apps/twofactor_gateway
- Enable the App and and reload Nextcloud
Expected behaviour
It should work like the Previous Version v0.20.0
Actual behaviour
Nextcloud stops to function and this appears in the Nextcloud Log:
NOTICE: PHP message: PHP Fatal error: Could not check compatibility between OCA\TwoFactorGateway\Provider\AProvider::getTemplate(OCP\IUser $user): OCP\Template\ITemplate and OCP\Authentication\TwoFactorAuth\IProvider::getTemplate(OCP\IUser $user): OCP\Template, because class OCP\Template\ITemplate is not available in /var/www/html/custom_apps/twofactor_gateway/lib/Provider/AProvider.php on line 83
Server configuration
Web server: Apache/Nginx
Database: PostgreSQL
PHP version: 8
Nextcloud version: 31.0.10
List of activated apps
- bruteforcesettings: 4.0.0
- calendar: 5.5.8
- cloud_federation_api: 1.14.0
- contacts: 7.3.6
- contactsinteraction: 1.12.1
- dav: 1.33.0
- external: 6.0.2
- federatedfilesharing: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_external: 1.23.0
- files_pdfviewer: 4.0.0
- files_sharing: 1.23.1
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- memories: 7.7.0
- music: 2.4.1
- nextcloud-aio: 0.8.0
- notifications: 4.0.0
- notify_push: 1.2.1
- oauth2: 1.19.1
- password_policy: 3.0.0
- passwords: 2025.11.10
- phonetrack: 0.9.1
- photos: 4.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- richdocuments: 8.7.6
- settings: 1.14.0
- support: 3.0.0
- text: 5.0.2
- theming: 2.6.1
- theming_customcss: 1.19.0
- twofactor_backupcodes: 1.20.0
- twofactor_gateway: 0.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- viewer: 4.0.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- activity: 4.0.0 (installed 4.0.0)
- admin_audit: 1.21.0 (installed 1.21.0)
- app_api: 5.0.2 (installed 5.0.2)
- circles: 31.0.0 (installed 31.0.0)
- comments: 1.21.0 (installed 1.21.0)
- dashboard: 7.11.0 (installed 7.11.0)
- deck: 1.15.3 (installed 1.15.3)
- encryption: 2.19.0
- federation: 1.21.0 (installed 1.21.0)
- files_reminders: 1.4.0 (installed 1.4.0)
- files_trashbin: 1.21.0 (installed 1.21.0)
- files_versions: 1.24.0 (installed 1.24.0)
- firstrunwizard: 4.0.0 (installed 4.0.0)
- nextcloud_announcements: 3.0.0 (installed 3.0.0)
- notes: 4.12.3 (installed 4.12.3)
- privacy: 3.0.0 (installed 3.0.0)
- recommendations: 4.0.0 (installed 4.0.0)
- related_resources: 2.0.0 (installed 2.0.0)
- serverinfo: 3.0.0 (installed 3.0.0)
- sharebymail: 1.21.0 (installed 1.21.0)
- survey_client: 3.0.0 (installed 3.0.0)
- suspicious_login: 9.0.1
- systemtags: 1.21.1 (installed 1.21.1)
- tasks: 0.17.0 (installed 0.17.0)
- twofactor_gateway_new: 2.0.0
- twofactor_nextcloud_notification: 5.0.0
- user_ldap: 1.22.0
- user_status: 1.11.0 (installed 1.11.0)
- weather_status: 1.11.0 (installed 1.11.0)
Nextcloud configuration
{
"system": {
"one-click-instance": true,
"one-click-instance.user-limit": 100,
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"check_data_directory_permissions": false,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"overwritehost": "example.com",
"overwriteprotocol": "https",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "31.0.10.2",
"overwrite.cli.url": "https:\/\/example.com\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"updatedirectory": "\/nc-updater",
"loglevel": 2,
"app_install_overwrite": [
"nextcloud-aio",
"twofactor_gateway"
],
"log_type": "file",
"logfile": "\/var\/www\/html\/data\/nextcloud.log",
"log_rotate_size": 10485760,
"log.condition": {
"apps": [
"admin_audit"
]
},
"preview_max_x": 2048,
"preview_max_y": 2048,
"jpeg_quality": 60,
"enabledPreviewProviders": {
"0": "OC\\Preview\\Imaginary",
"1": "OC\\Preview\\MarkDown",
"2": "OC\\Preview\\MP3",
"3": "OC\\Preview\\TXT",
"4": "OC\\Preview\\OpenDocument",
"5": "OC\\Preview\\Krita",
"6": "OC\\Preview\\Imaginary",
"7": "OC\\Preview\\ImaginaryPDF",
"8": "OC\\Preview\\Movie",
"23": "OC\\Preview\\ImaginaryPDF"
},
"enable_previews": true,
"upgrade.disable-web": true,
"mail_smtpmode": "smtp",
"trashbin_retention_obligation": "auto, 30",
"versions_retention_obligation": "auto, 30",
"activity_expire_days": 30,
"simpleSignUpLink.shown": false,
"share_folder": "\/Shared",
"one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
"upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
"maintenance_window_start": 100,
"allow_local_remote_servers": true,
"davstorage.request_timeout": 36000,
"documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
"htaccess.RewriteBase": "\/",
"dbpersistent": false,
"auth.bruteforce.protection.enabled": true,
"ratelimit.protection.enabled": true,
"files_external_allow_create_new_local": false,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
"remember_login_cookie_lifetime": "7776000",
"skeletondirectory": "",
"default_language": "de",
"default_phone_region": "DE",
"memories.db.triggers.fcu": true,
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": true,
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"defaultapp": "",
"memories.gis_type": 2,
"memories.vod.disable": false,
"memories.index.mode": "2",
"memories.index.path": "\/Benutzer\/Bilder",
"memories.index.path.blacklist": "\\\/(Videos|_Unbearbeitet_)\\\/",
"updatechecker": false,
"DOMAIN": "example.com"
}
}
Browser
Browser name: Waterfox
Browser version: 6.6.4
Operating system: Windows