News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Search "This topic"

Started by szinski, March 27, 2025, 01:20:53 PM

Previous topic - Next topic

szinski

I'm encountering an odd issue with searching.

When anyone uses the SEARCH "This topic" feature, they get Sorry, no matches were found. But if I (as administrator) use it, I get the expected results.

I've tested this on three of my 2.1.4 forums (two production, one sandbox), tweaking permissions and settings, but see the same behavior. Only the site administrator gets results (I even created a test group and gave it all permissions).

HOWEVER, I was able to fix the issue by disabling "Post moderation" (I tried all combinations of settings for Post Moderation and only disabling it completely fixed the problem).

Any suggestions to get this working?

shawnb61

Yep, it's a bug in 2.1.x and 2.0.x. 

Discussed here:
https://www.simplemachines.org/community/index.php?topic=588649.0

Proposed fix here for 2.1.4:
https://github.com/SimpleMachines/SMF/pull/8332

I've been running the above fix on my site & it has addressed the issue.

If you do a temp fix, you will need to revert that change before applying any future patches, etc. 
A question worth asking is born in experience & driven by necessity. - Fripp

szinski

Thank you!!

I implemented the workaround and it's fixed. Will need to remember to revert back to the old Search.php the next time I upgrade.

Appreciate your help and resolution.  :)

Advertisement: