getgrav / getgrav/grav-plugin-admin

Malformed theme blueprints cause GPM connection failure

Open
#1,692 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

This issue was first noted in getgrav/grav#1699, but since it's presumably an issue with the Admin plugin, I thought it best to open an issue here.

When a theme blueprint contains incorrect indentation, no error is displayed other than that a connection to GPM cannot be established (for both themes and plugins). This is obviously not a very clear error message that led me to check all of the known issues that can cause that error message, before looking at the blueprint and finding the cause.

Example blueprint, in which `options` is over-indented:
```
form:
single_page.enabled:
type: toggle
label: Single page mode
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.