Editing User talk:HappyDog
From TestWiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 123: | Line 123: | ||
== Trouble running SetupTables.exe == | == Trouble running SetupTables.exe == | ||
− | + | Hello! | |
+ | |||
+ | I'm attempting to run the maintenance script SetupTables.php through Terminal with command line access. I'm all logged in and such, but I get this error: | ||
+ | |||
+ | <br /> | ||
+ | <b>Parse error</b>: syntax error, unexpected '[' in <b>/clickandbuilds/MediaWiki/thornswiki/maintenance/commandLine.inc</b> on line <b>30</b><br /> | ||
+ | |||
+ | |||
+ | |||
+ | When I look in my MediaWiki maintenance/commandLine.inc file, line 30 looks fine to me? | ||
+ | |||
+ | Here are lines 26-34 for reference: | ||
+ | |||
+ | // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.wgPrefix | ||
+ | global $optionsWithArgs, $optionsWithoutArgs; | ||
+ | |||
+ | if ( !isset( $optionsWithArgs ) ) { | ||
+ | $optionsWithArgs = []; | ||
+ | } | ||
+ | if ( !isset( $optionsWithoutArgs ) ) { | ||
+ | $optionsWithoutArgs = []; | ||
+ | } | ||
+ | |||
+ | |||
+ | So, I'm not sure what the error is? I'm running MediaWiki 1.31.1 and php 7.2.14. I followed all of the other install directions and set up two different table namespaces in my LocalSettings.php. |