Fixed Admin search not working in 2.3 RC 3

TMC

Active member
Affected version
XenForo 2.3 RC 3
Getting the following error when trying to search in the admin panel / XenForo 2.3 RC 3:
Code:
ErrorException: [E_WARNING] Cannot declare class XF\AdminSearch\PublicTemplate, because the name is already in use in src/XF.php at line 397

    XF::handlePhpError()
    class_alias() in src/XF.php at line 397
    XF::createAliasForClass() in src/XF/AdminSearch/Searcher.php at line 156
    XF\AdminSearch\Searcher->addHandlerClass() in src/XF/AdminSearch/Searcher.php at line 165
    XF\AdminSearch\Searcher->addHandlerClasses() in src/XF/AdminSearch/Searcher.php at line 40
    XF\AdminSearch\Searcher->__construct() in src/XF/App.php at line 1343
    XF\App->XF\{closure}() in src/XF/Container.php at line 33
    XF\Container->offsetGet() in src/XF/App.php at line 2739
    XF\App->offsetGet() in src/XF/Admin/Controller/SearchController.php at line 14
    XF\Admin\Controller\SearchController->actionSearch() in src/XF/Mvc/Dispatcher.php at line 358
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2702
    XF\App->run() in src/XF.php at line 792
    XF::runApp() in admin.php at line 15
 
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.3.0 Release Candidate 4).

Change log:
Fix mangled class renames in the admin search system
There may be a delay before changes are rolled out to the XenForo Community.
 
You can delete these two files to work around this in the meantime (though it will prevent admin searches for returning results for these things):
  • src/XF/AdminSearch/AdminTemplate.php
  • src/XF/AdminSearch/EmailTemplate.php
 
Back
Top Bottom