magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.35k stars 9.27k forks source link

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

Open densen45 opened 3 weeks ago

densen45 commented 3 weeks ago

Preconditions and environment

Steps to reproduce

Expected result

Actual result

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

m2-assistant[bot] commented 3 weeks ago

Hi @densen45. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 3 weeks ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

m2-assistant[bot] commented 3 weeks ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 3 weeks ago

Hi @densen45

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4.7 instance and the issue is reproducable.

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

  1. Open a terminal and go to the Magento root directory
  2. 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
  3. Set the mode to realtime: bin/magento indexer:set-mode realtime catalogsearch_fulltext

We are seeing the below error in 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 [] []

Please refer the attached screenshots

Screenshot 2024-06-05 at 3 33 31 PM Screenshot 2024-06-05 at 3 44 42 PM
github-jira-sync-bot commented 3 weeks ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 2 weeks ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 1 week ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12174 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 week ago

:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.