SMF 2.0.14 + PHP 7.1 [] operator not supported for strings at 'Search method'

Started by ATAG, October 17, 2017, 09:14:40 AM

Previous topic - Next topic

ATAG

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)
{


shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Advertisement: