Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › PHP Warning: strpos(): Empty needle › Reply To: PHP Warning: strpos(): Empty needle
January 25, 2016 at 8:47 am
#7419
Keymaster
Hi Douglas,
Thank you for the proper details, I have found the problem. In rare cases (like empty spaces, tabs) are passes to the suggestion algorithm, which was trimming these characters naturally, leaving an empty phrase, which caused this warning message.
I corrected by adding 1 extra line to check for empty string, the issue should be gone now. I’m also correcting this in the upcoming version, as this was an unknown bug yet.