Advertisement:

Author Topic: Error/warning: in search-sidebar.php after php version update  (Read 609 times)

pitarra

  • Newbie
  • *
  • Posts: 4
After updating php to version 7.1 I have a problem with the search.
If you make a simple search for example by entering the category and the city in the search bar of the homepage or by clicking on the category and then using the filters available in the box "Advanced Search" choosing for example the city and/or the ads with photos, ect all works perfectly.
Instead if you click on "See all listings" at the end of the list of the listings published in homepage, or if you click on "All Categories" in the box "Refine Category" after selecting the category in the hompage or after making a simple search (for example, category XXX in the city YYY) by the homepage search bar I get the following error / warning:

Warning: Illegal string offset 'pk_i_id' in /home/iack73/adsencounters.com/oc-content/themes/osclasswizards/search-sidebar.php online 23

Warning: Can not assign an empty string to a string offset in /home/iack73/adsencounters.com/oc-content/themes/osclasswizards/search-sidebar.php online 23

These warnings appear on the top before the search results list.
While the following error appears in the "Refine Category" box in the side bar:

Warning: Illegal string offset 'pk_i_id' in /home/iack73/adsencounters.com/oc-content/themes/osclasswizards/search-sidebar.php online 145

I can't understand what the problem is.

Aficionado

  • Guest
Re: Error/warning: in search-sidebar.php after php version update
« Reply #1 on: July 25, 2018, 03:13:11 pm »
Apparently the problem is PHP 7.1.

Try in a few days Osclass 3.8.

And turn the debug to off, so you don't see all that for the moment.

pitarra

  • Newbie
  • *
  • Posts: 4
Re: Error/warning: in search-sidebar.php after php version update
« Reply #2 on: July 25, 2018, 03:34:46 pm »
Thanks for the suggest.
Meanwhile I think I've found a fix to this problem here https://github.com/osclass/theme-bender/pull/68/commits/b40bae4a737cfe96c8701cb5fa7df3cdfed09ebd

In effect after changing the code in the line 21 all started to work perfectly.
 

Aficionado

  • Guest
Re: Error/warning: in search-sidebar.php after php version update
« Reply #3 on: July 25, 2018, 03:57:46 pm »
Well i see 3.8 is available, so i guess this is fixed.


pitarra

  • Newbie
  • *
  • Posts: 4
Re: Error/warning: in search-sidebar.php after php version update
« Reply #4 on: July 25, 2018, 04:35:03 pm »
Gook. Unfortunately the release it's not still available on softaculous, but I'll let you know when I'll make the upgrade.
Thanks 

Aficionado

  • Guest
Re: Error/warning: in search-sidebar.php after php version update
« Reply #5 on: July 25, 2018, 04:41:30 pm »
Gook. Unfortunately the release it's not still available on softaculous, but I'll let you know when I'll make the upgrade.
Thanks

Updates are available via OSCLASS dashboard. You will be notified i guess.


pitarra

  • Newbie
  • *
  • Posts: 4
Re: Error/warning: in search-sidebar.php after php version update
« Reply #6 on: July 25, 2018, 05:06:16 pm »
Not yet