This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Debug.log error – undefined index/offset

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Debug.log error – undefined index/offset Reply To: Debug.log error – undefined index/offset

#19741
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

Make sure to open the search options on the back-end and save them, so the data is consistent. If that does not help, then change line 52 (in the code you linked) from this:

[code]if ( count($terms) == 1 && $terms[-1][‘id’] == -1 ) {[/code]

to this:

[code]if ( count($terms) == 1 && isset($terms[-1], $terms[-1][‘id’]) && $terms[-1][‘id’] == -1 ) {[/code]

That will do the trick!

Thank you for letting us know, I will make sure to include this fix in the upcoming release.