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

WARNING: calling (isset %!q(<nil>) "taxonomycloud") with unsupported collection type "invalid" (<nil>) will always return false. #607

Closed
mhansen opened this issue Jun 19, 2021 · 3 comments · Fixed by #608

Comments

@mhansen
Copy link
Contributor

mhansen commented Jun 19, 2021

After updating Graphviz's Docsy (https://gitlab.com/graphviz/graphviz.gitlab.io) to the latest Docsy version, I get this error when running:

WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.                                                                                                                                                                                                                                                                                    

Not very useful, so I added some more logging to track down the caller in gohugoio/hugo#8668, which yields:

WARNING: calling (isset %!q(<nil>) "taxonomycloud") with unsupported collection type "invalid" (<nil>) will always return false.
WARNING: calling (isset %!q(<nil>) "taxonomypageheader") with unsupported collection type "invalid" (<nil>) will always return false.

The culprits:

This isn't an error in the output: if taxonomy isn't set in the config.toml, then no taxonomy is output, as expected. But it is a bit of warning noise for older users upgrading, or new users who deleted the taxonomy section.

How about we check if .Site.Params.Taxonomy is defined before looking to see if it has values set inside it?

@mhansen
Copy link
Contributor Author

mhansen commented Jun 19, 2021

@narrenfrei
Copy link
Contributor

Thanks the info. I will take a look.

@mhansen
Copy link
Contributor Author

mhansen commented Jun 23, 2021 via email

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

Successfully merging a pull request may close this issue.

2 participants