I am a complete newbie in OSClass ( I am using 3.5.3 version of Aiclassy theme) and have been in agony over this for more than a few days. I have a search box on top of my homepage and it doesn't work. When I try to search, it gives me "too many redirects" error and "doSearch() not defined" error in chrome console tool. I am probably missing osc query item() somewhere, but I do not know where to put it. I attached a zip file with header.php, search.php, main.php and functions.php. It's named My_files.zip. I tried looking at similar examples, but couldn't figure out what to do with my own code.
I am going out of my mind and I wouldn't be asking for help here if I knew the solution myself. So I am begging you good people to tell me how to adjust my code to make this work, because I truly do not know what to do.
Thank you all in advance.