grav-learn icon indicating copy to clipboard operation
grav-learn copied to clipboard

Bug in the Theme Inheritance docs, when the installation is done cloning Grav from github

Open ganar opened this issue 7 years ago • 2 comments

Do you want to request a feature or report a bug?

I'm reporting a bug in the documentation: the current procedure does not produce the intended result when the installation is done cloning Grav from github

What is the current behavior?

Upon finishing Theme Inheritance and Easy Theme Development with Inheritance many times on a clean installation of GravCMS I always get RuntimeException (400) Template "default.html.twig" is not defined.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Clean installation of gravCMS cloning from GIT (Amazon Cloud Services failed that day)
  2. Installed DevTools using the CLI
  3. Carefully followed the instructions in Theme Inheritance and then erased the resulting theme and tried again with Easy Theme Development with Inheritance
  4. I got RuntimeException (400) Template "default.html.twig" is not defined. both times.

The solution was to copy the default template to the new theme, but that's not the way it is supposed to work

What is the expected behavior?

You have now created a new theme called mytheme and set up the streams so that it will first look in the mytheme theme first, then try antimatter. So in essence, Antimatter is the base-theme for this new theme.

I was expecting to be able to use any of the templates in antimatter and changing just the CSS in the new theme

Which versions of OS are affected by this issue? Did this work in previous versions?

I was using Grav v1.1.17 - Admin v1.2.14 - on OSX "El Capitán", cloned form GitHUB

This only happened when cloning form GitHub, afterwards I downloaded the whole package as usual and it worked as described in the docs.

ganar avatar Mar 14 '17 00:03 ganar

Same problem here. Trying to make a grav website setup by putting together files and plugins, then uploading to 000webhost.

Installed elements and versions according to Admin Panel:

  • Grav v1.4.3
  • Admin Panel v1.7.4
  • Archives v1.5.1
  • Email v2.7.1
  • Error v1.6.1
  • Feed v1.6.2
  • Form v2.13.3
  • Language Selector v1.0.0
  • Login v2.6.3
  • Pagination v1.3.2
  • Problems v1.4.7
  • Random v1.5.0
  • Related Pages v1.1.4
  • SimpleSearch v1.14.1
  • Taxonomy List v1.3.1

Any ideas, as to where to begin looking for the source of the error or how to solve it, in order to use the inheritance feature fully?

Website's current address: iecb-prototipo.000webhostapp.com.

afsoeiro avatar May 03 '18 16:05 afsoeiro

Just as an update for this, it seems like there is no inheritance working at all in my case. If I just copy the default.html.twig file over, it goes on and complains about navigation.html.twig and sidebar.html.twig partials. So, I believe it will just go on.

afsoeiro avatar May 03 '18 17:05 afsoeiro