Advertisement:

Author Topic: SOLVED: How to make search box in Aiclassy theme work  (Read 1464 times)

Nancy1864

  • Newbie
  • *
  • Posts: 11
SOLVED: How to make search box in Aiclassy theme work
« on: March 19, 2016, 10:03:13 pm »
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 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.

« Last Edit: March 20, 2016, 10:56:06 pm by Nancy1864 »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to make search box in Aiclassy theme work
« Reply #1 on: March 19, 2016, 11:45:04 pm »
Hi,

"doSearch() not defined" shouldn't be enough to provoke an infinite loop. Have you tried switching to Bender? ???

Regards

Nancy1864

  • Newbie
  • *
  • Posts: 11
Re: How to make search box in Aiclassy theme work
« Reply #2 on: March 20, 2016, 10:13:17 am »
Hi,
Thank you for the reply. Switching to another theme is not an option for me, because I would loose all custom settings if I'm not wrong? I need to modify my current code but I do not know how. Can you help?
Regards.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to make search box in Aiclassy theme work
« Reply #3 on: March 20, 2016, 12:52:58 pm »
You need to find out if the problem is provoked by your AIClassy theme or is general. So switch to Bender for a moment (you won't lose anything related to AIClassy), make some searchs...

Regards

Nancy1864

  • Newbie
  • *
  • Posts: 11
Re: How to make search box in Aiclassy theme work
« Reply #4 on: March 20, 2016, 04:54:58 pm »
Hi,

I changed to another theme, but the problem persists...I have attached several files in a zip file in my original message. If you can, please take a look. Thank you very much,

Regards

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to make search box in Aiclassy theme work
« Reply #5 on: March 20, 2016, 05:02:56 pm »
Then the problem is not in AIClassy, could be config.php or even .htaccess. Are you using permalinks?

Open your config.php and copy here the lines defining 'REL_WEB_URL' and 'WEB_PATH'

Regards


Nancy1864

  • Newbie
  • *
  • Posts: 11
Re: How to make search box in Aiclassy theme work
« Reply #6 on: March 20, 2016, 05:25:26 pm »
I am not using friendly permalinks.
« Last Edit: March 20, 2016, 10:54:28 pm by Nancy1864 »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to make search box in Aiclassy theme work
« Reply #7 on: March 20, 2016, 05:38:32 pm »
Try:

define('REL_WEB_URL', '/');

Nancy1864

  • Newbie
  • *
  • Posts: 11
Re: How to make search box in Aiclassy theme work
« Reply #8 on: March 20, 2016, 05:53:08 pm »
That's it!!! Thank you so much!!! You saved me! Thanx a million!


Have a wonderful day and thanx again!

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to make search box in Aiclassy theme work
« Reply #9 on: March 20, 2016, 05:55:27 pm »
You're welcome. :)

Regards