Skip to content

Error when setting indexer 'catalogsearch_fulltext' to 'realtime' #38788

Open
@densen45

Description

@densen45

Preconditions and environment

  • Magento version 2.4.7
  • Elasticsearch 7 or 8 installed (error happens with both, I don't no if the same error occurs with OpenSearch)

Steps to reproduce

  • Open a terminal and go to the Magento root directory
  • Make sure the 'catalogsearch_fulltext' is in schedule mode ("Update by Schedule"): bin/magento indexer:show-mode and if necessary bin/magento indexer:set-mode schedule catalogsearch_fulltext
  • Set the mode to realtime: bin/magento indexer:set-mode realtime catalogsearch_fulltext

Expected result

  • The mode is set without errors in the log

Actual result

  • The mode is set but the following error is logged in var/log/system.log:
main.CRITICAL: Type Error occurred when creating object: Magento\CatalogSearch\Model\Indexer\Fulltext\Interceptor, Magento\CatalogSearch\Model\Indexer\Fulltext\Interceptor::__construct(): Argument #7 ($data) must be of type arr
ay, null given, called in /path/to/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121 [] []

Additional information

The error can also be found in the system.log if you change the indexer mode from the adminhtml.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: CatalogComponent: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.4.7Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions