Error: Call to a member function batch() on null in Drupal\search_api_milvus\Plugin\search_api\backend\SearchApimilvusBackend->indexItems()

Created on 27 December 2023, 12 months ago
Updated 6 March 2024, 10 months ago

When I run indexing task, the progress bar is stuck, and there is an error message on page /admin/reports/dblog as below:

Error: Call to a member function batch() on null in Drupal\search_api_milvus\Plugin\search_api\backend\SearchApimilvusBackend->indexItems() (line 214 of /var/www/d10/web/modules/contrib/search_api_milvus/src/Plugin/search_api/backend/SearchApiMilvusBackend.php)
#0 /var/www/d10/web/modules/contrib/search_api/src/Entity/Server.php(350): Drupal\search_api_milvus\Plugin\search_api\backend\SearchApimilvusBackend->indexItems()
#1 /var/www/d10/web/modules/contrib/search_api/src/Entity/Index.php(994): Drupal\search_api\Entity\Server->indexItems()
#2 /var/www/d10/web/modules/contrib/search_api/src/Entity/Index.php(930): Drupal\search_api\Entity\Index->indexSpecificItems()
#3 /var/www/d10/web/modules/contrib/search_api/search_api.module(116): Drupal\search_api\Entity\Index->indexItems()
#4 /var/www/d10/web/core/lib/Drupal/Core/Cron.php(335): search_api_cron()
#5 /var/www/d10/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Cron->Drupal\Core\{closure}()
#6 /var/www/d10/web/core/lib/Drupal/Core/Cron.php(343): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#7 /var/www/d10/web/core/lib/Drupal/Core/Cron.php(159): Drupal\Core\Cron->invokeCronHandlers()
#8 /var/www/d10/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#9 /var/www/d10/web/core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php(65): Drupal\Core\ProxyClass\Cron->run()
#10 [internal function]: Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate()
#11 /var/www/d10/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#12 /var/www/d10/vendor/symfony/http-kernel/HttpKernel.php(115): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#13 /var/www/d10/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate()
#14 /var/www/d10/web/core/lib/Drupal/Core/DrupalKernel.php(688): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate()
#15 /var/www/d10/web/index.php(22): Drupal\Core\DrupalKernel->terminate()
#16 {main}
๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ณChina fishfree

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024