Kunstmaan / KunstmaanBundlesCMS

An advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.
https://kunstmaancms.be
MIT License
402 stars 186 forks source link

Search is broken on all my KunstmaanBundlesCMS websites #843

Closed iknowfoobar closed 8 years ago

iknowfoobar commented 8 years ago

I can't be sure when this happened as it has only just been reported by one of our clients. However when we tested it we are now receiving the same error on all our KunstmaanBundleCMS websites that use the search feature.

When you perform a search we get a 500 error from the results page with the following error:

[Symfony\Component\Debug\Exception\FatalErrorException]                                                   
  Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) 

Is anyone else seeing this? Has a 3rd party package been updated that has made a change?

Composer packages: ruflin/elastica 2.3.1 kunstmaan/bundles-cms 3.4.1 symfony/symfony v2.7.7

Elastic search version: 2.1.0 PHP version: PHP 5.5.9-1ubuntu4.13

We are seeing the same problem on older versions of KunstmaanBundlesCMS as well which had previously been working fine

iknowfoobar commented 8 years ago

I also get the same error when running either of the CLI commands

app/console kuma:search:setup
app/console kuma:search:populate full
kimausloos commented 8 years ago

Hi, this is actually an error in elastica (see https://github.com/ruflin/Elastica/issues/974 ). This probably means you are using elasticsearch 2.0, a temporary fix is to downgrade to 1.7.x, this fixes the exception...

iknowfoobar commented 8 years ago

Hi, thanks. Yup going back to 1.7.x fixed everything.