Reply To: PHP Warning: strpos(): Empty needle

Home Forums Product Support Forums Ajax Search Pro for WordPress Support PHP Warning: strpos(): Empty needle Reply To: PHP Warning: strpos(): Empty needle

#7419
Ernest Marcinko
Ernest Marcinko
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.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)