Editing User talk:HappyDog

From TestWiki
Jump to: navigation, search

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 ==
  
Moved to [[WikiDB/Bugs#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.

Please note that all contributions to TestWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see TestWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)