We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting the image option of a page blueprint to a query string throws a 500 error in the panel when trying to show the page in a pages section.
Expected behavior It should be possible to set the image option of a page blueprint to a string, as documented here: https://getkirby.com/docs/reference/panel/blueprints/page#image-options
site/blueprints/pages/default.yml
image: page.image
Kirby Version: 4.4.1 (don't think it's a "recent" regression though).
Console output
{ "status": "error", "message": "array_merge(): Argument #3 must be of type array, string given", "code": 500, "exception": "TypeError", "key": null, "file": "\/kirby\/src\/Panel\/Model.php", "line": 134, "details": [], "route": "pages\/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)\/sections\/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)" }
I think the $blueprint variable here:
$blueprint
kirby/src/Panel/Model.php
Lines 108 to 125 in eb47158
Needs the same treatment as the $settings variable: transform it into an array when it's a string different from "icon".
$settings
"icon"
Pass an array to the image option:
image: query: page.image
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Setting the image option of a page blueprint to a query string throws a 500 error in the panel when trying to show the page in a pages section.
Expected behavior
It should be possible to set the image option of a page blueprint to a string, as documented here:
https://getkirby.com/docs/reference/panel/blueprints/page#image-options
To reproduce
site/blueprints/pages/default.yml
to include an image option:Your setup
Kirby Version: 4.4.1 (don't think it's a "recent" regression though).
Console output
Fix
I think the
$blueprint
variable here:kirby/src/Panel/Model.php
Lines 108 to 125 in eb47158
Needs the same treatment as the
$settings
variable: transform it into an array when it's a string different from"icon"
.Workaround
Pass an array to the image option:
The text was updated successfully, but these errors were encountered: