[02:01:59] can I get a special:wantedpages-like list some way other than viewing that page [02:02:05] because it is broken on my wiki [02:02:57] Why not fix it? [02:05:30] I don't know how! I should report a bug I guess. [02:09:26] possibly. Depends on the error [02:12:38] https://phabricator.wikimedia.org/T193108 [02:30:56] I'm using UserMailer::send() in an extension, but when I set $to to an email address I get user-mail-no-addy. It looks like it's testing for an address property, but if I try to give $to as an object with ->address, I get "Object of class stdClass could not be converted to string". Code is here: https://dpaste.de/W4aL [02:36:39] Minor fix to code here, but with same results https://dpaste.de/trT1#L11,14 [03:01:19] Got it - new MailAddress("me@myaddress.com"). [14:18:12] I am trying to move my installation from http://mysite/site/ to http://mysite/ [14:18:57] First things first: I moved the installation in the filesystem: mv /src/http/site/* /src/http/; rmdir /src/http/site; [14:19:02] I also adjusted LocalSettings.php [14:19:28] I modified wgCanonicalServer to point to http://mysite/ and $wgServer is "http://mysite" [14:19:34] Also, $wgScriptPath = "/"; [14:20:02] Now, it doesn't work: Visiting http://mysite/ forwards to http://index.pdp/Main_Page (which is clearly bogus) [14:22:57] I wonder if I neglected to move a .htaccess file? Is there supposed to be one? [14:29:56] got it, dudE! [14:30:10] wgScriptPath should be "", not "/". Found this at https://stackoverflow.com/questions/4763909 [14:30:18] Skizzerz: thanks [15:08:48] G [16:33:12] Hello, having a problem trying to import Template:Infobox person from wikipedia. I end up with these: Error in convert: Needs the number to be converted (help) and Lua error in Module:Authority_control at line 370: attempt to index field 'wikibase' (a nil value) [16:34:05] I copied a few people pages to test it. In this case Jason Stathom [16:44:56] proprietarysucks: Maybe you should try a proprietary wiki... [16:45:17] proprietarysucks: jk ;-) sorry, never done import like that. [16:45:59] sounds like you're missing some extensions [16:46:25] proprietarysucks: Do you have the wikibase client extensions? (I'm presuming that template uses it) [16:46:29] namely, the wikibase clie- [16:46:32] ninja'd :< [16:47:00] I do yeah [16:47:10] the current version, this is a brand new install of everything [16:47:34] oh wait maybe I didn't enable it.. [16:47:53] gj [16:49:51] OK somethings wrong [16:50:29] trying php maintenance/update.php and I get this error PHP Fatal error: Class 'Wikibase\DataModel\Entity\ItemId' not found in mediawiki-1.30.0/extensions/Wikibase/lib/WikibaseLib.entitytypes.php on line 35 [16:55:37] vendor [16:55:40] !vendor [16:55:44] !composer [16:55:44] Composer is a dependency manager for PHP. MediaWiki uses it to include certain external libraries. See https://www.mediawiki.org/wiki/Composer for more details. For information on how to install MediaWiki dependencies with composer see https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries [16:56:08] thanks [17:24:18] Well I think I've finally got it set up with composer. I'm still getting this error when using infobox people: Error in convert: Needs the number to be converted (help) [18:55:55] could someone give me some hints? im a bit confused from all the manual entries ive found.. i have mediawiki 1.3 installed locally (ubuntu server) and want to use latex using texvc. [18:56:10] in the extensions folder i got no Math folder [18:57:06] would it be enough to just install texvc and set $wgUseTeX and $wgTexvc in LocalSettings.php? [18:57:18] noudle_: 1.30? [18:57:27] 1.30.0 [18:57:54] good, just wanted to confirm [18:58:15] I don't really know about latex, I am sure the manual says something about it [18:58:40] ye it does, but its a bit confusing.. wanted to go sure by asking someone [19:00:27] please paste the part of manual, I can try and take a look [19:00:31] what is confusing you? [19:01:21] im currently looking at this page, not sure if its the right one tho: https://www.mediawiki.org/wiki/Texvc/en [19:01:34] the first thing that confuses me is that i have no Math folder in my extension folder [19:02:20] then in the Windows section there are some settings in the LocalSettings.php mentioned, but not in the linux section. hence im not sure if they also apply for linux [19:02:47] "IMPORTANT: The content of this page is outdated. " [19:02:56] I guess it is the wrong place [19:03:33] i also looked at https://www.mediawiki.org/wiki/Extension:Math/advancedSettings#Installing_texvc [19:03:49] https://www.mediawiki.org/wiki/Manual:$wgUseTeX that seems to be removed from MediaWiki [19:04:05] and it only goes through the installation of texvc, but im not sure if mediawiki then does find it automatically [19:04:13] No [19:04:17] You need the math extension [19:04:40] noudle_: the site states this, have you checked it out? https://lists.wikimedia.org/pipermail/mediawiki-l/2018-March/047266.html [19:05:01] aah thanks, got it. [19:05:09] okay so i will just install the math extension [19:16:49] Reedy: so after i installed the Math extension, can i just render math in my wiki or do i still need to install texvc/mathoid/latexml? (https://www.mediawiki.org/wiki/Extension:Math under Math output modes) [19:17:24] https://www.mediawiki.org/wiki/Extension:Math#Manual_installation [19:18:10] yes i did that [19:20:29] so as i understand that, i need to install and setup a mathoid server together with the math extension in oder to use latex with mediawiki [19:20:43] or texvc, but mathoid is the recommended way [19:21:25] I think texvc might be going away in the near future [19:21:57] hmm.. seems to be way easier to setup compared to mathoid [19:22:57] mathoid needs texvc libraries to render formulas in PNG IIRC. But it's now a separate service instead of being called directly from MediaWiki [19:27:21] hmm [19:49:50] here (https://github.com/wikimedia/mathoid) it tells to use node 6.9 or compatible version. here (https://github.com/nodesource/distributions) versions up to 10.x are listed. does someone have experience with this, which node version should i pick? [19:56:22] nvm i took the 6.x version [19:56:31] I have NodeJS v6.14.1 [19:59:08] okay ive got that too now [20:24:42] Vulpix: so i got the mathoid server running now and added the LocalSettings.php variables mentioned here https://www.mediawiki.org/wiki/Manual:Mathoid [20:25:03] is there anything else i need to apply to mediawiki? as i still do not see any math rendered nicely in the wiki [20:25:14] i can however get the desired result using curl [20:28:51] Check your user prefs for math rendering? [20:30:15] do you mean $wgDefaultUserOptions['math'] = 'mathml'; ? [20:31:10] maybe i need to add some markers so that wikimedia knows that it should render the following characters using mathoid? [20:31:43] there's a special page for testing math [20:32:06] Special:MathStatus [20:33:07] hmm that gives me a MWException [20:33:23] not sure what exactly that means [20:33:42] does it give any useful error message? [20:34:17] no, let me add the debugging options.. sec [20:34:58] oh well i need a restbase url [20:35:26] man its really a lot to do just to render math lol [20:35:36] yeah [20:36:25] if you don't have VisualEditor, you may simply point the restbase URL to Wikipedia. [20:37:31] what exactly does wikimedia send to the restapi? i mean, what is send to wikipedias restbase url when i point my wiki to it? [20:38:27] it sends the formula as it has been input by the user inside tags, it generates an identifier, and then request again with that identifier to get the image (or something like that) [20:38:40] the software is mediawiki [20:39:14] ya sorry Reedy :P [20:39:15] so [20:39:30] in fact the restapi is used for math rendering and not the mathoid server? [20:40:56] no, restbase is used as a frontend for the mathoid service [20:41:18] restbase sends requests to parsoid, mathoid, citoid... [20:42:02] oidoid [20:42:11] it's a service that spins up new services to send stuff to [20:42:20] this is restbase: https://en.wikipedia.org/api/rest_v1/ [20:42:26] i see [20:42:27] hmm [20:43:33] lol: > Global Rules: Limit your clients to no more than 200 requests/s to this API. [20:44:03] I'm not sure if I'll have sufficient throughput to send 200req/s [20:44:05] so this would be the setup: https://www.mediawiki.org/wiki/RESTBase/Installation [20:44:33] to have my own restapi running [20:44:43] yes [20:45:01] and in the config.yaml i put in my mathoid server [20:45:16] address [20:47:07] hmm not exactly, this configuration doesn't seem complete [20:47:46] on that page there is a section descripted for parsoid, thought i can also add mathoid then lol [20:47:52] *described [20:48:20] yes, mathoid is a bit different [20:48:56] in which ways? [20:50:11] well, this is what I have from when I configured it: https://dpaste.de/0htX/raw [20:50:36] my wiki is called "wikidex", hence you'll find some references to it in config names or urls [20:50:46] just change them to your project name [20:52:36] thanks, i'll try that [20:52:38] those manual pages need love. I improved the parsoid and general RESTBase ones, but I forgot about mathoid [21:31:45] Vulpix: may i ask whats in your mathoid-wikidex.yaml? [21:35:10] it's the contents of mathoid.yaml but replacing all instances of wikimedia.org with {domain} [21:35:52] the file is quite large [21:36:20] thing is i dont have a mathoid.yaml [21:36:25] and no mathoid.js [21:36:40] maybe they have different names on my system, where do those come from? [21:37:29] ah, mathoid.yaml is inside the "v1" folder [21:37:53] not in mine :/ [21:38:18] i got a mathoid.js in sys/ [21:38:25] but no mathoid.yaml in v1/ [21:38:42] oh wait [21:38:44] sec [21:39:07] actually its in there, but the restapi gives me an error complaining not to find it [21:39:53] ah [21:39:57] was my fault, sry [21:41:32] well, before setting up mathoid, I did those changes for Restbase and parsoid: https://dpaste.de/ydvQ/raw [23:17:22] can someone tell my why math id displayed like this when put inside tags? https://u.teknik.io/ujIxl.jpg [23:18:08] i mean, from the restapi logs i can get the url to the generated image and see that in the browser by hand and it looks good, just not in mediawiki [23:18:30] using mathiod and mediawiki 1.30 [23:20:44] when visiting the mathstatus page only "Checking the presence of '+' in the MathML output" and "Comparing the generated SVG with the reference" fail and i see a rather cryptic (for me atleast) error in my restapi log