views – Notice: Undefined offset: 0 in Errors.php

  • When I visit my site, it looks just fine.
  • After I enter the valid credentials and click login, I get a blank page but URL shows Even though, I get a blank page, I assume I logged in.
  • I can access admin panel and able to click all the buttons (structure, config, report, etc.)
  • While logged in, I click the home link to go to home page but I get the following error:

Notice: Undefined offset: 0 in
…/core/lib/Drupal/Core/Utility/Error.php on line 122

Notice: Undefined index: file in …/core/includes/ on line

Notice: Undefined index: line in …/core/includes/ on line

I can send you Error.php and files if you would like to see it.

I was working in views contextual filter which caused the above issue. In views contextual filter, I had “Provide a default value” selected and I changed it to “display all results…”. Then my site got broken.

enter image description here

How can I fix the above errors?