getgrav / getgrav/grav-plugin-admin

Backend admin error when opening a content-page

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

Description

After updating to v1.7.49.5 - Admin v1.10.50, I can no longer open any content pages in the backend.

Error: An exception has been thrown during the rendering of a template ("Array to string conversion"). Twig\Error\RuntimeError - \user\plugins\form\templates\forms\fields\select\select.html.twig:72.

Here line 72:
`{{ item_value|t|raw }}`

- All plugins have been updated.
- The frontend is not affected.

Thank you for the quick help. Thomas

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by opening a content page in the backend after the reported updates. Start at user/plugins/form/templates/forms/fields/select/select.html.twig line 72 and trace which value reaches the option rendering; done means backend content pages open without the Array to string conversion error while the frontend remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.