Skip to content

fix: add Nextcloud 34 support#26

Open
Git-Usr123 wants to merge 6 commits into
Adphi:mainfrom
Git-Usr123:main
Open

fix: add Nextcloud 34 support#26
Git-Usr123 wants to merge 6 commits into
Adphi:mainfrom
Git-Usr123:main

Conversation

@Git-Usr123

Copy link
Copy Markdown

Summary

Fixes compatibility with Nextcloud 32–34 which introduced several breaking changes.

PHP backend (OccController.php)

  • Replace deprecated OC::$server->getConfig() (removed in NC34) with OC::$server->get(\OCP\IConfig::class)

Frontend

  • Bundle jQuery 3.7.1 — Nextcloud dropped its bundled jQuery in NC32, causing a blank/black terminal window
  • Fix script load order in template: jQuery must load before the terminal plugin and index.js
  • Add OC.requestToken to all AJAX requests via $.ajaxSetup() — without NC's jQuery integration, CSRF tokens were no longer injected automatically, causing 412 errors on all API calls

Compatibility

  • Bump max-version from 31 to 34 in info.xml
  • Bump version to 0.2.4

@Git-Usr123

Copy link
Copy Markdown
Author

Still working on: [Nextcloud Hub 26 Spring] (34.0.1)

@davie2000

Copy link
Copy Markdown

with this corrections occweb is working again with 34.0.1.
Thank you!

@rodnand

rodnand commented Jul 22, 2026

Copy link
Copy Markdown

This fixes occweb with Nextcloud 34.0.1 for me, too. Thank you very much!

@TomBraider42

Copy link
Copy Markdown

Works for me too, thanks!

Remove outdated deprecation notice and point issue tracker to this fork's repo.
@Fuseteam

Copy link
Copy Markdown
Contributor

@Adphi we got number of confirmations that this keeps it working on nextcloud 34

@Fuseteam

Copy link
Copy Markdown
Contributor

tho @Git-Usr123 you might want to keep the fork notice out of this PR

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.

5 participants