Osclass forums
Support forums => General help => 3.7.x => Topic started by: pitarra on July 25, 2018, 02:56:25 pm
-
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.
-
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.
-
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.
-
Well i see 3.8 is available, so i guess this is fixed.
-
Gook. Unfortunately the release it's not still available on softaculous, but I'll let you know when I'll make the upgrade.
Thanks
-
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.
-
Not yet