[01:24:07] Reedy: does Push support oauth? [07:55:38] I have a beta testing platform of mediawiki (1.29.2-2) with several accounts to test with, how do I delete those accounts? [08:00:25] eckirchn: you can use UserMerge to merge them into a single "trash" account [08:01:17] tgr, ok might need a bit more help there, can i do that from the admin special page? [08:01:46] tgr, thank for the suggestion btw, sorry for not saying that first [08:02:08] yeah, it's used through the special page [08:04:12] tgr, https://imagebin.ca/v/468zcziGQHoE [08:04:21] tgr, I might need a bit more help [08:05:23] eckirchn: did you install https://www.mediawiki.org/wiki/Extension:UserMerge ? [08:07:32] tgr, nope if it didn't come with the default fedora install, will try that [08:15:38] tgr, installed it, and see that extension, even if the user didn't contribute, i need to merge it a a user? [08:16:31] I can't just delete users via like a check box? and merge them all to a XXX user? [08:17:57] tgr, it does seem to work though, thank you, just one by one, not a batch action [08:19:06] eckirchn: Extension:BlockAndNuke [08:19:21] ...can supposedly use it in batches, never tried it myself [08:20:07] tgr, thank you though i did it with the users i needed, just didn't see the batch method, thank you MUCHO\ [08:21:09] I'll ask a second question, what about the best basic RTF editor, i think i ran years ago, something like cmkeditor, suggestions on editors? [08:22:05] RTF = rtf (rich text format), basic wisywig, without knowing wikitext [08:34:13] eckirchn: well, VisualEditor is the most powerful, definitely not basic though [08:36:13] there are some WYSIWYM editors (syntax highlight and such), e.g. CodeMirror or WikEd [08:40:45] there is also Extension:TinyMCE which is probably your best choice if you want something simpler than VisualEditor [08:41:52] tgr, I tried VisualEditor, and i got lost a bit with the install, and reverted back. I lost the install a bit because it seemed to venture away a bit more than i wanted from the Fedora Repos [08:42:47] yeah, you need to install a bunch of node.js services for VE to work, I'm not sure how much those are packaged for Fedora [08:43:35] tgr, not taking away what it was capable of, i just needed this install to be close to something that could be cloned to a RasperryPi [08:44:07] worst case scenario, the PI... [08:47:21] tgr, i think TinyMCE meets my needs, thank you [08:52:15] How can I import .wiki files? Example: A file called Test.wiki with the text "Hello world" to page title "Test". [09:10:16] tgr - is one of the icons in Extension:TinyMCE does it provide a Table of Contents, or is that something I need to set globally? [09:10:45] eckirchn: never used it [09:11:41] you could try asking the BlueSpice folks, they use TinyMCE heavily I think and have a bunch of improvements for it [09:12:09] tgr, thank you 2x. [09:12:20] on https://riot.im/app/#/room/#mwstake-extensions:matrix.org [09:12:54] David_Hedlund: maintenance/edit.php is the easiest way [09:13:11] for large complex imports you could look at pywikibot [09:13:24] can i just require every page include a TOC? [09:13:43] tgr: Thanks. [09:15:36] Hi, I would like to print my wikipage to PDF. The print view removes the menus (good), but also all other colors (bad for me). I'm looking for the best way to print the page as it looks to the end user. Any tips? [09:15:59] tgr: does i can allow attachments with links, right? I am about 10 years out of this.. [09:16:18] tgr, if i allow all upload formats? [09:16:27] in TinyMCE, you mean? [09:16:51] tgr, true, at this time, but yes, i like TinyMCE [09:17:51] tgr, I would love a upload file option, I am willing to let this be anything (but it would be easy for me to restrict this to doc, pdf, zip) [09:18:32] eckirchn: not sure I understand what the question is [09:19:10] tgr, ok 1 sec, there is an upload files, but it's restricted, i need to open this up. I will look that up, as I know I had done this in the past.. [09:20:56] finalbeta: https://en.wikipedia.org/w/index.php?title=Main_Page&printable=yes [09:21:01] there are plenty of colors [09:21:10] or do you mean link colors specifically? [09:21:26] thrasibule_, do all uploads end up in Images or can i sort them by extension? [09:21:59] everything ends up in File: [09:22:06] (Image: is the old name for that) [09:23:30] tgr, i'm running a mediawiki (and thanks for that link, didn't know about printable=yes) and when I go to that url on my wiki. all colors on tables are gone. [09:23:31] so when i look at this: https://imagebin.ca/v/469Nd1eCuFxb [09:24:03] printable=yes just shows the page with print styles [09:24:13] I think i used to specify the ".xxx" permitted, this will be installed in a safe environment, so extensions don't mean much [09:24:13] which do not generally affect colors AFAIK [09:24:56] eckirchn: oh, I thought you were talking about namespaces [09:25:08] everything goes into the images directory, yes [09:25:24] configuring alternate locations for files is not hard [09:25:44] tgr, it's not hard? [09:26:20] is it just setting a path variable with a if statement or something? [09:26:22] tgr, that printable view is without colors and the original page is with colors. Meaning some sort of print css is changing the page. [09:27:21] finalbeta: you can override print styles in (I think) MediaWiki:Print.css [09:29:12] tgr, you can, but that's empty. I need to know how to undo what was done with the colors in the first place (I'm reading some things I googled about that now) [09:29:32] eckirchn: https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#Using_files_from_a_local_folder_:_FileRepo [09:30:44] those will not be handled as local files (no file history etc) but will work [09:30:54] a bit hacky [09:32:42] finalbeta: if you don't mind patcing upstream code, it's in a file called print.css somewhere in /resources [09:32:59] or it might be in the skin you are using [09:33:26] tgr, ok, thanks again, let's say i accept all file, for today, drop into ../images... right now my extension was blocked, i forget what varibale dictates permit or not. Again, I trust all content, so I want all extensions to be valid [09:33:57] tgr, I'm using the default skin that comes with mediawiki. thanks for the info. [09:34:21] eckirchn: see https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Configuring_file_types [09:35:15] finalbeta: that would be Vector. So skins/Vector/print.less [09:36:26] tgr thank you yet again, editing it and testing it [09:36:31] eckirchn: re: TOC, it's generated when there are more than 3 sections [09:37:55] that's hardcoded, you would have to use a parser hook to work around it [09:38:51] something like https://www.mediawiki.org/wiki/Extension:NoTOC [09:55:31] tgr, i just added all my accepted extensions, an tried an upload of a mpg file, it uploaed but failed on "convert" i think. I'll try parsing that line out, but I want to trust all the extensions i list [09:55:40] $wgEnableUploads = true; [09:55:40] $wgStrictFileExtensions = false; [09:55:40] $wgFileExtensions[] ='png'; [09:55:41] $wgFileExtensions[] ='gif'; [09:55:41] $wgFileExtensions[] ='jpg'; [09:55:41] $wgFileExtensions[] ='jpeg'; [09:55:43] $wgFileExtensions[] ='doc'; [09:55:45] $wgFileExtensions[] ='docx'; [09:55:49] $wgFileExtensions[] ='xls'; [09:55:51] $wgFileExtensions[] ='xlsx'; [09:55:53] $wgFileExtensions[] ='pdf'; [09:55:55] $wgFileExtensions[] ='csv'; [09:55:57] $wgFileExtensions[] ='tif'; [09:55:59] $wgFileExtensions[] ='tiff'; [09:56:01] $wgFileExtensions[] ='bmp'; [09:56:03] $wgFileExtensions[] ='zip'; [09:56:05] $wgFileExtensions[] ='gz'; [09:56:07] $wgFileExtensions[] ='tgz'; [09:56:09] $wgFileExtensions[] ='mp4'; [09:56:11] $wgFileExtensions[] ='mpg'; [09:56:13] $wgFileExtensions[] ='mpeg'; [09:56:15] $wgFileExtensions[] ='mp2'; [09:56:19] $wgFileExtensions[] ='mp3'; [09:56:21] $wgFileExtensions[] ='mpa'; [09:56:23] sorry for the spam [09:58:11] I get: [09:58:13] I'm sorry, you have encountered an unknown error trying to upload this file. If this error persists please cntact your systems administrator [09:58:39] note the type wasn't mine, that's a bugzilla thing [10:54:50] where would I set $wgScriptPath when there's no LocalSettings.php, yet? [10:55:25] you can't, but it shouldn't matter at that stage [10:55:45] i'm loading "https://myserver.com/wiki/index.php" which says "Please set up the wiki first" and redirects me to "https://myserver.com/mw-config/index.php" ... [10:57:58] when I manually correct it to "https://myserver.com/wiki/mw-config/index.php", i get an error: "Error: Could not determine the current URI. Installation aborted. " [10:59:11] Vulpix: i don't understand, there's a wrong link to the setup. How would MW know the web path? [11:01:13] is MediaWiki installed in the root folder? If that's true and you have set up rewrite rules for short/pretty URLs, you should disable them during the installer, or correct them to not take the installer into account [11:01:56] nope, it's installed into /var/www/hosts/myserver/htdocs/wiki/ which is /wiki relative to the root [11:02:20] but there actually might be something wrong with my nginx config... hm [11:04:15] hm, the only rewrite rule there is cares for beautiful links I guess... [11:04:15] rewrite "^/wiki/(.*)$" /wiki/index.php?title=$1&$args; [11:05:57] disable that rule during the installation process. Also, rewriting on the exact same path (bot origin and destination are on /wiki/) is going to cause trouble [11:08:57] such rewrites are usually setup when pretty urls are in a different path (or longer, if pretty URL contains the normal one) than the wiki installation [11:09:38] you can have your wiki in the root directory, or a different directory than /wiki [11:09:50] then rewrite to /wiki [11:19:15] disabling that rule doesn't fix the error. I still can't understand how MW would know it should link to /wiki/mw-config/ instead of /mw-config/ [11:28:54] it should know with the SCRIPT_FILENAME fastcgi param, which should be correct if there are no rewrite rules involved [11:36:17] hm, the SCRIPT_FILENAME seems to be correctly set. If I change it, I get "FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream" errors [11:37:14] DOCUMENT_ROOT is set to "/var/www/hosts/myserver/htdocs/" and SCRIPT_FILENAME is set to "/var/www/hosts/myserver/htdocs/wiki/index.php" [11:44:12] can you share your nginx config in https://dpaste.de ? [11:52:26] Vulpix: sure [11:52:29] https://dpaste.de/9ghM [11:52:40] somehow the indentation got messed up [11:55:18] ah, this looks better https://dpaste.de/9ghM/raw [11:55:28] ...slightly [11:59:10] > location ~ [^/wiki/]\.php(/|$) [11:59:19] I'm not sure if that regexp is right [12:00:43] [^ ] is for selecting characters. It would mean one character that isn't /, i, k nor w, followed by a dot, and php [12:01:46] How can I find the "In other projects" links with the API? [12:04:16] rigid: this is roughly my configuration, wiki is on the document root, but URLs are prettified with /wiki/, and looks more cleaner: https://dpaste.de/8T1B/raw [12:05:41] found it, looks like prop=iwlinks does the trick [12:07:31] Vulpix: ah thanks, indeed that regex is nonsense. It should actually be "location ~ \.php(/|$);" i suppose [12:08:03] Vulpix: when I put my installation into the document root, everything works. That's my actual problem, i need it to be in the /wiki subdir [12:09:02] if it needs to be in the /wiki subdir, don't make pretty URLs use the /wiki prefix, use a different one, otherwise you may get conflicts, redirect loops or other issues [12:09:06] by default / redirects to /wiki but I also have /users, /git etc. [12:09:37] or install it in a different subfolder (for example /mediawiki) and use /wiki for pretty URLs [12:09:54] hm, ok i'll try that [12:35:10] tgr, about the printing thing, in the end it was easier to remove the parts of the page I didn't want using jquery and force normal print using the chrome dev tools. (I rather not change tempaltes/core code) [13:29:09] I'm searching for a game called Iconoclasts on WikiData. When I search on the WikiData website, I get a useful result, but when I search in the WikiData API, the result differs from what I get from the wikidata.org website. How can I get the same results from the WikiData API as I get from the wikidata.org website? [15:17:42] Greetings! Running into an issue with SyntaxHighlight_GeSHi. It's tossing an MW exception, from a failing regex anchored ot the start that has some preceeding error: sh: environment corrupt; missing value for [15:18:29] then it lists 2 unicode chars, which I assume are byte misaligned, but still not sure what env var might be cauing the problem. Any ideas? [15:18:50] SyntaxHighlight::parserHook is where the bt ends [18:11:10] Hello, after updating from 1.29 to 1.31 Everything is working in firefox, but Chrome and Opera gives the error "(unknown) Mixed Content: The page at 'https://www.zonstraal.be/wiki/Hoofdpagina' was loaded over HTTPS, but requested an insecure stylesheet 'http://en.wikipedia.org/w/index.php?title=User:MarkS/XEB/live.css&action=raw&ctype=text/css&dontcountme=s'. This content should also be served over HTTPS." [18:11:19] Any ideas? [18:27:33] janus_: you seem to have an @import CSS rule importing that stylesheet, either in your personal CSS or the site's CSS [18:27:57] you can change that http:// with https:// in the URL to fix that [18:28:42] Thanks for responding, but I can't find the CSS where the http is [18:34:35] janus_: https://www.zonstraal.be/wiki/MediaWiki:Common.js [18:35:53] Thanks a lot I was searching now for 6 hours to thar error [19:19:04] hm, i'm still getting "Error: Could not determine the current URI. Installation aborted." ... what could cause this? [19:19:39] web installer or cli installer? [19:19:56] web installer [19:20:12] maybe a misbehaving proxy or reverse proxy (cache) in front of the webserver that is stripping out the Host: header [19:20:40] not entirely sure though, perhaps someone else knows more [19:21:05] nope, i'm directly connecting to the box having the FQDN resolve directly to the IP [19:21:46] also "Using server name "https://myserver.com" correctly identifies the hostname [19:24:11] hm, the webInstaller checks for SCRIPT_NAME but isn't it called SCRIPT_FILENAME ? [19:25:34] ah, those are both needed. got it, nvm [19:55:56] is there a way to export/import user accounts? [19:56:17] i'm migrating from mysql to postgresql and users are the only thing i'm missing [19:58:03] outside of sql dumps, no [20:12:02] oh [20:12:46] and I guess converting a mysql dump's 'user' table to a postgres 'mwuser' table is not straight forward :-/ [20:13:53] i'm surprised that there's no XML dump to copy a wiki 1:1 (including localsettings, uploads etc) [20:19:54] rigid: the mysql schema and postgres schema are not the same, so you'll possibly need to edit the sql a bit [20:31:37] it's like webapps are secretly sponsored by awk ;) [22:10:16] what could be the reason for "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form." when I first try to login using the sysop account I created during the installation for the first time?