Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2024-08-09, 18:19:29
Awww! Poor thing! LOL
 

Ken

2024-08-09, 09:20:52
 

Skhilled

2024-07-06, 10:33:18
 :D
 

Ken

2024-07-06, 06:40:47
Happy Saturday after the 4th of July!
 :fireworks:
 

Skhilled

2024-07-04, 20:27:02
Happy Day Off From Work!  :D
 

Ken

2024-06-25, 06:23:12
84... who knew?  laughing7
...2013 was my *magic* year
 

Skhilled

2024-06-14, 22:09:12
I hope so! LOL
 

Ken

2024-06-14, 21:41:30
My B-Day is forthcoming and maybe it will be far enough along so that I can be a regular Dancing Fool for that day!!! :banana: :2funny:
 

Ken

2024-06-14, 21:38:38
Happy Friday everyone! I'm  SOOO glad to see Friday and not just because it's the weekend, but because it marks one more day in the recovery of my foot!  laughing7

Scrubmeister

2024-04-19, 10:32:40
Good to see the site back faster than ever. :)

Recent Topics

TP Articles


Search in titles
Search in article texts

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

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • 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: 9424
  • 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: 11942
  • 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: 9424
  • 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: 11942
  • 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: 9424
  • 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
YouTube

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • 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
YouTube

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • 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: 9424
  • 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...