[00:37:24] good morning, all [00:43:17] wouldn't it be sensible for 2fa to activate upon a password reset attempt? [03:40:14] Hello, I have a problem. Mobile.css styles do not work in minerva theme On the copy of the site works, but on the working version there is no, what to do? why can this be? [03:43:26] at least write there, it doesn't work [03:56:21] what is stored in the latest articles of enwiktionary dumps [03:56:34] or rather how are word definitions store [03:56:36] d [05:00:10] anyone home [06:03:06] . [06:06:29] black_13: hi! they are stored as wiki markup I think [06:07:01] black_13: there are wiktionary data stored elsewhere, in stardict format, if that's interesting to you [06:07:50] loftyabyss: i saw your question, i think if 2fa is already activated then it should continue to do this for a password reset. but i didn't use it before so i am not sure if that works. if you want this to not be lost, i'd suggest to file a bug at phabricator.wikimedia.org [06:08:47] what is stardict [06:09:21] actually i know what it is [06:10:03] so even if you had the wiktionary data its not in an easily used form [08:36:03] Speaking of Phabricator; it's down, right? [09:02:42] hi! [09:03:49] how to modify / delete something from https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-How+to+contribute&action=page&filter=&language=en (simple english) [09:07:15] it says "The source language of this group is English. Please select another language to translate into." [14:22:16] How would you hide duplicate protection messages ("This action can only be executed by users in groups...") and ("This page has been protected to prevent edits or ...")? [16:55:16] a user on my mediawiki cannot login. the password is correct and a "new passwort" process gets them to the dialog where they can enter a new password, after that, no login possible. there is no error visible, after trying to login, they simply get the page loaded as non-logged in visitor [16:55:21] i am stumped [16:55:59] is there a way to clear all kinds of caches? i use memcached but just moved it all to a fresh new server so that should not interfere. maybe there are things in the mediawiki directories themselves? [16:57:17] we tried everything, clean browser(s!), different ips [17:00:11] working throught https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems [17:00:15] MediaWiki is 1.29.1 [17:00:17] is it just that user? [17:00:29] this affects only them, from what i know. i can log in and out with my user just fine [17:01:37] in my LocalSettings.php i have '$wgMainCacheType = CACHE_MEMCACHED;'. there is no $wgSessionCacheType setting [17:01:42] have they tried a different device/browser? [17:02:20] yeah [17:02:25] session defaults to main cache type if unset [17:02:45] right, but if session cache was broken then I'd expect that hannes_ would have login issues as well [17:03:07] are you running any extensions that deal with authentication? [17:03:55] and i only transferred the webroot to the new server, no memcached data or settings [17:04:36] only CookieWarning might be related to that remotely [17:06:28] i created a new user, was logged in right after completing registration [17:07:21] tried to login via tor browser, no problems [17:07:50] i use sqlite as database, could that be related? maybe some leftover cache things? [17:11:52] "select * from objectcache;" shows just four entries a la "wiki:page-recent-delete:..." [17:14:44] if you're using memcached as MainCacheType, the objectcache table largely won't be populated [17:15:26] I wouldn't recommend using sqlite as your db backend if you have more than 1 person using the site; sqlite can't handle multiple people using it simultaneously [17:16:11] a cookie warning sounds *very* relevant to login problems though, mind sharing what that warning is hannes_? [17:16:25] its fine, the wiki is very small and works well :) [17:16:37] this plugin https://www.mediawiki.org/wiki/Extension:CookieWarning [17:17:30] oh sorry [17:17:38] I thought you meant "I see warnings about cookies in error logs" :P [17:18:10] nah, i wish! [17:18:22] that extension shouldn't cause issues [17:23:30] oh interesting, looking at the cookies on the clients (i got their credentials for testing), i see 2 Set-Cookie: responses -> "wiki_session=deleted" and "wikiUserID=deleted" both set to expire 01.01.1970. [17:23:48] this happens after the 302 on the login page where they get a proper cookie, the response from the main page sets this [17:23:54] this does not happen with my working user [17:25:55] their entry in the user table has user_id, user_name, user_password, user_email, user_registration and user_editcount set to reasonable values. user_touched is 0 which seems ok too. the other fields have no values [17:43:39] i cannot make sense of the debugging documentation. what and where/how should i set up to get more infos for this issue? [19:07:42] hannes_: Does setting $wgSessionCacheType = CACHE_DB; [19:07:48] in localsettings.php make the problem go away? [19:07:57] If so it means memcached is probably misconfigured [19:08:10] if not it means probably something is wrong with how cookies are working [20:14:48] bawolff2: nope, that setting does not change anything [20:14:52] dang [20:16:20] considering the Set-Cookie responses above this suggests that i need not bother looking into the webserver (lighttpd) config at all, right? [20:23:06] hannes_: anything interesting in the !debuglog [20:23:16] !debug [20:23:16] 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 [20:25:29] saper: https://mediawiki.org/wiki/Manual:How_to_debug is completely overwhelming, i did set up a log file but am lost what to enable to be logged to it [20:29:44] nvm got it [20:31:33] it has some interesting info usually, even about cookies if I remember correctly [20:31:35] ok i see one exception that might be related? this is after "login succeeded": [exception] [foo] /w/index.php?title=Special:UserLogin&returnto=Main+Page MWException from line 4026 of /srv/foo/w/includes/user/User.php: CAS update failed on user_touched for user ID '123' (read from replica); the version of the user to be saved is older than the current version. [20:31:51] yeah LOADs of info :D [20:32:57] it tried to set user_touched = '20190423202746' while it was at 0 before [20:32:58] using CAS...? [20:33:50] no idea what that is [20:35:38] success!! [20:35:48] i set user_touched to '20190423202746' [20:35:50] then it worked [20:36:00] thanks for the repeated nudge to enable debugging [20:36:10] and thank you bawolff2 and Skizzerz for your input :( [20:36:13] err :))) [20:37:08] nice! [20:37:35] (for reference, CAS in that context refers to "Check and Set" -- it's a way to ensure that multiple processes don't overwrite each other with older data) [20:39:04] (ok got the acronym slightly wrong, but it's this: https://en.wikipedia.org/wiki/Compare-and-swap ) [20:40:32] Confrobulate and Salsa [20:40:44] mmm salsa [20:47:24] I'm looking into making a tag extension. one thing it will need to do is enclose the text inside the tag in an html tag with a css class to change the font family. is there anything I need to look out for? can I just make it enclose the content in
or something? [20:47:53] yep, that'll work fine [20:48:10] ok cool... are there any guidelines on this? I just don't want to mess up regular html rendering [20:48:15] I will test obviously [20:48:32] and I don't particularly _want_ to change font family but we have text in multiple scripts (alphabets) and one font won't work for all [20:49:18] I assume you're doing something other than just wrapping in a div to actually merit making it an extension [20:49:30] technically, div is not allowed in certain contexts [20:49:36] Skizzerz: how else can I do it? [20:49:41] not sure if realistically there's a better approach though [20:49:44] a regular mediawiki template [20:50:00] and most browsers probably ignore errors like that anyway [20:50:01]
is allowed in normal wikitext [20:50:19] Skizzerz: yes, but then I'd have to do like {{foo|text goes here}} and wouldn't that be kind of ugly if the text has multiple paragraphs etc? [20:50:34] HTML phrasing context, I mean [20:50:46] an alternative is {{foo begin}}text goes here{{foo end}} [20:51:00] but that has downsides as well [20:51:05] Skizzerz: oh really? huh, well I looked at docs yesterday and didn't find anything like that [20:51:13] and asked here but no one answered :P [20:51:35] it isn't at https://www.mediawiki.org/wiki/Help:Templates [20:51:56] (note: that's two separate templates. One named [[Template:Foo begin]] that just has the opening div, and one named [[Template:Foo end]] that just has the closing div) [20:52:05] ohh [20:52:08] got it [20:52:24] yeah, I suspect we'll want a little more certainty and logic to this [20:52:29] I dunno, I will think about it [20:53:01] if you go the template route, put the css in [[MediaWiki:Common.css]]. If you go the extension route, you'll probably be looking at injecting the css via ResourceLoader [20:53:20] yes, good point [20:53:33] I'll also note that don't support wiki markup inside of them, only {{#parserfunctions:}} support markup [20:54:05] (you can parse markup inside of a tag extension, but you're on your own to do so in your extension code; the software isn't going to do it for you) [20:54:33] ok, good to know [20:55:04] what else happens to the text input? I noticed that in example tag extensions there is htmlspecialchars($input) [20:55:16] by default? Nothing [20:55:24] so it doesn't apply html entities either, apparently? [20:55:34] the reason htmlspecialchars() is there in examples is because the output of tag extensions is treated as raw HTML and sent directly to the end user [20:55:35] I assume likewise for, say, two newlines, it won't insert

