Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
On a clean install of latest dev (8.0.0-beta10+124-dev) I get the following error repeatedly:
User error: "title" is an invalid render array key in Drupal\Core\Render\Element::children() (line 101 of C:\xampp\htdocs\drupal8\core\lib\Drupal\Core\Render\Element.php).
And also
User error: "name" is an invalid render array key in Drupal\Core\Render\Element::children() (line 101 of C:\xampp\htdocs\drupal8\core\lib\Drupal\Core\Render\Element.php).
Proposed resolution
Find one.
Remaining tasks
Fix.
User interface changes
??
API changes
??
Comment | File | Size | Author |
---|---|---|---|
#11 | 2489326-01.png | 45.9 KB | nithinkolekar |
Comments
Comment #1
mbrett5062 CreditAttribution: mbrett5062 commentedComment #2
mbrett5062 CreditAttribution: mbrett5062 commentedComment #3
danielbeeke CreditAttribution: danielbeeke commentedHi,
I had this issue too,
I used that inside html.html.twig and all was fine!
Comment #4
cilefen CreditAttribution: cilefen commentedCould someone add to the summary the steps to reproduce?
Comment #5
danielbeeke CreditAttribution: danielbeeke commentedI think I had the issue because I was updating from one dev version to another.
But I don't know for sure.
Comment #6
harings_rob CreditAttribution: harings_rob commentedHi,
This issues comes from updating beta-10 to beta-11
You should indeed, in your template replace:
{{ head_title }}
to:
{{ head_title|safe_join(' | ') }}
Cannot be reproduced as this is a fix?
See related issues. (https://www.drupal.org/node/2369987)
Comment #7
mbrett5062 CreditAttribution: mbrett5062 commentedJust clean install Drupal, then on each click of toolbar link, it will generate the two errors, check your watchdog listing.
I am working on a clean install right now, and will update issue summary with steps to reproduce.
Comment #8
harings_rob CreditAttribution: harings_rob commentedBartik as default template?
Comment #9
mbrett5062 CreditAttribution: mbrett5062 commentedThis has indeed been fixed as of Beta-11. No longer able to reproduce. Therefore marking closed.
Comment #10
nithinkolekar CreditAttribution: nithinkolekar commentedgot this exact error when space is installed and set as default.
this is the very first error I got with drupal 8 and will remember it :).
Comment #11
nithinkolekar CreditAttribution: nithinkolekar commentedattached the screenshot of log page
Comment #12
cilefen CreditAttribution: cilefen commented@nithinkolekar Usually we would move this to the issue queue (the Project field) of the theme because that seems to be the problem, not Drupal itself. Could that be the case here?
Comment #13
dpiClosing as outdated.