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 "downloadURL" in metastore process node data #4194

Closed
dgading opened this issue Jun 17, 2024 · 0 comments · Fixed by #4197
Closed

Undefined array key "downloadURL" in metastore process node data #4194

dgading opened this issue Jun 17, 2024 · 0 comments · Fixed by #4197
Assignees

Comments

@dgading
Copy link
Member

dgading commented Jun 17, 2024

Describe the bug

If a site has distributions with an accessUrl and no downloadUrl the undefined key error below appears. This is from metastore module's theme.inc file were some variables for themeing and a table are created.

Warning: Undefined array key "downloadURL" in metastore_preprocess_node__data() (line 101 of /var/www/html/docroot/modules/contrib/dkan/modules/metastore/metastore.theme.inc)

Steps To Reproduce

Build a new DKAN site with a schema that doesn't require downloadUrl key in the distribution objects.
Import data and check for the errors after a page render.

Expected behavior

This shouldn't cause an error if the key doesn't exist.

@dgading dgading self-assigned this Jun 17, 2024
@github-actions github-actions bot added this to Incoming/Triage in DKAN 2 Issue Triage Jun 17, 2024
DKAN 2 Issue Triage automation moved this from Incoming/Triage to Closed Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant