-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined array key "previews" at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php#160 #465
Comments
Which version of Nextcloud are you running? |
It's latest stable 28.0.4. I am happy to provide any other details if required and/or try anything to see if that resolves the issue. |
What other details can I provide to debug/resolve it? |
It's related to your External Storage configuration. It seems like one of your mounts is lacking the preview field in its config (which is a little weird). Please send the output of |
Hi. Please find it below:
|
What can I do to fix it? |
Hello? |
This isn't an issue in the previewgenerator. Somehow nearly all your options are missing from your mount. The config would normally look more like this:
How did you originally setup/add your External Storage in your Nextcloud Server? And what's the history of this installation? (i.e. has it been around awhile?) If there is a bug, it's in server/files_external, since that configuration isn't valid per se. Assuming you're using those mounts, you can probably workaround it by:
See https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#files-external-label for the P.S. You have two entries for the same local storage folder ( |
Is this okay now? I am still getting the same error with this configuration too. Do I need to restart something? |
I am getting the above error message in my Nextcloud logs every 10 minutes.
[PHP] Error: Undefined array key "previews" at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php#160
The error is pointing to this line:
The text was updated successfully, but these errors were encountered: