Skip to content

Fix Nextcloud 34 compatibility - #2439

Closed
markuspetermann wants to merge 1 commit into
nextcloud:masterfrom
markuspetermann:fix-nc34-compatibility-2437
Closed

Fix Nextcloud 34 compatibility#2439
markuspetermann wants to merge 1 commit into
nextcloud:masterfrom
markuspetermann:fix-nc34-compatibility-2437

Conversation

@markuspetermann

Copy link
Copy Markdown

Nextcloud 34 removed the deprecated convenience getters on OC\Server, which caused the following error when switching to the bookmarks app:

Error: Call to undefined method OC\Server::getURLGenerator()

Likewise, exporting bookmarks caused the following error:

Exception: Call to undefined method OC\Server::getUserSession()

This edit replaces the removed getters with public OCP APIs and bumps the
supported version range. As far as I can tell this was the only incompatibility with Nextcloud 34.

Fixes #2437

@marcelklehr marcelklehr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bookmarks is not work with nextcloud 34.0

2 participants