Plugin not found: "The "search_api_autocomplete_search" entity type does not exist."

Created on 18 August 2023, over 1 year ago
Updated 19 December 2023, about 1 year ago

Problem/Motivation

I got an error after I deployed from stage to prod

Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "search_api_autocomplete_search" entity type does not exist." at /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php line 139

Steps to reproduce

  • Stage has a different Solr server
  • Prod has a different Solr server
  • I only deployed code and config from stage to prod

Proposed resolution

After the error I cleared the cache site was working again.

  • Is there any way we can add a message to know the error?
  • is it possible more validations on this so the site does not show WSOD?

User interface changes

I did not do any changes while deploying from stage to prod.

🐛 Bug report
Status

Postponed: needs info

Version

1.7

Component

Framework

Created by

🇧🇴Bolivia alvarito75 Cochabamba

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alvarito75
  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇹Austria drunken monkey Vienna, Austria

    Sorry, that is much too unspecific to be able to tell you more. It just seems more like a problem in Core, or maybe with some other module – the search_api_autocomplete_search entity type is defined in this module, so we should always be free to use it and safe to assume it exists. Maybe some code somewhere is trying to access it at a time during installation/importing when it shouldn’t, but impossible to tell when and where. Maybe try debugging the stack trace of that fatal error, does that tell you anything?

  • 🇳🇱Netherlands florisg

    Confirm this message appears when configuration import `drush cim` on a Drupal site where the module is not in composer.json
    When it gets a composer require as stated on the module page, all works okay for me.

Production build 0.71.5 2024