Our FamilyForum
FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Code & Stuff => Topic started by: Ken on September 25, 2017, 01:41:00 PM
-
We seem to be experiencing a broken search function! :o
I'm getting this error page when trying to do a search:
Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/ourfamil/public_html/FamilyForum/Sources/SearchAPI-Custom.php on line 112
-
Yes, thought I had mentioned that before... I'm not sure what's going on with that. It's either PHP7 (but it's not doing it on my sites) or some kind of conflict somewhere...
-
You might have mentioned it before... but me disremembers. :o
-
I just checked your file against my file and that section is exactly the same. So, something else may be causing it somehow...
-
While doing some maintenance in the Media Gallery dashboard I'm getting this error when doing the "Rebuild Item Thumbnails" function... just wondering if this is tied to the other error posted above?
-
That error is probably due to PHP7...
-
Try this,
Open Sources/SearchAPI-Custom.php
Find
// Excluded phrases don't benefit from being split into subwords.
if (count($subwords) > 1 && $isExcluded)
continue;
Change to
// Excluded phrases don't benefit from being split into subwords.
if (count($subwords) > 1 && $isExcluded)
return;
-
All right Mick!!! :thumbup:
That works. laughing7
-
Cool, that's good to know. :thumbup:
Just in case you think I've suddenly developed coding skills, I can assure you I haven't lol.. I found the answer here, https://www.simplemachines.org/community/index.php?topic=553979.0
-
You could have remained mum and I would have never known. laughing7
-
Mick, The Super Code Searcher...