I'm running Magento 2.3.1 on CentOS 7.6. ElasticSearch 6.1.1 has been installed successfully. Also, Magento test shows Elastic Search is working.
I'm receiving this error when indexing:
Warning: Illegal string offset 'indices' in .../vendor/magento/module-elasticsearch-6/Model/Client/Elasticsearch.php on line 168
I'm receiving this error in the exceptions.log when search is done:
[2019-06-17 17:55:21] main.CRITICAL: Warning: Illegal string offset 'version' in .../vendor/magento/module-elasticsearch/Elasticsearch5/Model/Client/Elasticsearch.php on line 390 {"exception":"[object] (Exception(code: 0): Warning: Illegal string offset 'version' in .../vendor/magento/module-elasticsearch/Elasticsearch5/Model/Client/Elasticsearch.php on line 390 at .../vendor/magento/framework/App/ErrorHandler.php:61)"} []
Any ideas?