[Bug]: Documentation contains non-available OC::$SERVERROOT
#40460
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
27-feedback
bug
needs info
Bug description
In the documentation https://docs.nextcloud.com/server/latest/admin_manual/apps_management.html at section "apps_path" (and maybe at several other documentation locations?) there is the following code snippet:
This does not work, because neither
OC::$SERVERROOT
nor\OC::$SERVERROOT
can be used in config.php , probably because the auto-loader has not yet found class "OC".So either the documentation should be fixed, or OC should be made available in config.php (which would be nice, since you don't need to remember canonical path names).
Steps to reproduce
Expected behavior
It should work without error
Installation method
None
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: