getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Starterkit: Undefined variable: class #111

Closed distantnative closed 6 years ago

distantnative commented 6 years ago

https://sentry.io/kirby/getkirby-kirby/issues/399339360/

ErrorException: Undefined variable: class
  File "site/snippets/nav.php", line 1, in handleError
    <nav class="nav <?= $class ?>">
  File "site/snippets/nav.php", line 1, in require
    <nav class="nav <?= $class ?>">
  File "kirby/vendor/getkirby/toolkit/src/Toolkit/View.php", line 103, in toString
    require($this->file);
  File "kirby/vendor/getkirby/toolkit/src/Toolkit/View.php", line 117, in __toString
    return $this->toString();
  File "kirby/extensions/helpers.php", line 91, in snippet
    echo $snippet;
...
(5 additional frame(s) were not displayed)
bastianallgeier commented 6 years ago

This seems to be an implementation error in the template. Not related to our code.