sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

cannot create elasticsearch index #649

Closed eyeball-bot closed 3 weeks ago

eyeball-bot commented 9 months ago
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)

alexander-schranz commented 6 months ago

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.*.