MediaWiki Version: 1.30
PHP Version: 5.6.36 (litespeed)
MySQL Version: 5.6.39-cll-lve
ICU Version: 57.1
Hello. When I attempted to set up a wiki family on the Localsettings.php of my wiki, I get an error with the following message: PHP Parse error: syntax error, unexpected '$wikiId' (T_VARIABLE) in /home/gjlxrtap/public_html/mw19/LocalSettings.php on line 259. The code that caused the error while attempting to create the wiki family is:
if ( defined( 'gjlxrtap_pnwiki' ) ) {
''// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts.''
$wikiId = penguinicewiki;
} elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'wiki1.example.org') {
''// Add a value to the $wikiId variable for e.g. https://wiki1.example.org/''
$wikiId = 'wiki1';
} else {
''// Fail gracefully if no value was set to the $wikiId variable, i.e. if no wiki was determined''
die( 'It was not possible to determine the wiki ID.' );
}
if ($wikiId == 'wiki1') {
$wgSitename = "Penguingame Studio";
$wgServer = "http://penguingamestudio.com";
$wgLogo = "ExampleWiki_logo.png";
$wgDBpassword = "we39585f7ha34";
$wgSecretKey = "9348vhas589ytas35aurhgao94aywrotuhapw94u";
$wgLanguageCode = 'en';
}if ($wikiId == 'wiki1') {
$wgSitename = "Penguingame Studio";
$wgServer = "http://penguingamestudio.com";
$wgLogo = "ExampleWiki_logo.png";
$wgDBpassword = "-----------------";
$wgSecretKey = "------------------------------";
$wgLanguageCode = 'en';
}
What can I do to fix this error? I have no idea on what to do here, I never expected to get errors like this. Thank you for reading.