[02:34:24] Can anyone one help me connect my wiki to my mathoid server? [02:34:38] $wgMathMathMLUrl= "serv0x00:10044/"; [02:34:47] $wgMathFullRestbaseURL= "serv0x00:10044/"; [02:35:08] I don't understand the difference between these two URLs, should they be the same? [02:35:25] serv0x00 is an internal host name (the name of my server). [02:35:55] curl -d 'q=E=mc^2' localhost:10044 [02:36:11] seems to work exactly as this page says: https://www.mediawiki.org/wiki/Mathoid#Testing [02:36:41] So I'm confident that mathoid is working -- but I'm not sure how to set the wiki to use it. [02:38:25] When I add the http:// prefix I get this error: [02:38:30] Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "http://serv0x00:10044/v1/":): {\displaystyle \frac{x}{gy^2}} [02:41:43] joshuar_: is it running on the same box as mediawiki? just use localhost:10044 in that case? [02:43:35] I tried that too and got the same result. But I'll do it again. [02:44:39] I made that change: [02:44:43] Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:10044/v1/":): {\displaystyle \frac{x}{gy^2}} [02:46:27] I don't understand why the suffix "/v1/" is attached [02:48:24] I think if it wasn't added it might work. [03:03:04] Besides having a mathoid server, should I also have a Restbase server? [04:17:00] Does mediawiki need "restbase"? [04:17:07] https://github.com/wikimedia/restbase#restbase-- [05:51:00] no joshuar_ [05:51:17] extensions may require it [05:58:24] I figured out the secret. onRecentChange_save that is the event to create a 'recent changes' sidebar [05:58:35] The one that will actually update when you edit a page [08:32:27] I still don't get the relationship between $wgMathFullRestbaseURL and mathoid. [08:32:35] What is the relationship between $wgMathFullRestbaseURL and mathoid, exactly? [08:32:49] https://www.mediawiki.org/wiki/Extension_talk:Math#What_is_the_relationship_between_.24wgMathFullRestbaseURL_and_mathoid.2C_exactly.3F [08:33:05] Haven't found any answers online. [08:40:51] joshuar_: What do you currently have in $wgMathFullRestbaseURL? [08:43:06] $wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/'; [08:43:22] https://www.mediawiki.org/wiki/Extension:Math#Configuration [08:43:32] This works. But that's not my server. lol. [08:46:03] Do you have a Mathoid server set up locally? [08:46:19] Yes. And from what I can tell, it works. [08:46:37] It responds if I use the curl on mediawiki wiki. [08:46:56] And it doesn't work if you set it in the config? [08:46:57] curl -d 'q=E=mc^2' localhost:10044 [08:47:18] If I use "localhost:10044" it doesn't work. I'll try it again. [08:49:07] I tried to preview an equation "x^2" and I got this: [08:49:10] Exception encountered, of type "UnexpectedValueException" [08:49:11] [32a89fb50fefc7fc86f720c2] /wiki/index.php?title=Quadratic_Formula&action=submit UnexpectedValueException from line 192 of /var/www/html/wiki/includes/libs/virtualrest/VirtualRESTServiceClient.php: Path 'localhost:10044/v1/media/math/check/tex' has no service. [08:49:29] $wgMathFullRestbaseURL= "localhost:10044/"; [08:50:13] Then I try it with the http:// prefix. $wgMathFullRestbaseURL= "http://localhost:10044/"; [08:50:29] Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:10044/v1/":): {\displaystyle x^2} [08:51:49] I noticed it adds "/v1" to the end. [08:52:04] I don't know if this is a bug. Should I report it as such? [08:52:30] Or is this expected behavior. I don't know the difference between these two URLs. I think I'm unknowingly misuing it. [08:52:41] $wgMathMathMLUrl= "localhost:10044/"; [08:52:50] $wgMathMathMLUrl= "localhost:10044/"; [08:53:07] $wgMathFullRestbaseURL= "http://localhost:10044/"; [08:53:19] Sorry, that duplicate was a typo. [08:55:43] wmf-config has two different values for those. [08:57:45] Where do I see those values? [08:57:56] Do you have a link? [08:59:55] https://github.com/wikimedia/operations-mediawiki-config/blob/master/wmf-config/CommonSettings.php#L2314-L2327 [09:00:09] 'http://mathoid.svc.eqiad.wmnet:10042' is $wgMathMLUrl [09:02:15] I think I can npm install restbase. But the instructions don't seem to say anything about it. [09:52:59] the math documentation has some public servers you can point to iirc [09:55:12] Oh. Ok. [09:55:42] If I installed mathoid myself though (and want to make use of it), how do I set that up? [09:57:52] https://www.mediawiki.org/wiki/Extension:Math#Configuration [09:59:45] Yeah - if I use that it works, but I installed mathoid. [09:59:53] lol, so there was no point in doing that? [10:06:22] Thanks for the link. [13:16:24] hello [15:29:53] I have a problem, on my wiki, after a few, the rest of the images from Commons will not load [15:30:06] they just show up as (blue) links, they are shown when clicking through [16:30:33] nyuszika7h: you need to improve parsing speed [16:30:46] Try https://www.mediawiki.org/wiki/Manual:Performance_tuning [16:38:53] o. [16:38:55] o.O [16:39:14] that's an incredible leap of logic; that behavior could be any number of things [16:40:13] "parsing speed" notably *not* being one of those things from my experience [16:42:21] nyuszika7h: is your wiki public? [18:15:11] Skizzerz: it is now (didn't really have anything secret there anyway) [18:15:17] https://flarar.cadoth.net/wiki/Tini:_El_gran_cambio_de_Violetta [18:53:36] If I have my own mathoid server, do I need "restbase"? [20:34:04] How does WikiData work? Can I add "data" features to my own MediaWiki installation? [20:35:42] ... for example, I want to mark pages at my wiki as "rough draft", "first draft", "second draft". How to do this? [20:35:55] hello? [20:36:01] i need some help with a navbox [20:36:29] because of the way i have stuff formatted, i need more than 20 spaces in the navbox [20:36:43] however, anything past 20 refuses to load [20:37:27] is there a way i can manually edit the navbox to make it work past 20?