mmanos / laravel-search

A search package for Laravel 5.
MIT License
352 stars 59 forks source link

Error in Laravel 4.2.17 - base64_decode() expects parameter 1 to be string, array given #23

Closed hmpmarketing closed 9 years ago

hmpmarketing commented 9 years ago

Hi,

When I run the following line on my index:

$results = Search::index('acpdata')->search('campaign_id', 272)->get();

I get this error:

base64_decode() expects parameter 1 to be string, array given

Error is @ line 190 of file /vendor/mmanos/laravel-search/src/Mmanos/Search/Index/Elasticsearch.php

json_decode(base64_decode(array_get($hit, '_source._parameters', array())), true)

Help!

Regards

hmpmarketing commented 9 years ago

Is it fixed?

mmanos commented 9 years ago

Yes, it should be. I merged in the pull request from @dmyers.

hmpmarketing commented 9 years ago

Thanks! will test

hmpmarketing commented 9 years ago

@mmanos

Still broken, new error on Line 191

Call:

$results = Search::index('acpdata')->search('campaign_id', 3789)->get();

{"error":{"type":"ErrorException","message":"array_merge(): Argument #2 is not an array","file":"vendor\/mmanos\/laravel-search\/src\/Mmanos\/Search \/Index\/Elasticsearch.php","line":191}}

hmpmarketing commented 9 years ago

Sorry dont understand what that means. Error is coming up with Laravel 4.2

dmyers commented 9 years ago

@hmpmarketing Sorry about that, it only fixed half of the issue. There is a new update which has it all fixed.