[01:19:26] h [07:25:43] Meep? Anyone awake that knows how to do parser functions? [08:23:07] Heya [08:23:24] I got a mediawiki and should create an area where people can download fields after filling in a form [08:23:30] is there some useable extension for me for that? [08:30:26] https://www.mediawiki.org/wiki/Help:Managing_files/de [08:30:35] I dont got "Upload file in the left sidebar [08:30:39] What could be the issue ofr that? [08:31:17] !uploading | Xatenev [08:31:17] There is no such key, you probably want to try: !install, !uploadbyurl, [08:31:22] !upload | Xatenev [08:31:22] Xatenev: File uploads are disabled by default, set $wgEnableUploads=true; to enable it. See for configuration details, and for using uploaded images and other files. [08:32:40] Thanks man [08:33:01] Sorry im totally noob with mediawiki and gotta finish something real quick.. [08:33:25] Can I only show some content when logged in? like.. is there a tag [ifLoggedIn] [/ifLoggedIn] [08:39:52] !acl | Xatenev [08:39:52] Xatenev: Wikis are designed for openness, to be readable and editable by all. If you want a forum, a blog, a web authoring toolkit or corporate content management system, perhaps don't use wiki software. There is a nice overview of free tools available at including the possibility to try each system. For ways to restrict access in MediaWiki, see !access. [09:09:05] Is the UserEffectiveGroups depreciated in 1.27? [09:09:11] UserEffectiveGroups hook& [09:33:26] Xatenev: you can choose to have a completely private wiki [09:39:07] slushpuppy: no, but it's somewhat broken. why do you ask? [09:41:27] slushpuppy: here's the ticket https://phabricator.wikimedia.org/T142295#2530412 [09:41:41] DanielK_WMDE_, I thought it was removed [09:41:50] but turns out it was an invalid link [09:42:15] I see it being called in User::getEffectiveGroups [09:42:17] https://www.mediawiki.org/wiki/Manual:User.php <-- click on 1.27 [09:42:56] slushpuppy: yea, the file was moved... [09:43:11] yeah figured as much after searching the wiki [09:43:13] github* [09:43:13] https://phabricator.wikimedia.org/diffusion/MW/browse/REL1_27/includes/user/User.php [09:43:54] also DanielK_WMDE_, would u have any insights as to how to define an extension that overwrites an abstract class file of another extension? [09:44:03] define an extension.json* [09:44:09] overloads* [09:44:59] slushpuppy: what do you mean by "overwrites an abstract class"? [09:45:06] * DanielK_WMDE_ fixed the link [09:45:15] oh i was about to fix the link [09:45:20] thanks tho [09:45:29] you usually extend an abstract class. you don't overwrite it... [09:45:59] i was meant to say overload [09:46:10] 1 second [09:46:53] There's this 1.27 extension: https://gerrit.wikimedia.org/r/#/c/299107/ - https://gerrit.wikimedia.org/r/#/c/299107/3/extension.json [09:47:05] overloading is something you do with methods, and php doesn't support it. it does support overriding though http://beginnersbook.com/2014/01/difference-between-method-overloading-and-overriding-in-java/ [09:47:18] nither applies to classes. [09:47:19] anyway [09:47:43] The relevant class name is PluggableAuth which I am suppose to define myself [09:47:45] slushpuppy: you don't need to do anything in your extension.json to be able to access classes from another extension. [09:48:04] there is currently no mechanism to declare dependencies between extensions. [09:48:27] you should probably have an if ( class_exists( ... ) ) somewhere to check and give a meaningful error [09:52:02] DanielK_WMDE_, So using something similar to this: https://www.mediawiki.org/wiki/Manual:$wgSessionProviders wouldn't work I assume [09:52:13] (I tried it, didn't work) [09:52:56] {"PluggableAuth":{ "MyCustomPluggableAuth":{class: "MyCustomPluggableAuth"}}} [09:53:07] along the lines of that [09:59:47] How do I get the file path to an uploaded file? [09:59:53] (not URL - directory path) [10:02:14] Got it - wfFindFile [14:01:31] hello, what is the simplest way to backup your mediawiki data and then restore ? i have phpmyadmin btw [14:16:46] alex1a, https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki and https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup [14:54:38] I am looking at this page https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide and my visualeditor doesn't even have half the things listed there [14:54:41] what is going on :o [14:54:46] 1.27 [14:55:42] what's missing slushpuppy? [14:55:57] Citation stuff relies upon other extensions [14:56:05] as does a lot of stuff in the insert menu [14:56:41] ah [14:56:47] where can i find such extensions? [14:57:00] Krenair, yeah citation, math formulas [14:57:14] Extension:Math for math formulae [14:57:19] oh gotcha [14:57:24] Extension:Cite and Extension:Citoid for citation stuff [14:57:29] might need some on-wiki config to show up [14:57:41] also I assume that popular pages and random pages are extensions as well yeah [14:57:58] Special:PopularPages and Special:RandomPage ? [14:58:58] those that appear in the front page [14:59:55] don't know what you're talking about [15:00:49] https://en.wikipedia.org/wiki/Main_Page <- oops it's called featured article [15:19:28] slushpuppy, featured articles are manually curated afaikk [15:19:31] afaik* [16:33:57] is there something wrong with https://www.mediawiki.org/wiki/Extension:TemplateData [16:34:08] the edit tab doesn't show up for MW 1.27 [16:53:13] o nvm [16:53:15] i see it [16:53:15] hehe [18:55:37] anyone around who is a whiz on MW skin structure? :) [21:10:10] hi! I just upgraded my mediawiki. I can see the page titles and click "random page", but all the page content is missing. hint, please? [21:11:05] I have seen https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Page_content_missing_after_moving_a_wiki_from_Linux_to_Windows/reply [21:18:14] What MW/PHP versions? Anything in error log with E_ALL? [21:20:33] latest mw, php 5.5.37 [21:20:58] nothing in /var/log/apache2/error.log [21:21:20] when i try to maintenance/importImages.php i get a warning that php doesn't have xml or mbstring installed. [21:34:28] i'm being told I can't have mbstring or xml unless I do something drastic, like upgrade ubuntu from 14.04 to 16.04, which cost me two days the last time I did it. [22:13:28] my mediawiki install is not showing page contents. google hasn't helped. what am i doing wrong, please? [22:16:34] also when i run "php5 maintenance/importImages.php /home/droyer/images/ --extensions=jpg,JPG" I get "Function: BotPassword::removeAllPasswordsForCentralId, Error: 1146 Table 'wiki.bot_passwords' doesn't exist (localhost)" [22:31:12] Good afternoon! I have a question on a certain possible function and weather it exists on MediaWiki. [22:33:11] If anyone is avaliable to answer said question that would be great. [22:39:36] Hi Zachariah [22:39:48] Hi Dereckson. [22:40:00] We're not great telepath, it would help if you explain us the function. [22:40:21] sorry :P doing a couple things at once. [22:41:18] I am a admin of a wiki that is hosted through MediaWiki and I was wandering, is it possible to delay edits. Like make the edit but set it to update at a later date? [22:41:52] i-make-robots: you probably need to upgrade database schema, you can do that with php5 maintenance/update.php [22:42:02] i-make-robots, I wonder how you managed to upgrade it, then. the updater is supposed to barf at missing extensions (and MW isn't supposed to be working without them, especially mbstring) [22:42:06] i-make-robots: you'll get new datbase schema changes [22:44:20] Zachariah: as far as I know, delayed edits directly at UI level aren't possible, you can workaround using the API, and an external tool to schedule it [22:44:35] What's the problem you're trying to solve with delayed edits? [22:45:20] Another solution implemented on Wikipedia is to have subpages for days or months, and include the subpage of current day/month [22:45:33] not really a problem. This specific wiki is for a big game and we are looking at maybe delaying edits until a specific update goes live on the game. [22:45:42] On Wikipedia, that works awfully, as that's heavily cached, but on a smaller wiki, that will be quickly refreshed [22:45:56] i didn't know about upgrade.php until after. [22:46:10] yeah I didn't think there would be an easy way to do it that works well. [22:46:15] which i have run, and now wfLoadSkins() produces a fatal error. [22:46:18] i-make-robots: update.php [22:46:25] that's the one [22:47:22] is the path for the install coded in the database somewhere? Every time I click a link it tries to take me to the url of the old pre-upgrade installation. [22:47:35] Zachariah: with parser functions or lua code you can add a condition if => then else [22:48:03] i don't see it in LocalSettings... [22:48:28] Thank you Dereckson, we may try that. I appreciate the help. [22:48:44] Zachariah: that's for example how fr.wikipedia.org does for deletion requests to display a banner ready to be closed when 14 days have been elapsed [22:49:26] hmm ok thank you [22:51:44] uh oh... "[6cc429a9] 2016-08-19 22:43:09: Fatal exception of type MWException" [22:52:10] http://www.reverb-marketing.com/wiki2/index.php/Main_Page [22:56:00] please, anyone know why this is happening? [22:56:48] yes, follow the instructions at "If you have just upgraded MediaWiki" [22:57:01] you probably only want wfLoadSkin( 'Vector' ); [22:57:10] I did that [22:57:14] it's what caused the exception [22:57:38] cd skins/Vector [22:57:40] composer install [22:57:53] vector ha some dependencies too [23:00:31] what is composer? [23:00:59] it's not in ubuntu afaik [23:01:27] It's a package manager for PHP [23:01:58] https://getcomposer.org/download/ [23:04:39] followed their instructions. composer doesn't run when i try your previous "composer install" command. [23:05:16] nm [23:05:25] got it running. says "do not run as root!" and KEEPS GOING. [23:13:10] squizlabs/php_codesniffer 2.5.1 requires ext-xmlwriter oh here we go again. [23:14:26] i'm sure you ladies and gentlmen are doing a great job making mediawiki work. I must have got the unlucky install, because my ubuntu 12.04 has been sick ever since I tried to upgrade MW. all just so I could bring in the pictures from another mediawiki to this one. [23:14:48] the automated composer message about how to fix extensions is giving really bad advice that doesn't apply to ubuntu. [23:16:11] you don't need the codesniffer if you aren't going to develop the code of the Vector skin [23:16:20] so you can try composer install --no-dev [23:18:39] i-make-robots: when you say "I must have got the unlucky install", how do you install/upgrade MediaWiki by the way? [23:22:16] i give up! it's 5pm. I'll try again monday. three days of pain, i need a break. [23:22:24] thank you for your help, I hope you have a nice weekend. [23:25:01] Hey, I am trying to get the images of all the supplied titles, hoping to get them from the English website. I am doing this call: https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&uselang=user&prop=imageinfo&list=&meta=&indexpageids=1&iwurl=1&titles=Vulpes+vulpes%7CAcer_negundo%7CIsrael&generator=images&redirects=1&utf8=1&formatversion=2&iiprop=timestamp%7Cuser%7Curl%7Cextmetadata%7Cmetadata but this way I [23:55:42] Ok there are 2 options to solve this problem, both require 2 requests instead of 1: 1. Get all images with page ids (e.g: /w/api.php?action=query&format=json&uselang=user&prop=images&list=&meta=&indexpageids=1&iwurl=1&titles=Vulpes+vulpes%7CAcer_negundo%7CIsrael&redirects=1&utf8=1&formatversion=2&imlimit=50); 2. Use a generator once with images and then with getallusage. [23:56:02] Would be happy to hear about a 1 request solution though, 10x :)