Skip to content
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

Open
srijansaxena11 opened this issue Apr 21, 2024 · 5 comments

Comments

@srijansaxena11
Copy link

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:
image

@st3iny
Copy link
Member

st3iny commented Apr 22, 2024

Which version of Nextcloud are you running?

@srijansaxena11
Copy link
Author

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.

@srijansaxena11
Copy link
Author

Which version of Nextcloud are you running?

What other details can I provide to debug/resolve it?

@joshtrichards
Copy link
Member

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 occ files_external:list --output=json_pretty.

@srijansaxena11
Copy link
Author

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 occ files_external:list --output=json_pretty.

Hi. Please find it below:

[ { "mount_id": 4, "mount_point": "\/var\/lib\/media", "storage": "\\OC\\Files\\Storage\\Local", "authentication_type": "null::null", "configuration": { "datadir": "\/var\/lib\/media" }, "options": { "enable_sharing": false }, "applicable_users": [], "applicable_groups": [] }, { "mount_id": 5, "mount_point": "\/External_Storage", "storage": "\\OC\\Files\\Storage\\Local", "authentication_type": "null::null", "configuration": { "datadir": "\/var\/lib\/media" }, "options": { "enable_sharing": false }, "applicable_users": [], "applicable_groups": [] } ]

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

No branches or pull requests

3 participants