Giter Site home page Giter Site logo

Unknown taxonomy error about even HOT 11 OPEN

pianomanfrazier avatar pianomanfrazier commented on August 22, 2024 4
Unknown taxonomy error

from even.

Comments (11)

jhereth avatar jhereth commented on August 22, 2024 1

@Keats yes, it happens on zola serve only, zola build works fine. I didn't find where the difference comes from.

from even.

DamianHayden avatar DamianHayden commented on August 22, 2024 1

Sorry, I realize this is a different theme. I thought this was zola. I will try with this theme to see if it is the theme or config. The error message looks identical

Edit: Yup, same error with even theme

I think you may be filling in taxonomy in config.toml below [markdown].
I was having trouble with the same error, but when I changed where I filled it in, that error did not occur.

from even.

MarcelRobitaille avatar MarcelRobitaille commented on August 22, 2024 1

Wouldn't you know it. I copied the config.toml from the theme, which had it in the [markdown] block. I just checked the config.toml in this repo, and works a charm. Thank you so much!

from even.

pianomanfrazier avatar pianomanfrazier commented on August 22, 2024

After playing with it a bit it seems that this error comes up when the reloading server is running and I change a tag in the post metadata to something new. The issue is probably with zola.

from even.

jhereth avatar jhereth commented on August 22, 2024

That's caused by the page.html template.

It can be reproduced within even.

  1. zola serve
  2. edit content/first_post.md and change a tag to another, non-existing tag (e.g. tag1 -> tag2)
  3. the serve log shows:
Change detected @ 2019-05-08 23:47:37
-> Content changed /Users/jhereth/repos/even/content/first_post.md
Failed to build the site
Error: Failed to render page '/Users/jhereth/repos/even/content/first_post.md'
Reason: Failed to render 'page.html'
Reason: `get_taxonomy_url`: couldn't find `tag2` in `tags` taxonomy
Done in 11ms.

The error message comes from page.html, L48 - the renderer needes the urls for all tags of the page - but the new tag is not yet known.

The error seems similar to zola's #319 but also happens on non-draft pages.

Not sure if this can be fixed within the theme.

from even.

Keats avatar Keats commented on August 22, 2024

So it looks like the issue is that on reload, the templates are re-rendered without recreating the get_taxonomy function first? If so that is definitely a bug in Zola

from even.

MarcelRobitaille avatar MarcelRobitaille commented on August 22, 2024

I am getting it both with server and build. Using anpu theme.

from even.

Keats avatar Keats commented on August 22, 2024

which version of zola?

from even.

MarcelRobitaille avatar MarcelRobitaille commented on August 22, 2024

0.14.1

from even.

MarcelRobitaille avatar MarcelRobitaille commented on August 22, 2024

Sorry, I realize this is a different theme. I thought this was zola. I will try with this theme to see if it is the theme or config. The error message looks identical

Edit: Yup, same error with even theme

from even.

jimmyff avatar jimmyff commented on August 22, 2024

I've run in to this issue too.

Error: Reason: `get_taxonomy_term_by_name` received an unknown taxonomy as kind: project

I get this error with this code:

get_taxonomy_term(kind="project", term="foo")

However this works:

get_taxonomy(kind="project")

I don't have the [markdown] config.toml issue mentioned above

from even.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.