Dear Colleges
I am trying to use a script where I use elastica in order to access elasticsearch. I have test the script in my development environment and when I try to run it in production I get the following error message:
PHP Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]])
I have google this error and found that it is an issue solved. So I have update elastica to Release 5.0.0-beta1. My first question is if can I use with this realese elasticsearch 2.3 or if I have to update it to version 5.
My second question is that after update elastica, I try to run my script but I get an error message "PHP Parse error: syntax error, unexpected '[' ". How can I do?