Fixed rebuild search index

Robert9

Well-known member
Affected version
newest
Code:
ErrorException: [E_DEPRECATED] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in src/XF/Search/Source/MySqlFt.php at line 425

    XF::handlePhpError()
    preg_replace() in src/XF/Search/Source/MySqlFt.php at line 425
    XF\Search\Source\MySqlFt->getMetadataKey() in src/XF/Search/Source/MySqlFt.php at line 36
    XF\Search\Source\MySqlFt->index() in src/XF/Search/Search.php at line 42
    XF\Search\Search->index() in src/XF/Search/Search.php at line 61
    XF\Search\Search->indexEntities() in src/XF/Search/Search.php at line 87
    XF\Search\Search->indexRange() in src/XF/Job/SearchRebuild.php at line 66
    XF\Job\SearchRebuild->run() in src/XF/Job/Manager.php at line 260
    XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 202
    XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 118
    XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 122
    XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in admin.php at line 13
 
On Server one everything is fine with php 8.1.

On Server two i had to change php 8.1. to php 8.0, now everything works again.
Meanwhile i had more issued with "deprecated parent", I could not upgrade Change Content Owner or Date 2.0.15 for example.

On this server they have PHP 8.0 (ea-php80) ; I dont know what ea- means, but ea-php8.1 does not work here, while ea-php80 works now.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.14).

Change log:
Guard against null metadata in MySQL full-text searchs
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom