OleVik / grav-plugin-static-generator

Indexing and static generation of Page(s) for Grav.
MIT License
22 stars 1 forks source link

Plugin causes Grav 1.7 to crash due to blueprints.yaml #13

Closed TheRealThor closed 3 years ago

TheRealThor commented 3 years ago

Upon installing the plugin using GPM on a fresh Grav 1.7 installation, the following error appeared in the browser calling the admin plugin:


Exception: Trying to access array offset on value of type int
…/vendor/rockettheme/toolbox/Blueprints/src/BlueprintSchema.php569

[..]
Arguments: 
"Trying to access array offset on value of type int"
"/Users/thor/Dev/www/grav/vendor/rockettheme/toolbox/Blueprints/src/BlueprintSchema.php"
569
array:3 [▼
  "key" => 0
  "prefix" => "plugins.static-generator."
  "parent" => "plugins.static-generator.presets.*.links"
]

Looks like there is a parsing error of the plugins blueprints.yaml

OleVik commented 3 years ago

Which version of Grav, Admin, and Static Generator did you install? I get no errors with Grav v1.7.0-rc.14, Admin v1.10.0-rc.14, Static Generator 2.1.3.