Thread:Extension talk:CirrusSearch/Failed opening required FunctionScore.php

Lsilverman (talk) 20:27, 6 January 2014 (UTC)

MW 1.22, PHP 5.3.3, RHEL5

Followed the current installation instructions and the README below CirrusSearch/. Indexing went fine.

Upon querying in the MW search box, I got a blank page. Apache error log contains: [Mon Jan 06 20:12:18 2014] [error] [client 73.50.11.157] PHP Fatal error: require: Failed opening required '/usr/local/devmediawiki-1.22.0/w/extensions/Elastica/Elastica/lib/Elastica/Query/FunctionScore.php' (include_path='/usr/local/devmediawiki-1.22.0/w:/usr/local/devmediawiki-1.22.0/w/includes:/usr/local/devmediawiki-1.22.0/w/languages:.:/usr/share/pear:/usr/share/php') in /usr/local/devmediawiki-1.22.0/w/includes/AutoLoader.php on line 1191, referer: https://dev.trackabout.com/wiki/Special:Version

Indeed, there's no such file FunctionScore.php in the folder: [root@ta-linux1v Query]# pwd /usr/local/devmediawiki/w/extensions/Elastica/Elastica/lib/Elastica/Query [root@ta-linux1v Query]# ls -l total 144 -rw-r--r-- 1 root root  261 Jul 10 07:43 AbstractQuery.php -rw-r--r-- 1 root root 2509 Jul 10 07:43 Bool.php -rw-r--r-- 1 root root 20683 Jul 10 07:43 Builder.php -rwxr-xr-x 1 root root 3923 Jul 10 07:43 Common.php -rw-r--r-- 1 root root 1201 Jul 10 07:43 ConstantScore.php -rw-r--r-- 1 root root 3383 Jul 10 07:43 CustomFiltersScore.php -rw-r--r-- 1 root root 1662 Jul 10 07:43 CustomScore.php -rw-r--r-- 1 root root 1972 Jul 10 07:43 Field.php -rw-r--r-- 1 root root 2030 Jul 10 07:43 Filtered.php -rw-r--r-- 1 root root 3996 Jul 10 07:43 FuzzyLikeThis.php -rw-r--r-- 1 root root 2663 Jul 10 07:43 Fuzzy.php -rw-r--r-- 1 root root 1581 Jul 10 07:43 HasChild.php -rw-r--r-- 1 root root 1539 Jul 10 07:43 HasParent.php -rw-r--r-- 1 root root 2614 Jul 10 07:43 Ids.php -rw-r--r-- 1 root root  430 Jul 10 07:43 MatchAll.php -rw-r--r-- 1 root root 4433 Jul 10 07:43 Match.php -rw-r--r-- 1 root root 4230 Jul 10 07:43 MoreLikeThis.php -rw-r--r-- 1 root root 1666 Jul 10 07:43 MultiMatch.php -rw-r--r-- 1 root root 1070 Jul 10 07:43 Nested.php -rw-r--r-- 1 root root 1372 Jul 10 07:43 Prefix.php -rw-r--r-- 1 root root 7596 Jul 10 07:43 QueryString.php -rw-r--r-- 1 root root  929 Jul 10 07:43 Range.php -rw-r--r-- 1 root root 1042 Jul 10 07:43 Simple.php -rw-r--r-- 1 root root 1355 Jul 10 07:43 Term.php -rw-r--r-- 1 root root 2262 Jul 10 07:43 Terms.php -rw-r--r-- 1 root root 2013 Jul 10 07:43 Text.php -rw-r--r-- 1 root root 1379 Jul 10 07:43 TopChildren.php -rw-r--r-- 1 root root 1096 Jul 10 07:43 Wildcard.php

Thanks.