Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: ATAG on October 17, 2017, 09:14:40 AM

Title: SMF 2.0.14 + PHP 7.1 [] operator not supported for strings at 'Search method'
Post by: ATAG on October 17, 2017, 09:14:40 AM
When search method is set to 'fulltext index' the settings goes away and shows '[] operator not supported for strings' message only.
Affected code and bug fix:
Sources/ManageSearch.php
$context['fulltext_index'] = '';
if ($request !== false || $smcFunc['db_num_rows']($request) != 0)
{

Find and change to:
$context['fulltext_index'] = array();
if ($request !== false || $smcFunc['db_num_rows']($request) != 0)
{
Title: Re: SMF 2.0.14 + PHP 7.1 [] operator not supported for strings at 'Search method'
Post by: Shambles on October 17, 2017, 11:04:17 AM
It's a known issue:

https://www.simplemachines.org/community/index.php?topic=554723.0
Title: Re: SMF 2.0.14 + PHP 7.1 [] operator not supported for strings at 'Search method'
Post by: shawnb61 on December 28, 2019, 03:14:04 PM
Fixed in 2.0.16