Welcome, Guest. Please login or register.

ShoutBox!

 

Ken

2021 Mar 19 03:46:54
 

Skhilled

2021 Mar 14 14:19:39
 :2funny:
 

Ken

2021 Mar 14 11:04:40
 

Skhilled

2021 Feb 02 11:44:35
YEAH!
 

Ken

2021 Feb 01 08:17:28
Black History Month
Starts today!
 

Ken

2021 Jan 21 12:38:16
 

Ken

2021 Jan 13 08:33:33
 

Skhilled

2021 Jan 02 10:25:49
I didn't realized that I was still logged in here. LOL
 

Ken

2021 Jan 02 08:06:53
Happy New Years!!!  laughing7
 

Skhilled

2021 Jan 01 02:24:34
Happy New Years, sleepy head! ;D

Recent Topics

Author Topic: Broken Search Function!  (Read 1159 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 9971
  • Gender: Male
  • View Gallery
Broken Search Function!
« 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:
Code: [Select]
Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/ourfamil/public_html/FamilyForum/Sources/SearchAPI-Custom.php on line 112
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 6621
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • View Gallery
    • Buildz Hosting
Re: Broken Search Function!
« Reply #1 on: September 26, 2017, 07:47:53 AM »
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...

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 9971
  • Gender: Male
  • View Gallery
Re: Broken Search Function!
« Reply #2 on: September 26, 2017, 08:08:29 AM »
You might have mentioned it before... but me disremembers.  :o
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 6621
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • View Gallery
    • Buildz Hosting
Re: Broken Search Function!
« Reply #3 on: September 26, 2017, 08:40:29 AM »
I just checked your file against my file and that section is exactly the same. So, something else may be causing it somehow...

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 9971
  • Gender: Male
  • View Gallery
Re: Broken Search Function!
« Reply #4 on: September 26, 2017, 05:21:07 PM »
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?
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 6621
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • View Gallery
    • Buildz Hosting
Re: Broken Search Function!
« Reply #5 on: September 27, 2017, 07:47:22 AM »
That error is probably due to PHP7...

Offline Mick

Re: Broken Search Function!
« Reply #6 on: October 03, 2017, 01:36:45 PM »
Try this,

Open Sources/SearchAPI-Custom.php
Find
Code: [Select]
// Excluded phrases don't benefit from being split into subwords.
if (count($subwords) > 1 && $isExcluded)
continue;
Change to
Code: [Select]
// Excluded phrases don't benefit from being split into subwords.
if (count($subwords) > 1 && $isExcluded)
return;
Tinyportal.net Running SMF 2.0.14 / Tinyportal 1.3R
Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2, bridged with Coppermine 1.5.36, SMF Arcade 2.5 RC2
Guitarist Guild Running SMF 2.0.14 / Tinyportal 1.2R
The Garden Machinery Forum Running SMF 2.0.14 / Tinyportal 1.3R

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 9971
  • Gender: Male
  • View Gallery
Re: Broken Search Function!
« Reply #7 on: October 03, 2017, 02:56:57 PM »
All right Mick!!!  :thumbup:

That works.  laughing7

"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Mick

Re: Broken Search Function!
« Reply #8 on: October 03, 2017, 04:10:17 PM »
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
Tinyportal.net Running SMF 2.0.14 / Tinyportal 1.3R
Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2, bridged with Coppermine 1.5.36, SMF Arcade 2.5 RC2
Guitarist Guild Running SMF 2.0.14 / Tinyportal 1.2R
The Garden Machinery Forum Running SMF 2.0.14 / Tinyportal 1.3R

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 9971
  • Gender: Male
  • View Gallery
Re: Broken Search Function!
« Reply #9 on: October 03, 2017, 09:22:55 PM »
You could have remained mum and I would have never known.  laughing7
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 6621
  • Gender: Male
  • Once you stop trying to learn, you stop living!
  • View Gallery
    • Buildz Hosting
Re: Broken Search Function!
« Reply #10 on: October 04, 2017, 08:30:01 AM »
Mick, The Super Code Searcher...