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

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

Closed
Dennis1993 opened this issue Oct 19, 2022 · 6 comments
Closed

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

Dennis1993 opened this issue Oct 19, 2022 · 6 comments
Labels

Comments

@Dennis1993
Copy link

Dennis1993 commented Oct 19, 2022

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
@sunjam
Copy link
Contributor

sunjam commented Oct 19, 2022

A 1.8.0-beta.1 was released yesterday to address this incompatibility with the 25 beta releases. #3978 (comment)

Seems it isn't being identified by a number @juliushaertl so we are still seeing the old 1.7.1
Something is wrong with your beta fix within the appstore, because it doesn't actually display in the appstore changelog.

The appstore listing

Updated
3 weeks, 5 days ago
image

Latest version available in 25.0.0 stable:
image

@amiga23
Copy link

amiga23 commented Oct 19, 2022

Nextcloud 25 is finally released and I get the same error

@nursoda
Copy link

nursoda commented Oct 19, 2022

There is no release for NC25 yet. So, if you already upgraded your NC (mind, it's a ".0" version :) ), please set "Update channel" to "beta", then update your apps, then switch channel back to "release".

@sunjam
Copy link
Contributor

sunjam commented Oct 19, 2022 via email

@nickvergessen
Copy link
Member

Can one of you post the full log line please? It contains the information we need to solve this

@juliushaertl
Copy link
Member

Since the initial app list mentions 1.7.1 as the app version you were running an unsupported release.

I just published 1.8.0 to the App Store which contains the compatible release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants