sulu/SuluArticleBundle

cannot create elasticsearch index

Closed this issue · 1 comments

Q A
Bug? yes
New Feature? no
SuluArticleBundle Version 2.5.1
Sulu Version 2.5.10
Elasticsearch php lib 7.9.0

Actual Behavior

php bin/console ongr:es:index:create
In Connection.php line 347:
                                                                                                                                                     
  Warning: Elasticsearch\Connections\Connection::Elasticsearch\Connections\{closure}(): Argument #2 ($key) must be passed by reference, value given  
                                                                                                                                                     

Expected Behavior

no error

Steps to Reproduce

create new sulu project, install this bundle and follow instruction

Possible Solutions

If you have already ideas how to solve the issue, add them here.
(remove this section if not needed)

The Elasticsearch 7.9.0 version you use is not compatible with the PHP Version you use. I recommend you update to a newer elasticsearch client and server version. Example Sulu-Demo uses 7.17.*.