Cakephp 3 elasticsearch issue


#1

I have installed elasticsearch on cakephp 3 As told here https://book.cakephp.org/3.0/en/elasticsearch.html.
But I am getting an error
Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]])
File /vendor/ruflin/elastica/lib/Elastica/Exception/ResponseException.php
Line: 34
Elasticsearch version -> 5.0 AND PHP version -> 5.6.30
Please help me if any one knows the solution.