10.0.1 -> 10.0.2 PHP problem


After updater:

Current version is 10.0.1.
Update to Nextcloud 10.0.2 available. (channel: “beta”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-10.0.2.zip
Check for expected files
Check for write permissions
Enable maintenance mode
Create backup
Replace entry points
Delete old files
Move new files in place
Keep maintenance mode active?
Maintenance mode will kept active.
Now trigger the migration via command line: ./occ upgrade
Go to back to your Nextcloud instance to finish the update

Solving permission problem with
chown -R apache: /var/www/html/nextcloud
chmod 755 occ

there is a problem after sudo -u apache ./occ upgrade

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Checking whether the database schema can be updated (this can take a long time depending on the database size)
 27/27 [============================] 100%
Checked database schema update
Checking updates of apps
Checked database schema update for apps
Updating database schema
Updated database
PHP Fatal error:  Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/html/nextcloud/apps/user_ldap/lib/Access.php on line 553

line 553:
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);

What to do now?

Could you open a bug report on https://github.com/nextcloud/server/issues, please?


I think it was my installation problem after upgrading php54 -> php55. So I suggest to close this thread :slight_smile: