This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Sinto001

  • **
  • 62 posts
Error message in the search term page
« on: December 16, 2020, 12:55:49 PM »
Hi I tried the homepage search bar when I enter any search term and apply search I get these error message

Warning: Illegal string offset 'pk_i_id' in /home/u7xxxxxxxxxx/public_html/classifieds/oc-content/themes/bender/search-sidebar.php on line 23

Warning: Cannot assign an empty string to a string offset in /home/u7xxxxxxxx/public_html/classifieds/oc-content/themes/bender/search-sidebar.php on line 23

How to remove this message or apply a fix for it?
« Last Edit: December 16, 2020, 03:08:35 PM by Sinto001 »

*

MB Themes

Re: Error message in the search term page
« Reply #1 on: December 16, 2020, 02:35:12 PM »
Have you checked that file and line?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • **
  • 62 posts
Re: Error message in the search term page
« Reply #2 on: December 16, 2020, 03:12:55 PM »
Have you checked that file and line?

I have checked but could not figure out. A snapshot is attached for line 23

Marked as best answer by frosticek on December 16, 2020, 09:02:43 PM
*

MB Themes

Re: Error message in the search term page
« Reply #3 on: December 16, 2020, 08:32:24 PM »
@Sinto001
I think you should change:
Code: [Select]
$category['pk_i_id'] = null;
into:
Code: [Select]
$category = array();
$category['pk_i_id'] = null;
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • **
  • 62 posts
Re: Error message in the search term page
« Reply #4 on: December 16, 2020, 08:55:45 PM »
@Sinto001
I think you should change:
Code: [Select]
$category['pk_i_id'] = null;
into:
Code: [Select]
$category = array();
$category['pk_i_id'] = null;
Thanks it corrected the error message.