Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to process constructor error in Magento 2.4.1 #3076

Closed
EvasBa opened this issue Oct 4, 2023 · 6 comments
Closed

Impossible to process constructor error in Magento 2.4.1 #3076

EvasBa opened this issue Oct 4, 2023 · 6 comments
Assignees
Labels

Comments

@EvasBa
Copy link

EvasBa commented Oct 4, 2023

Hello,

When I execute the Magento 2.4.1 command: bin/magento setup:di:compile, I get an error:
In ClassReader.php line 45:
Impossible to process constructor argument Parameter #3 [ Magento\Framework\GraphQl\Query\Uid
$uidEncoder ] of Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products\ContextUpdater class

In ClassReader.php line 34:
Class Magento\Framework\GraphQl\Query\Uid does not exist

Please help me to understand why this error occurs and what to do?

@rbayet
Copy link
Collaborator

rbayet commented Oct 4, 2023

Hello @EvasBa,

Indeed it seems this class does not exists in 2.4.1 and 2.4.1-p1, so our compatibility matrix is not up-to-date anymore.
We probably missed this since 2.4.1* is no longer part of our code quality/unit tests scopes for 2.10.x.

So

  • either you can upgrade to a Magento version >= 2.4.2 and <2.4.6 and you can stick with your current requirement of Elasticsuite in ~2.10.0
  • or you'll need to downgrade to Elasticsuite 2.10.12.1

Regards,

@EvasBa
Copy link
Author

EvasBa commented Oct 5, 2023

Hi @rbayet ,
unfortunately, the same error occurred when I installed version 2.10.12.1

@vahonc
Copy link
Collaborator

vahonc commented Oct 9, 2023

Hello @EvasBa,

You need to downgrade Elasticsuite to the 2.10.11 version because in the 2.10.12.1 we introduce updating the search context according to support category_uid.

BR
Vadym

@github-actions
Copy link

This issue was waiting update from the author for too long. Without any update, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

@EvasBa
Copy link
Author

EvasBa commented Oct 24, 2023

The issue has been resolved, extension was downgraded to version 2.10.11

@github-actions github-actions bot reopened this Oct 24, 2023
@vahonc
Copy link
Collaborator

vahonc commented Oct 24, 2023

Great, I close this issue.

@vahonc vahonc closed this as completed Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants