Jump to content

Topic on Project:Support desk

[RESOLVED] Parse error: syntax error, unexpected T_FUNCTION in \includes\context\RequestContext.php on line 444

10
122.201.18.30 (talkcontribs)

Hello Mediawiki,im tried to install. but following error occured me. First warning this. MediaWiki 1.21.1 LocalSettings.php not found. Please set up the wiki first. Then i clicked set up the wiki. So this error came up:

Parse error: syntax error, unexpected T_FUNCTION in \includes\context\RequestContext.php on line 444.

Help Guys!

I'm using AppServ

Apache 2.2.8, PHP 6.0.0-dev, MySQL 6.0.4-alpha, phpMyAdmin-2.10.3

This post was posted by 122.201.18.30, but signed as 122.201.18.57.

88.130.106.48 (talkcontribs)

Hi!

The file \includes\context\RequestContext.php contains this function definition on line 444:

public static function importScopedSession( array $params ) {
    # ...; then line 444:
    $importSessionFunction = function( User $user, array $params ) {
        #...
    }
}

Obviously this syntax is no longer allowed in PHP 6.0. Does it work when you use PHP 5.3 or 5.4?

122.201.18.49 (talkcontribs)
88.130.106.48 (talkcontribs)

Try it! MediaWiki is compatible with released versions of PHP. Current PHP 6.0-dev in contrast is a very early development build and not recommended for production use. Maybe the warning is also caused by a bug in PHP itself...

122.201.18.38 (talkcontribs)
88.130.106.48 (talkcontribs)

MediaWiki requires PHP 5.3.2 or newer. I am pretty sure that it also works fine with PHP 5.4 and I would hope that it works with PHP 5.5 as well.

202.180.220.72 (talkcontribs)

ok thank you. i've installed xampp 1.8.2 which have a php 5.4. it's works fine.

103.230.4.182 (talkcontribs)

Hi,

Anybody there?

Parse error: syntax error, unexpected T_FUNCTION in /home/snafiz/public_html/mysupremedeals.com/wp-content/themes/couponxl/includes/custom-bulk.php on line 124

88.130.100.201 (talkcontribs)

Wow, that's not even MediaWiki related. This error is caused by WordPress, a blogging software.

This post was hidden by 87.123.20.110 (history)