Page MenuHomePhabricator

Error when run maintenance/FlowSearchConfig.php
Open, Needs TriagePublic

Description

I installed MW and extensions (Flow + CirrusSearch) from branch REL1_28
When I run the maintenance/FlowSearchConfig.php I get the error:

Error from line 268 of /var/www/html/w/extensions/Flow/maintenance/FlowSearchConfig.php: Class 'CirrusSearch\Maintenance\Validators\IndexValidator' not found
Backtrace:
 #0 /var/www/html/w/extensions/Flow/maintenance/FlowSearchConfig.php(319): FlowSearchConfig->getValidators()
 #1 /var/www/html/w/maintenance/doMaintenance.php(111): FlowSearchConfig->execute()
 #2 /var/www/html/w/extensions/Flow/maintenance/FlowSearchConfig.php(448): require_once(string)
 #3 {main}

I found that IndexValidator was renamed a year and a half ago Change 274122.
I got instruction to run maintenance/FlowSearchConfig.php form this page.

Should I run maintenance/FlowSearchConfig.php or why the bug was not caught so much time?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Should I run maintenance/FlowSearchConfig.php or why the bug was not caught so much time?

I guess the script hasn't been run by anyone recently, and as such, has fallen into disrepair.

use CirrusSearch\Maintenance\Validators\CacheWarmersValidator;
use CirrusSearch\Maintenance\Validators\IndexValidator;

Seems both of those don't exist anymore (at least in master)

So instantiations of CacheWarmersValidator and IndexValidator aren't going to work in that script. Neither will a Connection::getSingleton() call that's also in that block of code as getSingleton() doesn't exist