When saving the permissions or refreshing a page after a cache rebuild, I get the following errors:

User error: "0" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).

When debugging, the error is triggered due to the 0 key in the following array:

I have the feeling something in the admin toolbar module is causing this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nitebreed created an issue. See original summary.

Nitebreed’s picture

Issue summary: View changes
GaëlG’s picture

Project: Admin Toolbar » Localization client
Version: 8.x-1.19 » 8.x-1.x-dev
Status: Active » Needs review
FileSize
421 bytes

I had the same problem, and Localization Client UI was guilty.

ahmadhalah’s picture

Works like charm.

AndrewsizZ’s picture

Status: Needs review » Reviewed & tested by the community

yep error fixed, tested on two projects

michielnugter’s picture

+1 on the patch. I experienced the same problem and the patch fixes it.

  • SebCorbin committed dd78250 on 8.x-1.x authored by GaëlG
    Issue #2872668 by GaëlG, Nitebreed: User error: "0" is an invalid render...
SebCorbin’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rachanakamlesh’s picture

Hi,

I am facing the same issue. Please give me some clue or help.

Thanks,

tjtj’s picture

Me also. How does one find the offending module?

tjtj’s picture

Where does the patch go??

Ammar Qala’s picture

+1, this patch solved my problem