Welcome, Guest. Please login or register.

ShoutBox!

Scrubmeister

Today at 10:32:40
Good to see the site back faster than ever. :)
 

Skhilled

Yesterday at 21:09:09
I've upgraded the server...more resources. ;)
 

Ken

Yesterday at 20:57:10
Now that you mention it...  :D
 

Skhilled

Yesterday at 20:47:19
...and, you should notice that the site is much faster.  :o
 

Ken

Yesterday at 20:31:37
Hey Steve.
 

Skhilled

Yesterday at 17:56:10
Re-read the message below...
 

Skhilled

2024-03-31, 15:22:06
Oh yeah, you need to upgrade the site first...
 

Ken

2024-03-30, 09:54:54
Whoops! I forgot that the SMF install here on OFF is out of date!  :'(
 

Ken

2024-03-30, 09:44:48
 Conga-Rats Steve!  :thumbup:
Me gonna install it here just for the fun of it!  :)
 

Skhilled

2024-03-29, 22:15:23
Released!  :D

Recent Topics

TP Articles


Search in titles
Search in article texts

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

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11667
  • 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: 8990
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • 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: 11667
  • 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: 8990
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • 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: 11667
  • 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: 8990
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • 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.1.4 / Tinyportal 3.0.0
Camera Craniums Running SMF 2.1.4 / Tinyportal 3.0.0, bridged with Coppermine 1.6.25
Guitarist Guild Running SMF 2.1.4 / Tinyportal 3.0.0
The Garden Machinery Forum Running SMF 2.1.4 / Tinyportal 3.0.0

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11667
  • 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.1.4 / Tinyportal 3.0.0
Camera Craniums Running SMF 2.1.4 / Tinyportal 3.0.0, bridged with Coppermine 1.6.25
Guitarist Guild Running SMF 2.1.4 / Tinyportal 3.0.0
The Garden Machinery Forum Running SMF 2.1.4 / Tinyportal 3.0.0

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11667
  • 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: 8990
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: Broken Search Function!
« Reply #10 on: October 04, 2017, 08:30:01 AM »
Mick, The Super Code Searcher...