News:

Wondering if this will always be free?  See why free is better.

Main Menu

2.0.14 search function http error 500

Started by forumdraco, May 18, 2017, 09:40:47 AM

Previous topic - Next topic

forumdraco

Getting a http error 500 when I try to use the search function after a fresh install (and imported database). This error also comes up in admin -> search -> settings. Just doing tests for now.

Server error log generates this:
2017/05/18 15:37:18 [error] 5529#5529: *1208 FastCGI sent in stderr: "PHP message: PHP Fatal error:  'continue' not in the 'loop' or 'switch' context in /home/myuser/web/myhost/public_html/Forum/Sources/SearchAPI-Custom.php on line 112" while reading response header from upstream, client: myip, server: myhost, request: "POST /Forum/index.php?action=search2 HTTP/1.0", upstream: "fastcgi://127.0.0.1:9003", host: "myhost", referrer: "http://myhost/Forum/index.php?action=admin;area=packages"

Current PHP version: 7.0.15-0ubuntu0.16.04.4

Regards,
FD

Kindred

Looks like the API is not compatible with 2.0.14
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vbgamer45

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;
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

forumdraco

Thanks, I knew it probably was a small bug but I'm not a PHP hero. ;-)

Advertisement: