"$this->state" is undefined, fatal error

Created on 20 September 2023, about 1 year ago
Updated 26 September 2023, about 1 year ago

Without the Key module, the configuration form for the backend cannot be saved due to this line:

    elseif ($provider == 'search_api_coveo') {
      $this->state->set($key, $credentials);
    }

"$this->state" is not defined in the create/constructor and therefore unavailble, resulting in:

Error: Call to a member function set() on null in Drupal\search_api_coveo\Plugin\search_api\backend\SearchApiCoveoBackend->submitConfigurationForm() (line 232 of /var/www/html/docroot/modules/custom/search_api_coveo/src/Plugin/search_api/backend/SearchApiCoveoBackend.php).

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevinquillen

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

Comments & Activities

Production build 0.71.5 2024