[06:31:07] is there a way to add a link for second, modified version of an URL without having to put it in twice? Specfically, I'd like to be able to give an off-wiki link, and then give that same link as archived on the Wayback Machine, without having to repeat the URL [06:33:33] so I can just put in "archive.org" and get that as a link, but also automatically generate "https://web.archive.org/web/*/archive.org" next to it, without having to actually write out the latter, except putting "https://web.archive.org/web/*/" in the page source somewhere, or in a template [06:35:07] creating a template is fine, I just thought there might be something more straightfoward I was overlooking [09:11:28] I'm running into a weird issue with aliasing in a Special Page (extension). I was hoping someone here can help me understand what's going on: [09:11:28] Let's say I have an extension of my EN wiki named ExtensionA, which is accessible  at Special:ExtensionA. I have defined the following aliases for this extension in an alias file: [09:11:29] $specialPageAliases['en'] = array( [09:11:29]   'ExtensionA' => array( 'ExtensionA', 'AliasNameA', 'AliasNameB' ), [09:11:30] ); [09:11:30] With this aliasing, visiting Special:AliasNameA lets me use the tool too. [09:11:31] Now, I wanna launch this Special Page on my Spanish wiki too. [09:11:31] If I define the same aliases for 'es', using Special:AliasNameA doesn't work on ES, however using Especial:AliasNameA works (notice that the namespace text is localized) [09:11:47] does anyone know why this is happening [09:13:18] GPEquinox: I don't think you're supposed to define the English aliases in Spanish as well [09:13:31] just leave them in the English file and they'll work in Spanish too [09:13:41] leave them *only* in the English file, I meant [09:14:06] So just leave the $specialPageAliases['en'] array? [09:14:15] that doesn't work either:( [09:16:00] here's another piece of info, if that helps with debugging: [09:16:01] Here is a line of code from the PHP file of ExtensionA: [09:16:01] $this->action = RequestContext::getMain()->getTitle()->getText(); [09:16:02] On EN, while visiting Special:AliasNameA (an alias for ExtensionA), $this->action gives me AliasNameA [09:16:23] however, same thing on Spanish, $this->action gives me ExtensionA (even though I am visiting AliasNameA) [09:16:33] Which is why I thought I am messing up my aliases [09:17:45] you shouldn't use ->getText() for special pages, there's a function for it [09:18:30] Hi, could someone point me into the right direction? I want to populate table contents from a HTTP/JSON API, is that possible? [09:18:34] use ->isSpecial( $name ) [09:18:45] ah okay [09:18:46] cranberry: like an on-wiki table? [09:19:16] Maybe parse the JSON contents returned from an API and make a DB call? If it is slow, you might wanna do it in batches or using a MW Job? [09:19:20] legoktm may have better ideas [09:19:37] Yes like a regular table and through some logic define which part of the JSON go into which column/row [09:20:16] I've heard some people use https://www.mediawiki.org/wiki/Extension:External_Data but I've never tried it myself [09:20:30] Ohh that looks promising, thank you!! [09:20:40] try parsing the JSON, so you have all the data you need. You should be able to then make a DB call once you have all cols/ table info [09:21:55] Thanks, I'll look into it. Have not worked much with it but want to get the info on the wiki in sync with the infos other programs pull [09:30:07] Ok, I just found out some weird behavior with the way $specialPageAliases work [09:30:07] legoktm - do you know if this behavior is expected: [09:30:08] Here's my new alias array: [09:30:08] $specialPageAliases['en'] = array( [09:30:09]   'ExtensionA' => array( 'AliasA', 'AliasB' ), [09:30:09] ); [09:30:10] On my English site, visiting Special:AliasA and Special:AliasB work as expected [09:30:10] Now on Spanish (note that I haven't added any Spanish alias array), [09:30:11] Going to Special:AliasA work fine (I am assuming since it is defined as the first alias in the array) [09:30:11] Going to Special:AliasB takes me to AliasA (here is the bug) [09:30:36] On English, the aliases don't redirect to each other [09:30:36] AliasA takes me to AliasA [09:30:39] AliasB takes me to AliasB [09:30:44] on Spanish, AliasB redirects to AliasA [09:31:45] tbh I don't remember if that's expected behavior, I'd need to check but I'm actually supposed to sleep now, sorry [09:31:57] Sorry about that [09:32:00] Thansk for your help [09:32:01] Night! [15:37:01] I just installed a wiki but I can't log in, because since when I try it I get a database error. [15:38:05] What does the error say? [15:38:36] ==Database error== [15:38:50] !debug [15:38:50] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [15:39:12] A database query error has occurred. This may indicate a bug in the software. [15:41:02] [YJ1D9PdN2njFPdftc2@GKgAAADI] 2021-05-13 15:21:24 Fatal exception of type “Wikimedia\Rdbms\DBQueryError” [15:44:35] https://dpaste.org/iu2a [15:45:24] >Error 1146: Table 'b18_28587231_571.mwrg_oathauth_users' doesn't exist (sql200.byetcluster.com) [15:45:42] You've added an extension (OATHAuth) and not run update.php afterwards [15:47:00] I didn't know I had to run update.php after installing OATHAuth [15:47:36] https://www.mediawiki.org/wiki/Extension:OATHAuth#Installation [15:47:37] And how do I do? [15:47:41] >Run the update script which will automatically create the necessary database tables that this extension needs. [15:48:01] !update [15:48:01] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [15:53:41] Ok. Thanks. [20:00:01] Does anyone know id there is limit to the number of $specialPageAliases I can have for a particular language? [20:00:16] Running into some weird issues with the aliases of an extension