Steps to reproduce:

  • Go to admin/structure/views
  • Add a new view via the wizard, with settings Show users of type User
  • Click Save and edit

You'll get a PHP exception in the Apache logs:

Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "" plugin does not exist." at /var/www/html/head/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 57, referer: http://head.local/admin/structure/views/add

CommentFileSizeAuthor
#10 2300015-10.patch1.69 KBolli
#10 2300015-test_only.patch904 bytesolli
#7 2300015-7.patch822 bytesolli
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anavarre’s picture

Issue tags: +VDC
dawehner’s picture

Mh, I cannot reproduce it, the users view just works fine and I don't see any errors anywhere.

Can you try to enable error display in drupal and look whether you see some backtrace?

anavarre’s picture

I could reproduce again by checking out 8.x just now. Not sure that's the backtrace you're looking for but printing all errors in Drupal gave me this:

    Notice: Undefined index: in Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFiltersUser() (line 881 of core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php).

    Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFiltersUser(Array, Array)
    Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFilters(Array, Array)
    Drupal\views\Plugin\views\wizard\WizardPluginBase->buildDisplayOptions(Array, Array)
    Drupal\views\Plugin\views\wizard\WizardPluginBase->instantiateView(Array, Array)
    Drupal\views\Plugin\views\wizard\WizardPluginBase->validateView(Array, Array)
    Drupal\views_ui\ViewAddForm->validate(Array, Array)
    call_user_func_array(Array, Array)
    Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Array)
    Drupal\Core\Form\FormValidator->doValidateForm(Array, Array, 'view_add_form')
    Drupal\Core\Form\FormValidator->validateForm('view_add_form', Array, Array)
    Drupal\Core\Form\FormBuilder->processForm('view_add_form', Array, Array)
    Drupal\Core\Form\FormBuilder->buildForm('view_add_form', Array)
    Drupal\Core\Controller\FormController->getContentResult(Object)
    call_user_func_array(Array, Array)
    Drupal\Core\Controller\HtmlPageController->getContentResult(Object, Array)
    Drupal\Core\Controller\HtmlPageController->content(Object, Array)
    call_user_func_array(Array, Array)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
    Drupal\Core\HttpKernel->handle(Object, 1, 1)
    Drupal\Core\DrupalKernel->handle(Object)

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 57 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

    Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition([Array], NULL, TRUE)
    Drupal\Core\Plugin\DefaultPluginManager->getDefinition(NULL)
    Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFiltersUser([Array], [Array])
    Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFilters([Array], [Array])
    Drupal\views\Plugin\views\wizard\WizardPluginBase->buildDisplayOptions([Array], [Array])
    Drupal\views\Plugin\views\wizard\WizardPluginBase->instantiateView([Array], [Array])
    Drupal\views\Plugin\views\wizard\WizardPluginBase->validateView([Array], [Array])
    Drupal\views_ui\ViewAddForm->validate([Array], [Array])
    call_user_func_array([Array], [Array])
    Drupal\Core\Form\FormValidator->executeValidateHandlers([Array], [Array])
    Drupal\Core\Form\FormValidator->doValidateForm([Array], [Array], view_add_form)
    Drupal\Core\Form\FormValidator->validateForm(view_add_form, [Array], [Array])
    Drupal\Core\Form\FormBuilder->processForm(view_add_form, [Array], [Array])
    Drupal\Core\Form\FormBuilder->buildForm(view_add_form, [Array])
    Drupal\Core\Controller\FormController->getContentResult(Symfony\Component\HttpFoundation\Request)
    call_user_func_array([Array], [Array])
    Drupal\Core\Controller\HtmlPageController->getContentResult(Symfony\Component\HttpFoundation\Request, [Array])
    Drupal\Core\Controller\HtmlPageController->content(Symfony\Component\HttpFoundation\Request, [Array])
    call_user_func_array([Array], [Array])
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Symfony\Component\HttpFoundation\Request, 1)
    Symfony\Component\HttpKernel\HttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
    Drupal\Core\HttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
    Drupal\Core\DrupalKernel->handle(Symfony\Component\HttpFoundation\Request)

If you'd like something more detailed, please let me know?

dawehner’s picture

It still works perfect for me.

anavarre’s picture

I tried again both from a local 8.x checkout and directly on simplytest.me (8.x) to rule out any oddity on my local setup and still am able to reproduce in both scenarios. Would a screencast help or do you want to discuss things further in IRC?

dawehner’s picture

Sure, better than nothing. I tried it yesterday again and it still worked.

olli’s picture

Status: Active » Needs review
FileSize
822 bytes
Berdir’s picture

Fix looks good, I think @dawehner was missing the "of type User" part, which doesn't make sense to have and the patch from @olli removes. Do we need a test for this?

dawehner’s picture

Issue tags: +Needs tests

Nope, I created user views. I can read.

olli’s picture

Issue tags: -Needs tests
FileSize
904 bytes
1.69 KB

The last submitted patch, 10: 2300015-test_only.patch, failed testing.

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, looks good to me :)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 67c051d and pushed to 8.x. Thanks!

  • alexpott committed 67c051d on 8.x
    Issue #2300015 by olli | anavarre: Fixed PluginNotFoundException on user...

Status: Fixed » Closed (fixed)

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