DS search is not working at all for me after many searches and following the video. Getting this error

Warning: Invalid argument supplied for foreach() in node_ds_search_execute() (line 437 of C:\xampp\htdocs\*\sites\all\modules\ds\modules\ds_search\ds_search.module).

Comments

jci’s picture

Subscribed... same error!

akash2824’s picture

I followed all the instructions for configuring ds search but nothing worked.

Finally I achieved my goal, without Display Suite Search, by following this

Hope it helps you.

jcsnyder’s picture

same error using ds

swentel’s picture

Status: Active » Closed (cannot reproduce)

I can't reproduce this, so without clear steps I won't be able to help much.

crutch’s picture

I just ended up using the core search on the one project. But doing another project that will run through next year where I may try again. Thanks for checking.

designarti’s picture

Version: 7.x-2.2 » 7.x-2.6
Issue summary: View changes
Status: Closed (cannot reproduce) » Active

Same problem here.

Warning: Invalid argument supplied for foreach() in node_ds_search_execute() (line 484 in sites/all/modules/ds/modules/ds_search/ds_search.module).
This is my line 484
foreach ($find as $item) {

I've done everything you've throughly described in the video on youtube and I'm getting this error.
No errors till I've got to type and search a word.

Drupal version - 7.26.

Please, let me know if you need more info regarding this issue.

rbeaujard’s picture

Getting the same error here as well. Anyone figure this out?

BTW I noticed the errors occurred after I either added custom fields or switched from using the teaser, now quite sure. Following the steps in the YouTube video worked for me up to one of those points.

RJB

rbeaujard’s picture

OK, for anyone else running into this. Check if you have set the search results returned limit to "0" expecting unlimited results. I had this set and once I changed it to a positive integer the custom search worked again. Hope this helps.

I'm new here, but I guess I should log this somewhere as a bug?

RJB

takirami’s picture

I also get the same error when setting the limit to zero for unlimited.

aspilicious’s picture

Status: Active » Fixed

Made some changes, you can add 0 now as option, but I don't think it's a good idea anyway :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Anonymous’s picture

Thanks rbeaujard #8 changing the 0 to 100 fixed my issues.

peetrovich’s picture

Have the same issue, D7.61, ds_search 2.16.
Solution #8 helped.
Thanks to rbeaujard!