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

Can't install module #2564

Open
eBusinessAtlantique opened this issue May 12, 2022 · 10 comments
Open

Can't install module #2564

eBusinessAtlantique opened this issue May 12, 2022 · 10 comments
Labels

Comments

@eBusinessAtlantique
Copy link

Hello

I have M2.4.3-p1 and composer 2.0.

After a composer require smile/elasticsuite ~2.10.0

I do bin/magento setup:upgrade
But the process stops with an error starting with :

syntax error, unexpected 'QueryFactory' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)#0 /public_html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/home/ttt...')

What can go wrong ?

Thnaks

@vahonc
Copy link
Collaborator

vahonc commented May 12, 2022

Hello @eBusinessAtlantique,

Which version of PHP are you using?

BR,
Vadym

@eBusinessAtlantique
Copy link
Author

PHP 7.3.
If I use PHP7.4 the error is not present. Good !
But it says :
Module 'Magento_Indexer':
Running schema recurring...
elasticsuite_categories_fulltext view does not exist.

Any hint ?
Thanks

@vahonc
Copy link
Collaborator

vahonc commented May 12, 2022

Did you run bin/magento setup:upgrade before installing ElasticSuite, have you noticed any errors?

Check if your ElasticSearch is installed and running:

$ curl -XGET 'http://localhost:9200' //or use your alias name.

Also, check logs of Elasticsearch (/var/log/elasticsearch/) and Magento.

And the last, try reinstalling ElasticSuite from scratch.

BR,
Vadym

@eBusinessAtlantique
Copy link
Author

I had to run setup:upgrade twice to get rid of this error : elasticsuite_categories_fulltext view does not exist.
Module seems installed now
Thanks !

@OvalMedia
Copy link

PHP 7.4
Magento 2.4.4
composer require smile/elasticsuite ~2.10.0

Fresh install of magento including sample data. I can confirm that it took 2 setup:upgrade before install was complete. I got the same error the first time.

@radub
Copy link

radub commented Jun 28, 2022

After running setup:upgrade the second time I got "Asymmetric transaction rollback."
Magento 2.4.3
composer require smile/elasticsuite ~2.10.0

@vahonc
Copy link
Collaborator

vahonc commented Jun 30, 2022

Hello @radub,

First of all, the initial issue was resolved and therefore this ticket was closed. If you have the same or similar problem please create a new ticket with a little bit more details, especially about the configuration of your search engine. Because this error occurs in a situation when you have configured an external search engine (Solr or Elasticsearch) and it is unavailable during product/category save or re-indexation, etc.

BR,
Vadym

@jsjsvsvs
Copy link

I'm having this issue running setup:upgrade within our deploy script

@ebanolopes
Copy link

@eBusinessAtlantique @vahonc can someone re-open this thread? This is still an issue.

Steps to reproduce:

  1. Remove the extension if you have it installed, by running composer remove
  2. Run setup:upgrade
  3. Set any of Magento indexes to schedule, e.g., bin/magento index:set-mode schedule catalog_product_price
  4. Re-add the extension by running composer require
  5. Run setup:upgrade

The workaround is to set all indexes to realtime, install the extension and then change the indexes back to the original configuration.

@rbayet
Copy link
Collaborator

rbayet commented May 14, 2024

Hello @ebanolopes,

Could you specifiy the versions of both Magento and Elasticsuite you are still encountering this issue into ?

Regards,

@rbayet rbayet reopened this May 14, 2024
@rbayet rbayet pinned this issue May 14, 2024
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

7 participants