Migrate Form Error formAddAppSelect

Created on 8 September 2025, 30 days ago

Problem/Motivation

I was testing the new 1.7.2 version and when clicking the Migrate button I get an error, this worked fine in 1.7.1

TypeError: Drupal\solr_to_searchstax_ss_migration\Form\MigrateServerForm::formAddAppSelect(): Argument #1 ($form) must be of type array, null given, called in /var/www/html/docroot/modules/contrib/searchstax/solr_to_searchstax_ss_migration/src/Form/MigrateServerForm.php on line 163

Steps to reproduce

1. Visit the /admin/config/search/solr-to-searchstax-ss-migration form.
2. Click migrate, most likely will need to enter in searchstax auth.
3. See error after you auth.

Proposed resolution

πŸ› Bug report
Status

Active

Version

1.7

Component

General code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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

Merge Requests

Comments & Activities

  • Issue created by @NicholasS
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    I think it because in SearchStax I only have one account?

  • πŸ‡ΊπŸ‡ΈUnited States NicholasS
  • Pipeline finished with Canceled
    30 days ago
    Total: 244s
    #593267
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    So with this current patch I can get to the form to select "SearchStax app to which to migrate" but can't get past it both refresh and submit create errors.

    The website encountered an unexpected error. Try again later.
    
    TypeError: Drupal\searchstax\Service\Api::getApp(): Argument #1 ($account) must be of type string, null given, called in /var/www/html/docroot/modules/contrib/searchstax/solr_to_searchstax_ss_migration/src/Form/MigrateServerForm.php on line 777 in Drupal\searchstax\Service\Api->getApp() (line 220 of modules/contrib/searchstax/src/Service/Api.php).
    Drupal\solr_to_searchstax_ss_migration\Form\MigrateServerForm->validateForm(Array, Object)
    call_user_func_array(Array, Array) (Line: 82)
    
  • Pipeline finished with Failed
    30 days ago
    Total: 226s
    #593268
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    All of this stems from #3539475 I think from adding multiple account support, and I only have 1 account.

Production build 0.71.5 2024