elasticsuite
elasticsuite copied to clipboard
Can't install module
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
Hello @eBusinessAtlantique,
Which version of PHP are you using?
BR, Vadym
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
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
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 !
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.
After running setup:upgrade the second time I got "Asymmetric transaction rollback." Magento 2.4.3 composer require smile/elasticsuite ~2.10.0
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
I'm having this issue running setup:upgrade within our deploy script
@eBusinessAtlantique @vahonc can someone re-open this thread? This is still an issue.
Steps to reproduce:
- Remove the extension if you have it installed, by running composer remove
- Run setup:upgrade
- Set any of Magento indexes to schedule, e.g., bin/magento index:set-mode schedule catalog_product_price
- Re-add the extension by running composer require
- 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.
Hello @ebanolopes,
Could you specifiy the versions of both Magento and Elasticsuite you are still encountering this issue into ?
Regards,