[01:34:38] Is the donation advert banner a system message, or is it loaded from off-site? [01:35:18] ipatrol: why do you ask? [01:37:11] Seddon: was kicking around an idea and I was wondering what technical level ot would have to be implemented at [01:37:22] s/ot/it [01:37:48] ipatrol: what was your idea? [01:40:17] I think it's a normal globalnotice [01:45:42] Platonides: is it part of the CentralNotice thingy? [01:48:03] Found it [09:29:25] hello, I have trouble setting up mediawiki to work with nginx. It wored well initially, but then I tried to make it work with short urls and now styles don't load. [09:29:39] Anybody care to help me out? [09:33:44] share your current nginx.conf [09:40:37] https://pastebin.com/rZRtFpxm ths is nginx.conf [09:41:43] this is mediawiki.conf, but it's a bit of a mess [09:41:44] https://pastebin.com/6zaneDRQ [09:42:46] basically, I couldn't find anything but ready mediawiki configurations, but none of them worked out of the box with short urls, so I started experimenting [09:43:30] But I can't really tell what is wrong right now, perhaps I can somehow trace what exactly happens when I request website? [09:48:35] my wiki is rewriting index.php?title=Article to mydomain/Article [09:48:50] how do you want yours? [09:50:31] maybe this tool may help [09:50:32] https://shorturls.redwerks.org/ [09:51:18] I want it /wiki/Article [09:51:56] I will try out the tool. [09:56:06] e7th04sh, just paste your wiki link [09:56:40] the default configuration is set to rewrite /wiki/Article [09:56:46] as you want :) [09:57:29] could you paste default configuration? [09:57:55] my wiki is on localhost at the moment [10:04:47] you can create a file and then send it over ssh [10:04:50] using scp [10:06:41] scp filetotransfer user@hostname:/tmp [10:07:11] I don't know what you mean now. [10:07:47] From what I understand you said that default mediawiki.conf should work for me. But I no longer have one and to avoid confusion, could you please provide me with one? [10:08:14] I have been using this wiki to make notes so I don't want to reinstall or anything, to avoid further trouble. [10:08:16] I meant the default configuration from that tool [10:08:20] Oh [10:08:58] example: https://shorturls.redwerks.org/?url=https%3A%2F%2Fmeta.miraheze.org%2Fwiki%2FMain_Page [10:09:21] you just need to change nginx.conf and LocalSettings.php [10:10:36] or mediawiki.conf [10:10:45] are OS are you using Ubuntu? [10:12:20] it's Arch Linux [10:14:13] do I need to have /w scriptPath? [10:14:55] https://pastebin.com/GABi8YEb [10:15:01] something like these [10:15:14] you can change it [10:15:19] *this [10:17:54] https://pastebin.com/Fe5B19TG [10:18:28] try it and provide feedback :) [10:19:07] oh, i missed some w/ [10:22:14] https://pastebin.com/GHFxWwkx, this should work [10:22:38] but not sure, I'm a noob and still learning :) [10:23:29] man, I appreciate your support already :> [10:34:44] glad to help :) [10:35:08] care to share your wiki? [10:35:41] oh, forget you said it's running on localhost [12:59:55] sorry, man, I went for a walk with my parents. my wiki is personal, i am taking notes in it [13:28:03] "Unable to determine IP. [13:28:08] " why so? [13:28:29] i figured it has something to do with the $wgUsePrivateIps option [13:28:58] but i don't even have a LocalSettings.php yet. i was trying to configure my local wiki at http://localhost:9999/mw-config/index.php... [18:28:43] Hi! is it a known error that collapsibleTabs.js is missing in 1.31.1? [18:31:25] Is this a problem? Maybe it has been replaced by something else [18:32:10] load.php gives an error and some sidebar menus are empty [18:32:33] doesn't look missing to me [18:32:54] how did you download mediawiki? tarball or git [18:33:17] I see it in skins/Vector/collapsibleTabs.js [18:35:43] ok, then the latest upgrade broke something. [18:36:10] i was comparing https://doc.wikimedia.org/mediawiki-core/1.23.17/php/Resources_8php_source.html with later versions which do not list vector/collapsibleTabs.js anymore [18:37:49] traumschule: it's still on master: https://phabricator.wikimedia.org/source/Vector/repository/master/ [18:38:11] And REL1_31 too https://phabricator.wikimedia.org/source/Vector/repository/REL1_31/ [18:40:20] Stuff just moved locations? [18:40:22] traumschule: note that collapsibleTabs is part of Vector skin, not MediaWiki core [18:41:33] thanks for all the info and checking. documented it http://nomadwiki.org/en/Nomadwiki.org:Community#Recent_Spam_.26_changes_to_Pages [18:47:52] traumschule: Ugh, you shouldn't be using Extension:Vector anymore [18:48:03] https://www.mediawiki.org/wiki/Extension:Vector [18:49:23] I'd thorougly check every extension listed on http://nomadwiki.org/en/Special:Version one by one, and see if it has been replaced/removed or even upgraded. You should get recent versions of those extensions, and remove the obsolete ones [18:57:36] yep, a huge part of upgrading is making sure you update all of your extensions to compatible versions, and remove obsolete ones [18:57:45] good idea :) [18:58:20] * traumschule didn't perform the upgrade [19:01:50] Indeed, there are several extensions where its page says it comes with a previous version and it is listed as installed extension. Guess all those should be dropped. [19:07:40] So next to Vector all these are in core now: Interwiki, Gadgets, ConfirmEdit, ParserFunctions, Nuke, RenameUser [19:12:20] Nope. Do not confuse "bundled with the tarball" with "merged into core/extension" [19:12:51] * traumschule is confused [19:13:04] Those extensions are bundled. They are distributed with the MediaWiki tarball, so you don't have to manually download them [19:13:19] But you still need to enable them in LocalSettings.php for them to work [19:13:51] ok, then only Vector should be removed? [19:13:53] For the Extension:Vector that I mentioned earlier, it has been merged into the Vector skin, so it should be disabled/removed from LocalSettings.php [19:14:07] Also, do not confuse Extension:Vector with Skin:Vector [19:15:11] You should remove the Vector extension (the one that points to the extensions directory), not the Vector skin (the one pointing to the skins folder) [19:17:29] In fact, you may want to install https://www.mediawiki.org/wiki/Extension:CollapsibleVector which is what makes those sidebar sections collapsible now [19:22:19] Sounds convincing. Thanks! Will make some news among the admins :) [19:23:35] s/news/noise/ [20:56:26] on which site in my mediawiki can i upload files? [21:02:56] diverdude: see https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads for info on how to enable uploads for a wiki that you run [21:31:14] Skizzerz: thanks. I uploaded a pdf file. How do i reference that so that it opens in a new window? [21:34:19] [[:File:My uploaded file.pdf]] generates a link to the file in a wiki page [21:35:09] you can also install https://www.mediawiki.org/wiki/Extension:PdfHandler to embed the pdf directly into a page [21:36:14] as for new window, by default links don't do that in mediawiki. You would need to use some custom javascript to accomplish that [21:36:53] in general, forcing a link to open in a new window is an anti-pattern (meaning: a bad thing) [21:37:03] you should give users the choice as to whether or not they want to open a link in a new window [21:44:11] Skizzerz: why is it a bad thing? [21:44:23] Skizzerz: i like pdf's to open in a new window [21:44:27] good for you [21:44:33] the vast majority of internet users don't [21:44:43] so don't force your preferences on everyone else [21:45:39] having them open in new tabs isn't a bad thing; many people (such as yourself, and me as well) like it that way [21:46:08] what's bad is *forcing* a new window on people who prefer to open it in the same tab; it's a jarring experience for them and not something that they expect when clicking a link [21:46:47] consider yourself; when you browse a regular website and do normal clicks on links, do you expect those to open in new tabs even if you didn't tell them to? Why should a pdf link be any different [21:47:33] Having a consistent behavior for links is important for user experience, and normal links give power for users to open them in new tabs anyway if they so choose (many browsers make this easy, such as clicking the scroll wheel to open a link in a new tab) [22:12:27] Skizzerz: i found this: https://www.mediawiki.org/w/index.php?title=Topic:R9hn8hwn8ctsbbho&topic_showPostId=r9v1mhp1u8wycojf#flow-post-r9v1mhp1u8wycojf I put it into my localsettings and restarted my server, but how do i use it? [22:13:51] it would happen automatically [22:13:58] if it still works, lots of things changed in 6 years [22:14:18] and as I stated above, I think this is a terrible idea and as a result I will not be providing any further assistance to help you achieve it [22:19:34] Skizzerz: but why is it so terrible? [22:20:04] oh sorry you wrote that... moment i will read what you wrote [22:21:04] Skizzerz: ok, opening in a new tab is also good....I just dont want it to open in my current tab [22:21:21] same thing [22:21:34] same thing? Also a bad isea? [22:21:36] you're disrupting how links usually work, and robbing the end user the choice [22:21:36] idea [22:21:57] if you want them to open up in new tabs, you can do that on your own browser very easily without impacting everyone else [22:22:25] ok, but even opening the pdf file in current tab does not seem to be possible [22:22:41] did you install the PdfHandler extension I linked? [22:22:59] no [22:23:18] without that extension, clicking the file link leads you to the file description page, which then contains another link to the file itself (meaning 2 clicks to get at contents) [22:23:26] not a great experience [22:23:54] with the extension, the PDF will directly display in the file description page, and additionally you can embed the PDF in articles as well (meaning no clicks to view it, as it's already there) [22:24:31] if you're going to be uploading pdfs to your wiki, it's probably a good thing to install [22:27:14] Skizzerz: i installed it now [22:27:33] so now i should just be able to do [[:File:My uploaded file.pdf]] right? [22:27:37] sure [22:28:16] or if you want to embed a page of the pdf, take out the colon in front and just do [[File:My uploaded file.pdf|page=1]] (or 2, or 3, ...) [22:29:53] hmm it does not work...i am just linked to this page: https://ibb.co/tDrLJGH [22:30:41] hmm [22:30:51] go to Special:Version and verify that PdfHandler is installed/enabled [22:31:06] if it is, try re-uploading the file [22:31:18] if neither of those work, then I'm not sure what's going on =\ [22:32:02] btw in the default experience clicking the "Acne_cnn.pdf" link on that page you screenshotted will download/open the pdf itself [22:32:27] Skizzerz: it seems to be...i found this in special:version https://ibb.co/BZjTMkv [22:34:08] Skizzerz: yes if i click the link in there it opens fine...but i dont want to have to go to that page first to then open df file...that is definitely an antipattern [22:35:26] yep [22:36:52] that's largely because mediawiki's upload system is largely designed for images that are embedded in wiki pages, and not as a document storage solution for pdfs, word documents, etc. [22:37:35] it *can* be used for the latter bit, but since that wasn't the main design, getting anything approaching a usable experience with such files requires extensions [22:37:52] Skizzerz: so what is pdfhandler then doing? [22:38:02] it *should* be working :| [22:38:23] did you confirm that the pre-requisites listed on the extension page are installed? [22:39:57] im doing that now [22:40:02] i found that some are not [22:40:29] see also the second line in the Debugging section: https://www.mediawiki.org/wiki/Extension:PdfHandler#Debugging [22:40:37] "If PDFs don't show properly after installation you may need to use the maintenance scripts refreshImageMetadata.php -f and rebuildImages.php -f" [22:40:53] so after installing the pre-requisites, run those two maintenance scripts [22:42:49] I have to head off, but if you're still having issues stick around and hopefully someone else is able to jump in and help [22:43:07] Skizzerz: where do i find those 2 scripts? [22:46:51] ok when i try to run refreshImageMetadata.php i get this error: "Acne_cnn.pdf failed. Could not open lock file for "mwstore://local-backend/local-public/0/06/Acne_cnn.pdf"." [22:51:06] uhh ok no im getting: Class 'MediaWiki\Shell\Shell' not found [22:52:09] why is this so impossible :/ I just want to open a pdf file [23:02:23] I am running v. 1.29.1. Why is this line giving error:? $resultMeta = Shell::command( $cmdMeta )->execute(); [23:03:00] diverdude: https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Error:_Could_not_open_lock_file_for_%22mwstore://local-backend/local-public/./../image.png [23:03:58] andre__: i already solved that error... [23:04:07] but i have error with Shell now [23:04:20] andre__: I am running v. 1.29.1. Why is this line giving error:? $resultMeta = Shell::command( $cmdMeta )->execute(); [23:05:27] diverdude: No idea why you think it's that line and you did not mention the error message either yet :) [23:05:52] On an unrelated note, 1.29.x is an old unsupported insecure version. [23:06:03] andre__: i think maybe its because it only works in MW v. 1.30+