or whatever [20:55:58] correct; the software doesn't touch your extension's output. [20:56:22] also, the things that look like html attributes seem to be passed in as tag attributes but they are just for the code to use and interpret [20:56:31] since it is a custom tag after all [20:56:32] (htmlspecialchars is therefore needed to avoid security vulnerabilities such as XSS when emitting user-generated content) [20:57:00] both the attributes and content are 100% up to your extension to interpret however you want [20:57:19] for example, https://www.mediawiki.org/wiki/Extension:InputBox#Wiki_code [20:57:33] Skizzerz: what mediawiki function would I call to convert mediawiki markup to html in the normal way (as if there were no tag extension)? [20:58:02] you'd need to obtain a Parser object instance and call the parse method on it, passing in the text you want parsed [20:58:11] like if I wanted a noop tag extension, so ..... and act as if there were no foo tag [20:58:14] ok [20:58:19] I am just going to use that as a starting point [20:58:30] I'll also consider the template route, I am not sure yet what will make most sense [20:58:31] example is at https://www.mediawiki.org/wiki/Manual:Tag_extensions#Since_version_1.16 [20:58:34] thanks [20:59:05] yes, I found the api, I actually have a working one -- well, working meaning it runs, not that I know how to tweak most of this yet [20:59:46] looks like basically you just return a text string and that's the html output [21:00:01] most of my fears here are too much magic behind the scenes and it looks like it's the opposite :) [21:32:58] I am testing using the resource loader now. I added a hook to BeforePageDisplay where I call $outputPage->addModules('foo') [21:33:32] the module name shows up in the