I get WSOD when I try to access the views page (admin/structure/views).

I get the notice below in the error log followed by the error.

Notice: Undefined index: id in Drupal\Core\Config\Entity\Query\Query->Drupal\Core\Config\Entity\Query\@closure() (line 92 of /home/pierost0/public_html/core/lib/Drupal/Core/Config/Entity/Query/Query.php).

Drupal\Core\Entity\EntityMalformedException: The "view" entity cannot have a URI as it does not have an ID in Drupal\Core\Entity\Entity->toUrl() (line 189 of /home/pierost0/public_html/core/lib/Drupal/Core/Entity/Entity.php).

I have disabled all views through Drush but there's seems to be one empty view. Take notice on the screenshot. An empty view is enabled.

enter image description here

Is that view my problem? Where are the views files, or entries in the db so I can have a look for the solution there.

This question has an open bounty worth +50 reputation from pierostz ending in 4 days.

This question has not received enough attention.

  • drush cex and then examining the files core/config/sync/views.view.*.yml might be helpful for debugging. – Hudri Dec 7 at 15:48
  • The command didn't help. The path you are pointing doesn't exit. Mine is core/config/ and there's no sync folder. – pierostz Dec 7 at 15:58
  • 1
    The error says one of your views does not have an ID, in views thats the machine name. – No Sssweat Dec 8 at 15:52

If you have access to the database check the table config for all entries starting with views.view.*
One of these entries might be empty or with a corrupt uuid. If so, take a backup of your database and try to manually delete this entry and see what happens.

  • Thanks for the input. I'll have a look on that table. – pierostz 2 days ago

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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