I encountered a problem after updating a Drupal 8 website recently. When using the search base field, I have this exception :

Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException : The "search_page" entity type did not specify a "search" form class. dans Drupal\Core\Entity\EntityTypeManager->getFormObject() (ligne 184 de /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

I have to confess that I don't really understand the problem and where/how to fix it. Does it tell something to someone ?

Thing quite strange : I made other Drupal 8 core updates on other websites, and I didn't have this problem.

Thanks a lot for your help :)

  • The error message is correct, search_page has no operation search anymore, only the standard add, edit and delete. Doubt this is a core issue, more likely a module. Can you provide a verbose error message with a stack trace? This should tell which code is responsible to call the not existing operation. – 4k4 May 24 at 18:42
  • First, thanks for your help. Unfortunately, I only have this error trace, which is the same on Drupal Recent log messages (admin) and apache logs... I will re-check if some contrib or custom module can generate this error. – gwena May 24 at 20:02

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.

Browse other questions tagged or ask your own question.