[00:04:30] I am using the translate extension to translate my wiki. However, it has some templates. When I tried to use the extension to translate the templates, it works partially but seems to add some visible tags on my main page. Can anyone tell me how to fix this? [00:04:35] polysleep.xyz [00:55:29] Hey could anyone help me out with a problem? I don't think I've set up the math extension right, and it seems that formula only render on the preview or visual editor, but just show the source when browsing normally [00:57:15] Oh and it gets weirder: Basic stuff like 0 renders fine, but things more complex have this issue (but not in preview) [01:45:36] Youngjin: basic math probably isn't requiring render [01:46:04] there are several preferences on how to render them [01:47:35] although that it works on preview makes it look more like a path issue [01:47:55] such as having only a relative path to the images url [10:33:28] Hello, [10:33:38] I have place the following in my LocalSettings.php: [10:33:40] function SpecialPageBlock(&$list){ global $wgUser; $allowedGroups = array( 'sysop', ); $whiteList = array( 'Userlogin', 'OAuth2Client', 'BrowseData', 'Userlogout', 'Search', 'Preferences', [10:33:40] 'ChangePassword', ); $allowed = false; $userGroups = $wgUser->getGroups(); foreach($allowedGroups as $group) { if (in_array($group, $userGroups)) { $allowed = true; break; } } if (!$allowed) { [10:33:41] foreach($list as $key => $specialPage) { if (!in_array($key, $whiteList)) { unset($list[$key]); } } } return true;}$wgHooks['SpecialPage_initList'][]='SpecialPageBlock'; [10:33:52] Essentially: $wgHooks['SpecialPage_initList'][]='SpecialPageBlock'; [10:34:22] A function which blocks access to all special pages except for specified user groups. [10:34:48] But the problem is that when I load a mediawiki page, I get the following error on the browser console error output: [10:35:09] [47935e26e9600d3e449bc8ba] /load.php?lang=el&modules=startup&only=scripts&raw=1&skin=chameleon BadMethodCallException from line 851 of /var/www/html/dev/includes/session/SessionManager.php: Sessions are disabled for this entry pointBacktrace: [10:35:13] ... [10:35:43] #0 /var/www/html/dev/includes/session/SessionManager.php(220): MediaWiki\Session\SessionManager->getSessionFromInfo()#1 /var/www/html/dev/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest()#2 /var/www/html/dev/includes/user/User.php(1221): WebRequest->getSession()#3 /var/www/html/dev/includes/user/User.php(388): [10:35:43] User->loadFromSession()#4 /var/www/html/dev/includes/user/User.php(2125): User->load()#5 /var/www/html/dev/includes/user/User.php(3064): User->getId()#6 /var/www/html/dev/includes/user/UserGroupManager.php(1021): User->isRegistered()#7 /var/www/html/dev/includes/user/UserGroupManager.php(653): MediaWiki\User\UserGroupManager->getCacheKey()#8 [10:35:44] /var/www/html/dev/includes/user/UserGroupManager.php(638): MediaWiki\User\UserGroupManager->getUserGroupMemberships()#9 /var/www/html/dev/includes/user/User.php(2936): MediaWiki\User\UserGroupManager->getUserGroups()#10 /var/www/html/dev/LocalSettings.php(270): User->getGroups()#11 /var/www/html/dev/includes/HookContainer/HookContainer.php(320): [10:35:44] SpecialPageBlock() [10:35:49] ... [10:36:38] Seems to be caused by my function calling User->getGroups(). (as you can see in the backtrace). Any ideas what could be the problem? I am convinced it is unrelated to my custom function... [10:51:20] Hi, on a self-hosted MW, how could I debug/resolve this error "script error : module 'documentation' does not exist" (seems LUA-related) ? I have it on a lot of template pages, event on the Module:Documentation page itself [10:53:42] kriks57: try editing and saving Module:Documentation, and see if it fixes at least for that Module:Documentation page [10:56:18] Is there a $wg... variable that contains all user group names? [10:56:30] Vulpix: I did it but it does not change anything [10:59:09] ckarageorgkaneen: apparently, groups exist only if they have rights assigned on $wgGroupPermissions - https://www.mediawiki.org/wiki/Manual:$wgGroupPermissions [10:59:56] So, in theory in can just iterate over the keys of $wgGroupPermissions? [11:01:00] Yes [12:55:59] Hello, is there a variable I can access/iterate over in LocalSettings.php that holds all the special pages names? [13:15:17] Vulpix: after deleting and Importing the Module:Documentation page again, the error is gone, but I have another one : Lua error: expandTemplate: template loop detected. (I have $wgMaxTemplateDepth = 1000; in LocalSettings ) [14:30:53] Do you know where MW_NO_SESSION and MW_NO_SESSION_HANDLER are defined? [16:42:41] Hi guys, is there an extension which allows to add hashtags to an article? [17:50:29] Steffan7563: Why not use categories? [18:01:47] Vulpix because we use it for categorizing the articles, but people also want to use it in a twitter like style [18:09:13] but I suppose there is no easy solution or an extension for that :( [18:10:49] have you tried searching on mediawiki.org? I think an extension for that used to exists... unless it has been deleted for being unmaintained/broken [18:13:00] yes I have, but couldn't find [18:13:11] that was the first thing I tried [18:25:20] A quick and dirty solution would be to create a template, for example, {{hashtag}} that you can use as {{hashtag|SomeTag}} and internally it categorizes based on that text, with a prefix, to "separate" it from normal categories. For example, [[Category:Hashtag-SomeTag]] or [[Category:Hashtag:SomeTag]] [18:57:38] Steffan7563: you might be interested in https://blog.hatnote.com/post/112756032432/the-humble-hashtag-now-on-wikipedia#_=_ [18:58:09] UI for that is at https://hashtags.wmflabs.org/ these days [19:10:42] Krinkle: thanks for the explanation on https://gerrit.wikimedia.org/r/c/mediawiki/core/+/582499 [20:58:55] what's the maximum number of slave dbs mediawiki recommends for heavy read query installations [23:15:13] c: the probably unsatisfactory answer is "as many as you need to handle the load". In the Wikimedia production cluster we have "sections" with up to 10 r/o dbs.