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

Scholar skeleton + upgrades = RuntimeException #27

Closed
irudi opened this issue Aug 10, 2021 · 7 comments
Closed

Scholar skeleton + upgrades = RuntimeException #27

irudi opened this issue Aug 10, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@irudi
Copy link

irudi commented Aug 10, 2021

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
Copy link
Owner

OleVik commented Aug 10, 2021

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
Copy link
Author

irudi commented Aug 10, 2021

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
Copy link
Owner

OleVik commented Aug 10, 2021

So your scholar.yaml now has this?

components:
  - blog
  - book
  - cv
  - docs
  - tufte
  - what-links-here

@irudi
Copy link
Author

irudi commented Aug 10, 2021

No, I've reduced it to

components:
  - blog
  - docs

@OleVik
Copy link
Owner

OleVik commented Aug 10, 2021

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.

@OleVik OleVik added the bug Something isn't working label Aug 10, 2021
@OleVik OleVik self-assigned this Aug 10, 2021
@irudi
Copy link
Author

irudi commented Aug 10, 2021

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
Copy link
Owner

OleVik commented Jun 25, 2022

This should be fixed by v3.0.3.

@OleVik OleVik closed this as completed Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants