You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When downloading files in bulk (selecting multiple files, then clicking download) or downloading a whole directory from the web interface, an html file containing the following error message Fatal error: Uncaught Error: Class "OC_Util" not found in /var/www/html/apps/files/ajax/download.php:31 Stack trace: #0 {main} thrown in /var/www/html/apps/files/ajax/download.php on line 31
is downloaded instead of the expected files.
From the error message I gather that the PHP module cannot find the class (which does certainly exist in lib/private/legacy/OC_Util.php).
I do however, have absolutely no experience with PHP and therefore have no idea how Nextcloud & PHP "import" classes.
Your web server configuration doesn't match the documented configs. You'll have to adapt the rewrite rules for ajax and related urls from either the nginx or apache configs to your Caddyfile.
I've seen a lot of really incomplete configuration files floating around and it may be time to add an unofficial (but best tested) Caddyfile config alongside the nginx one in the upstream (server) Admin Manual.
Problem description:
When downloading files in bulk (selecting multiple files, then clicking download) or downloading a whole directory from the web interface, an html file containing the following error message
Fatal error: Uncaught Error: Class "OC_Util" not found in /var/www/html/apps/files/ajax/download.php:31 Stack trace: #0 {main} thrown in /var/www/html/apps/files/ajax/download.php on line 31
is downloaded instead of the expected files.
From the error message I gather that the PHP module cannot find the class (which does certainly exist in lib/private/legacy/OC_Util.php).
I do however, have absolutely no experience with PHP and therefore have no idea how Nextcloud & PHP "import" classes.
Environment:
Nextcloud version: 28.0.1
Image: nextcloud:fpm-alpine
Reverse Proxy: caddy:alpine (v2.7)
Below are the requested configuration files.
Thanks for the help!
Docker compose file:
Caddyfile
(the example #2052)
Nextcloud configuration:
(output of
occ config:list system
)The text was updated successfully, but these errors were encountered: