I'm trying to run the rebuildtextindex.php or rebuildall.php scripts (preferably the latter one) and when I try an error is generated:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.test/whatever/localhost/wiki/includes/Exception.php on line 114
This happens on Mediawiki 1.7.1 with PHP 5.1.2.
All extensions were unloaded before testing.
Anybody know why this happens or how to get around it?
Mike O
Mike O wrote:
I'm trying to run the rebuildtextindex.php or rebuildall.php scripts (preferably the latter one) and when I try an error is generated:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.test/whatever/localhost/wiki/includes/Exception.php on line 114
As 'php -v' will show, you're most likely running the script through PHP 4.x. This will fail, as MediaWiki 1.7 and above requires PHP 5.x.
If PHP 4 and 5 are installed in different paths, or with different binary names ('php5' or 'php5-cli' perhaps?), ensure that you're running the PHP 5 version.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org