Advertisement:

Author Topic: SMF 2.0.14 + PHP 7.1 [] operator not supported for strings at 'Search method'  (Read 1626 times)

Offline ATAG

  • Newbie
  • *
  • Posts: 4
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
Code: [Select]
$context['fulltext_index'] = '';
if ($request !== false || $smcFunc['db_num_rows']($request) != 0)
{
Find and change to:
Code: [Select]
$context['fulltext_index'] = array();
if ($request !== false || $smcFunc['db_num_rows']($request) != 0)
{