Conflict with Search API block module

Created on 7 December 2024, 5 months ago

Problem/Motivation

Using the core module with the Search API block β†’ module installed is fine, but after installing this contributed module it generates an error on the Tour configuration page:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "text" plugin does not exist. Valid plugin IDs for Drupal\tour\TipPluginManager are: in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Steps to reproduce

  1. On Drupal 10.3.10
  2. Install the core Tour module.
  3. Install the Search API block module, Search API Database module, and Search API module. This will add some tours.
  4. Install the contrib Tour module.
  5. Browse to the Tour configuration page - PHP error encountered.
  6. Uninstall the Search API block module.
  7. Browse to the Tour configuration page - loads successfully.
  8. Delete all existing tours.
  9. Install the Search API block module.
  10. Browse to the Tour configuration page - loads successfully.
  11. Create a tour and attempt to add a tip - there is no tip type 'Text' available.

Does the core Tour module need to be uninstalled first? I think I tried that as well and still had problems.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @gaddman
  • πŸ‡ͺπŸ‡¨Ecuador pabloveintimilla Quito

    Hi,

    This error appear without Search API block module.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Believe you are having some kind of cache issue. If installing the module broke things then our pipeline least would of caught that.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Have you investigated the cache approach. Personally don't believe search api has anything to do with it what your error is saying is that your site isn't discovering the plugins from tour.

  • Thanks @smustgrave, appreciate the help. Agree it's some sort of caching issue but it wasn't clear what exactly, since it wasn't resolved by a drush cr. Or any of the following which I've been trying in a mix of different orders:

    • truncating the cache_discovery table
    • reinstalling modules
    • composer reinstalling everything
    • re-running the tour update hook
    • restore from backup

    In the end going back to an old backup and making sure to do a server restart at key steps got it working. Similar symptoms to the issues described at https://www.drupal.org/project/drupal/issues/3440918 πŸ› The "" plugin does not exist Active , which suggest updating some other module or vendor dependency could have triggered it. And that's something I'd done in my local environment prior to attempting the Tour install. Anyway, it's not a conflict with the Search API Block module and doesn't seem to be specific to this Tour module, so closing this.

Production build 0.71.5 2024