Skip to content

Fatal error after upgrading to NextCloud Hub 3 (v25) #4138

@Dennis1993

Description

@Dennis1993

Describe the bug
After upgrading to NextCloud Hub 3 (v25) the Cloud doesn't work anymore

Error:
PHP Fatal error: Declaration of OCA\Deck\Sharing\DeckShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares) must be compatible with OCP\Share\IShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares, $shallow = true) in /var/www/html/apps/deck/lib/Sharing/DeckShareProvider.php on line 494

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to v25
    1. Cloud is broken and not useable

Operating system:
Ubuntu 20.04.5

Web server:
Apache 2

Database:
MariaDB 10.3

PHP version:
PHP 8.1.11

Nextcloud version: (see Nextcloud admin page)
25.0.0

Where did you install Nextcloud from:
zip archive

Signing status:

List of activated apps:

Enabled:
  - activity: 2.17.0
  - bruteforcesettings: 2.5.0
  - calendar: 4.0.1
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contactsinteraction: 1.6.0
  - dav: 1.24.0
  - encryption: 2.13.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - firstrunwizard: 2.14.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - oauth2: 1.13.0
  - photos: 2.0.0
  - polls: 4.0.0
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - ransomware_protection: 1.13.0
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - spreed: 15.0.0
  - systemtags: 1.15.0
  - theming: 2.0.0
  - twofactor_backupcodes: 1.14.0
  - updatenotification: 1.15.0
  - user_ldap: 1.15.0
  - viewer: 1.9.0
  - workflowengine: 2.7.0
Disabled:
  - admin_audit
  - dashboard: 7.5.0
  - deck: 1.7.1
  - files_external
  - password_policy: 1.15.0
  - recommendations: 1.4.0
  - related_resources: 1.0.1
  - support: 1.8.0
  - survey_client: 1.13.0
  - suspicious_login
  - text: 3.6.0
  - twofactor_totp
  - user_status: 1.5.0
  - weather_status: 1.5.0

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.132"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.0.18",
        "overwrite.cli.url": "http:\/\/192.168.1.132",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "app_install_overwrite": [
            "deck",
            "ransomware_protection"
        ],
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory"
    }
}

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no, not configured yet

Nextcloud log (data/nextcloud.log)

Declaration of OCA\Deck\Sharing\DeckShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares) must be compatible with OCP\Share\IShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares, $shallow = true) at /var/www/html/apps/deck/lib/Sharing/DeckShareProvider.php#494

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions