1

Suddenly my Drupal 8 admin panel is displaying some unwanted objects/arrays in different places. Below is a screenshot of the block layout page.

This is a localhost site that is not available to public.

closed as unclear what you're asking by Kevin, leymannx, Pierre.Vriens, mradcliffe, Chapabu Feb 5 at 0:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Is some sort of debugging happening? This is not normal. – Kevin Jan 31 at 1:46
  • Can you please let me know how I should check if any debugging feature is on? – user2574948 Jan 31 at 2:41
  • Current admin theme is 'seven' and if I change it to 'stark' the above info block disappears. If this was a bug in 'seven' theme, can I repair this theme? – user2574948 Jan 31 at 2:53
  • 1
    Yeah, simply replace it with one from a freshly downloaded Drupal. Or maybe you are using drupal-composer/drupal-project, then I think this is going to be fixed after running composer install once. – leymannx Jan 31 at 13:09
3

That looks like someone put a print_r or similar debugging call into your copy of Seven. If you are using git (which your project should be) you will be able to see the change in that tool and undo it. The other solution would be to download a fresh copy of Drupal and replace the files in the core directory with the ones in the fresh copy.

If there are multiple people working on the project, ask around about who was testing out ideas and ask them to undo the changes to the admin theme.

Not the answer you're looking for? Browse other questions tagged or ask your own question.