*

invisible

  • **
  • 26 posts
Search not working[solved]
« on: October 23, 2022, 12:47:03 PM »
Search function is not showing any results on my website running osclass v8.0.2 with osclass wizards theme. Please help.
« Last Edit: October 29, 2022, 04:40:14 AM by invisible »

*

MB Themes

Re: Search not working
« Reply #1 on: October 23, 2022, 01:01:26 PM »
Review your sql queries.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

invisible

  • **
  • 26 posts
Re: Search not working
« Reply #2 on: October 24, 2022, 04:28:21 AM »
Can you please explain how to do that??

*

MB Themes

Re: Search not working
« Reply #3 on: October 24, 2022, 09:16:40 AM »
Edit config.php to log database queries. Then they are visible at bottom of each page.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

invisible

  • **
  • 26 posts
Re: Search not working
« Reply #4 on: October 26, 2022, 07:38:02 AM »
I don't know how to do it in config.php. But there is error in my debug file.

[12-Sep-2022 05:16:15 Asia/Kolkata] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/****/public_html/oc-content/themes/osclasswizards/search-sidebar.php:23
Stack trace:
#0 /home/*****/public_html/oc-includes/osclass/helpers/hDefines.php(367): require()
#1 /home/*****/public_html/oc-content/themes/osclasswizards/search.php(72): osc_current_web_theme_path('search-sidebar....')
#2 /home/*****/public_html/oc-includes/osclass/helpers/hDefines.php(367): require('/home/*****/...')
#3 /home/*****/public_html/oc-includes/osclass/controller/search.php(701): osc_current_web_theme_path('search.php')
#4 /home/*****/public_html/oc-includes/osclass/controller/search.php(633): CWebSearch->doView('search.php')
#5 /home/*****/public_html/index.php(128): CWebSearch->doModel()
#6 {main}
  thrown in /home/*****/public_html/oc-content/themes/osclasswizards/search-sidebar.php on line 23


[12-Sep-2022 05:16:15 Asia/Kolkata] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/*****/public_html/oc-content/themes/osclasswizards/search-sidebar.php:23
Stack trace:
#0 /home/*****/public_html/oc-includes/osclass/helpers/hDefines.php(367): require()
#1 /home/*****/public_html/oc-content/themes/osclasswizards/search.php(72): osc_current_web_theme_path('search-sidebar....')
#2 /home/*****/public_html/oc-includes/osclass/helpers/hDefines.php(367): require('/home/*****/...')
#3 /home/*****/public_html/oc-includes/osclass/controller/search.php(701): osc_current_web_theme_path('search.php')
#4 /home/*****/public_html/oc-includes/osclass/controller/search.php(633): CWebSearch->doView('search.php')
#5 /home/*****/public_html/index.php(128): CWebSearch->doModel()
#6 {main}
  thrown in /home/*****/public_html/oc-content/themes/osclasswizards/search-sidebar.php on line 23

*

MB Themes

Re: Search not working
« Reply #5 on: October 26, 2022, 02:20:12 PM »
It's just notice, but acting as fatal error due to PHP 8
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

invisible

  • **
  • 26 posts
Re: Search not working
« Reply #6 on: October 28, 2022, 04:14:34 AM »
ok. Please share me code to get sql query. I will put it on config.php

*

MB Themes

Re: Search not working
« Reply #7 on: October 28, 2022, 12:49:57 PM »
Check this:
https://docs.osclasspoint.com/debug-mode

You need to see DB queries.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

invisible

  • **
  • 26 posts
Re: Search not working
« Reply #8 on: October 29, 2022, 04:39:24 AM »
Thank you.

*

MB Themes

Re: Search not working[solved]
« Reply #9 on: October 30, 2022, 08:13:32 AM »
What was the issue?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots