OleVik / grav-theme-scholar

Scholar is an academic-focused theme, for publishing papers, articles, books, documentation, your blog, and even your resumé, with Grav.
https://olevik.net/staging/grav-skeleton-scholar
MIT License
15 stars 2 forks source link

Scholar skeleton + upgrades = RuntimeException #27

Closed irudi closed 2 years ago

irudi commented 3 years ago

Similar to #8: after having tried all kinds of ways of installing Scholar and get some docs pages working I opted for the skeleton route.

Skeleton worked fine. I've updated my content, docs section was working.

Updating to Grav v1.7.18, updating all plugins and themes (including Scholar) - RuntimeException when try to open the docs section :-(

RuntimeException (400) Template "docs.html.twig" is not defined.

OleVik commented 3 years ago

So Core, Admin, Problems, Error and Form are all newest versions? That error means the current theme does not have the docs.html.twig-template. Is system.yaml set to use Scholar, as below?

pages:
  type: regular
  theme: scholar

Can you verify that GRAV_ROOT/user/config/themes/scholar.yaml exists, and contains the following?

components:
  - docs

Both are necessary for docs.html.twig to be available, I don't think upgrading and updating would change either.

irudi commented 3 years ago

Theme is set to use Scholar in system.yaml. But components were null!

If I just add docs - nothing changed, I'm getting the same error as before

If I add all the default components of Scholar I get:

RuntimeException (400)
Template "partials/what_links_here.html.twig" is not defined in "default.html.twig"
OleVik commented 3 years ago

So your scholar.yaml now has this?

components:
  - blog
  - book
  - cv
  - docs
  - tufte
  - what-links-here
irudi commented 3 years ago

No, I've reduced it to

components:
  - blog
  - docs
OleVik commented 3 years ago

Hmm, this or this should not fire if what-links-here is not in theme.components as a list-item. Does it work if you include it?

I might have to investigate further to see why it doesn't work as intended.

irudi commented 3 years ago

Sorry, we have misunderstood each other.

The what-links-here error occurs only if I had all components enabled. But I've removed all but blog and docs again - because I just need docs at the moment.

OleVik commented 2 years ago

This should be fixed by v3.0.3.