[07:19:33] \\\\ J O I N #wikipedia-es \\\\ [10:18:52] Hello all i cant open Special:Version [10:18:53] page [10:19:07] It redirects me to main page when i write Special:Version [11:49:13] Hello all [11:49:21] I need oauth connect [11:49:46] ...and we have given you links how to do that. [11:49:53] I tried [11:50:01] But i cant add consumer [11:53:15] ctmarco_: then you probably need to share all the steps that you performed, and how you try to add a consumer, and what happens instead. [11:53:24] we cannot look over your shoulder to see your screen. [11:53:28] so you need to elaborate. [13:04:34] I need Extension to login without password [13:09:54] ctmarco: ....but instead? [13:17:49] andre__: I need for example login without password [13:17:55] allow user log in [13:18:07] How i can affect flow of login? [13:26:19] ctmarco: how does a "login" work without password? [13:26:32] I need to make extension [13:26:36] and how i can [13:26:38] ctmarco: Yeah. How does a "login" work without password? [13:26:41] Make login or affect? [13:26:44] In which way? [13:26:50] What globals i need access [13:26:51] ? [13:26:55] I ned [13:27:00] You don't answer the question so far... [13:27:10] For example cookie [13:27:18] if valid allow login without pass [13:27:31] grabs cookie and allow login without asking password [13:27:35] How i can make it? [13:27:38] That is already the case. [13:27:50] But i need make it by self in extension [13:27:55] with hook [13:28:03] why in extension? [13:28:08] I need to make extension [13:28:12] what allows [13:28:15] me to do that [13:28:58] ctmarco: did you check https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager ? [13:30:43] Yes but docomentation not so explanoatory [13:31:04] I need some guidelines how to acess authentication manager [13:31:17] FOr example if some cookie valid user logged in [13:31:27] Logged in account depends on cookie [13:31:35] I need simple way to implement it [13:31:50] First of all i need access login flow through authentication manager or so [13:32:49] ctmarco: those guidelines are in https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager ? [13:33:13] There is a "How do I use them?" section. [13:37:09] I cant access [13:37:11] them [13:37:26] I need access easy [13:37:34] Logged in with username set [13:37:50] through cookie [13:37:56] I need practical steps not theory [13:38:51] ctmarco: there are practical steps in https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager [13:39:15] ctmarco: And if "easy access" does not mean "insecure access" you probably need to follow those. [13:39:31] I don't know how someone could help you if you don't follow the documentation... [13:40:07] If some stuff is unclear in the docs, ask *specific* questions about it and refer to the line in the documentation, please. [13:47:39] Pages do not show up in categories [13:47:48] how to fix this? [13:56:36] Job queue? [13:58:43] ctmarco: did you see what I wrote above? [13:58:55] Yes [13:59:08] ctmarco: alright. Checking as I'd like to avoid that you spend time asking the same questions again tomorrow :) [14:01:20] !jobqueue | Tims_Tech [14:01:20] Tims_Tech: The Job Queue is a way for mediawiki to run large update jobs in the background. See http://www.mediawiki.org/wiki/Manual:Job_queue [14:08:05] I'm having a problem with mediawiki where if i access the wiki via an https url, any http link i add to a page gets automatically converted to an https link, this breaks links that point to servers that don't support https. Anyone seen this before? [14:11:17] How i can call os,me function to enable [14:11:34] Login for specific user isLogged in? [14:13:32] ikiwaidem: Are you adding protocol relative links? [14:13:51] ctmarco: What is "os,me function"? [14:15:10] Reedy: i've tried making links everywhich way i could, they all convert to https [14:15:44] for instance, if i type 'http://google.com', hit preview, it changes to 'https://google.com' [14:16:08] AFAIK MW doesn't do that by default [14:17:14] if i access the wiki via an http url, the google link remains http .. but our site uses https so everything is getting converted to https, i can't find where this is happening [14:17:39] if you were doing [// it would be prot-rel.. [14:17:52] but not for where you're hardcoding the protocol [14:18:17] even google gets converted to https [14:23:20] Like I say, I'm 99% sure this isn't default MW behaviour [14:25:29] they get converted even when previewing changes to a page.. i'm at a loss as to where else to look. i've grep'd the source for http/https and didn't find anything, i don't see any options for such a thing.. no idea how to fix it or where to even look at this point [14:26:20] is there a way to make a link but not let mw touch it? like a or something? [14:26:44] still converts it, and leaves it as plain text [14:26:57] MW doesn't modify the article text likethat [14:27:31] if all i'm doing is editing a page and hitting preview, what else is in the mix that could be changing it? [14:27:53] browser/user/computer doesn't matter [14:32:43] What extensions do you have installed? [14:33:43] how do i find that out? [14:33:54] Special:Version [14:37:03] http://i.imgur.com/xgaqBi6.png [14:39:20] Where is services in wiki? [14:45:47] ctmarco: What is "services"? [14:48:36] insinated object used around other files [14:48:40] object [14:49:03] instinated [14:58:36] Hey guys. I'm looking at the pagelinks table, the page table and the redirect table, and I'm noticing that the redirect and pagelinks tables use "_" instead of " " whereas the page table does not separate words at all. I'm not sure how I should go about resolving IDs to article titles when I don't know where to put the spaces. Any way I could get those spaces? [14:58:53] Oh, I'm talking about Wikipedia dumps, by the way. [15:00:35] marrenarre: All stored page names should use _ [15:00:40] Should they? [15:00:42] I can't remember [15:00:45] * Reedy looks [15:02:05] marrenarre: But generally, _ and " " should be interchangeable [15:02:23] Reedy: Oh, that's not the problem. The problem is the page table has no separator at all. [15:02:29] o_0 [15:02:37] Can you provide an example? [15:02:51] I don't have any dumps to hand to look at [15:03:22] Reedy: http://pastebin.com/mpNhZ2qM [15:03:51] Notice "AccessibleComputing" instead of "Accessible_Computing". [15:03:55] How did you get them into mysql? [15:04:15] mysql -u -p wikipedia < the_dump.sql [15:04:31] Same as with the other tables, and those got it right. [15:04:41] How does it look in the sql file? [15:04:46] I presume without the spaces? [15:05:57] And which dumps did you download? [15:06:18] we dump the tables directly, no processing is done on them [15:06:26] so what you see there is whatever the database has [15:06:58] INSERT INTO `page` VALUES (10,0,'AccessibleComputing','',0,1,0,0.33167112649574004,'20160924155005','20160914130457',631144794,69,'wikitext'),(12,0,'Anarchism','',5252,0,0,0.786172332974311,'20161002091324','20161002091325',742207030,187244,'wikitext') ... [15:07:16] en wiki is this? [15:07:26] apergos: Yes, 20161001. [15:07:41] https://en.wikipedia.org/w/index.php?title=AccessibleComputing&redirect=no [15:07:48] there's a redirect in there [15:07:50] with no space [15:07:57] did you look for the entry with the underline too? [15:08:07] Ooooooh... [15:08:24] The weird thing is at least the first 64 or so were like that. No I didn't. [15:08:54] probably those were entered back in the day when we all thought wiki names had to be camelcase with no spaces [15:09:00] eventually people got over that :-) [15:09:07] then those became redirects... [15:09:14] haha [15:09:22] Haha that's a cool bit of history. [15:09:26] hey, why do you think my user name on the wikis is like that [15:09:46] it's not out of a love of CamelHumps [15:10:21] Looking at some of the following rows, I am starting to see underscores - neat! [15:10:29] heh [15:10:56] excellent [15:11:43] Yes, this seems very ordinary indeed. Thanks! [15:12:07] yw [15:53:39] hi - i have a problem with the wiki-installation with 1.27.1 [15:53:41] https://dpaste.de/675L [15:55:39] any workaround? [15:55:49] and it is out of the box [15:59:30] unless I'm missing something that's very broken [15:59:51] the singleton() function calls construct w/o any parameters [16:00:46] well it does handle that... [16:01:26] seems to rely on $wgSessionCacheType at some point [16:01:43] verify your settings in LocalSettings.php for caching I guess. [16:02:01] QuasAtWork - it is a Wiki on a complete empty webspace… [16:02:22] try $wgSessionCacheType = CACHE_NONE; for now [16:02:22] because I wanted to install it [16:02:52] you wouldn't want to go into production w/that setting but it disables the whole issue and might work til somebody who knows more than I do can help. [16:03:18] k - asume, I am a complete noob [16:03:31] what is the default folder from mediawiki? I installed it through apt-get and it isn't in /var/www/html/ [16:03:35] where I've to insert the command / variable setting [16:03:36] it works [16:03:48] but [16:03:55] I can't find the folder [16:04:14] ToraxMalu: wherever you installed MW at, there's a LocalSettings.php file [16:04:24] which is where you put in all your custom configuration [16:04:31] it isn't installed, yet [16:05:04] well I mean you gotta get it out of the .tar.gz before it can run so I'm confused. [16:05:48] it'll also need a database instance. [16:05:58] noppe - there is no localSettings.php in the tar-ball [16:06:30] and I am used to, that mediawiki in that case tries to help create all the basic settings [16:06:39] so i am puzzled a little bit [16:09:23] in my humble opinion, something wasn't tested before release? :D [16:10:07] ah ok you have to run the config before that's generated. [16:10:12] I've never done this. [16:10:19] somebody else handled it for my site. [16:11:19] is it known, whether 1.27.0 is working? or is it broken, too? [16:14:03] anyhow - in that case i have to report two bugs vor 1.27.1 [16:14:59] first the mentioned one: clean installation with try of executing the config-generator runs in the error: https://dpaste.de/675L [16:16:18] and the second bug: in the tar-ball is a symbolic link again at mediawiki-1.27.1.tar.gz\mediawiki-1.27.1.tar\mediawiki-1.27.1\vendor\pear\net_smtp\README.rst [16:16:37] so to unpack it on windows leavs you an error… [16:16:49] Know issue [16:16:52] Windows suck [16:17:01] Try using a better archive manager? 7z or similar? [16:17:06] jepp [16:17:10] *Known issue. Windows sucks [16:17:34] Unfortunately, that file in question there is out of our control, unless we remove it during packaging [16:17:34] if it is a known issue, why you integrate symbolic links? not very helpful… [16:17:45] vendor is completely 3rd party code [16:17:50] grml [16:17:58] Well, the error is ignoreable anyway [16:18:02] that's annoying for maintaner [16:18:30] unfortunate 7zip aborts unpacking process in that case [16:30:08] k - have a nice evening [16:30:10] ToraxMalu: are you sure you have the latest version of 7-zip? I've never encountered that personally [16:30:26] 16.04 [16:30:41] i downloaded it beginning this week [16:31:00] (in my monthly service routine) [16:31:20] and yes, i know, windows sucks… [16:31:20] rather, i got that error [16:31:29] but all the files seem to be there? [16:31:41] if you run 7-zip as administrator it should work, at any rate [16:31:48] (admin rights are required to create symlinks on windows) [16:31:59] no file is extrakted after 7zip is encontering the problem in the tmp-folder [16:32:11] oh [16:32:22] I use the right click menu and select "Extract here" [16:32:25] and I see a bunch of files [16:32:48] Skizzerz - I surely won't run 7zip with admin-rights for a simple extraction-job [16:32:57] *shrug* [16:33:04] suit yourself, I'm just saying that'll prevent the error from appearing [16:33:06] I i have to start doing this, something is completly wrong [16:33:15] if [16:33:25] * ToraxMalu smiles [16:33:42] anyway [16:33:49] i can't teaching my users things like that and doing it the other way [16:33:50] I got all the files extracted without admin using 7z [16:34:05] you just use the explorer context menu and select "extract here" or "extract to ..." [16:34:13] instead of opening it in the 7-zip ui [16:34:34] k - i've to leave - thanks for your help and have a nice evening [16:34:45] and Skizzerz - i'll try your tip later [16:35:03] (and by the way - i used the explorer-context-menu ;) ) [16:35:26] cheers [18:40:06] My LocalSettings.php seems to be missing. Where would it normally be on debian? /etc/mediawiki/LocalSettings.php ? [18:45:41] darsie: It should be in the root folder of your MediaWiki installation [18:46:19] You need to generate it first, by running install.php in maintenance folder or by going to /mw-config/ [18:46:30] I had it. It's gone. [18:47:34] lrwxrwxrwx 1 root root 32 Dec 21 2014 /data/var/lib/mediawiki/LocalSettings.php -> /etc/mediawiki/LocalSettings.php [18:48:09] ls: cannot access /etc/mediawiki/LocalSettings.php: No such file or directory [18:49:11] Can I reuse my database with a new config? [18:52:52] darsie: You don't have any backups I suppose? [18:52:58] no [18:53:12] looking into some undelete tools. [18:53:52] You could run the config again using the same database [18:54:04] ok [18:55:11] Or run this command: find / -name "LocalSettings.php" To look for the file [18:55:27] I used 'locate'. [18:55:41] And? Nothing? [18:56:13] Yeah, in /root/wiki [18:56:23] Don't think it's the current version, though. [18:56:48] Doesn't have the questycaptcha questions. [19:01:42] darsie: http://unix.stackexchange.com/questions/80270/unix-linux-undelete-recover-deleted-files Maybe read this, you might be able to recover the file. [19:06:05] Hi [19:06:14] I am new this palce [19:06:21] o/ [19:06:57] Reqeusting yor help on below [19:07:47] one of our applciation using Mediawiki 1.17 [19:08:13] we would like to update it to latest Mediawiki version [19:10:41] Some extension used in the applcation may not support new version and those extensions doesn't have updated version to support latest Mediawiki version [19:12:15] should we rewrite entire application with latest Mediawiki version or anyway wec an use those old extesions with latest Mediawiki version [19:12:21] please assist [19:12:39] You can update them [19:12:53] You could also update to an intermediate version that is still supported atm... Such as 1.23 [19:39:54] I was trying to get blockandnuke to work on a wiki im an admin on but it doesn't seem to be deleting the pages they created [19:44:30] Guest0: how old are the pages? [19:44:32] Guest0: there's a different extension for that, I guess, maybe you got confused by the name [19:44:35] !e Nuke [19:44:35] https://www.mediawiki.org/wiki/Extension:Nuke [19:45:17] ah, so BlockAndNuke is supposed to also delete the pages... [19:45:20] !e blockandnuke [19:45:20] https://www.mediawiki.org/wiki/Extension:blockandnuke [19:45:22] allows sysops to mass block spam accounts and delete all contributions made by those spam accounts [19:46:16] yeah, sorry, I though it only nuked users, not pages :) [19:46:18] im also guessing it merges them all into a spammer account but cant find a user listed as "spammer' [19:47:17] ah no worries [19:47:19] Merging is broken [19:47:40] ah so it won't delete the accounts? [19:47:47] https://gerrit.wikimedia.org/r/#/c/313917/ [19:47:58] I'm surprised it doesn't error out completely [19:48:16] lol [19:48:41] It may work in some older versions... [19:48:50] If renameuser hasn't been refactored in that version [19:50:02] ah I'm using an older version, tried upgrading block and nuke to the latest but it crashed :x [19:50:30] yeah, that might explain it ;) [19:51:32] thanks [20:15:52] whoa hey KDDLB [20:16:19] ? [20:16:50] Reedy do you think blockandnuke for 1.27 would work on 1.26? [20:18:15] Colud it be that an upgrade to 1.27.1 deleted my LocalSettings.php? [20:18:36] now I know who Guest0 is =P [20:18:51] darsie: MediaWiki doesn't delete LocalSettings.php [20:19:09] I'm reconfiguring the wiki and now I got 'There are MediaWiki tables in this database. To upgrade them to MediaWiki 1.27.1, click Continue. ' [20:19:37] k [20:19:57] darsie: You get that if you navigate to the mw-config directory [20:20:26] I'm doing the mw-config now, but it's been missing before. [20:21:03] Oh my, I still have some tens of thousands of spam user pages. Guess they'll all get upgraded now. [20:21:33] well, if you followed [[Manual:Upgrading]] and you came from 1.26 or older, you should have unpacked the new installation on a new and empty directory, and then copy your old LocalSettings.php from the old installation to the new one [20:22:34] Vulpix: I did not. I came from a missing LocalSettings.php and followed the /mediawiki/mw-config/index.php link. [20:26:11] If the upgrade takes longer than I want to stay awake, can I close the browser without harm? [20:26:44] Or hibernate the computer? [20:27:05] in theory it /should/ be safe, but you better not [20:27:35] Hmm. Let's see if I can sleep with my computer on ... [20:27:57] it shouldn't take that long, unless you have a huge amount of pages [20:28:04] Oh my, I still have some tens of thousands of spam user pages. Guess they'll all get upgraded now. [20:28:49] Hmm, only 19504 pages. [20:29:03] in which case, if you're upgrading from the web installer, it may timeout and abort itself... [20:29:12] The SEO spammers made 65000 normal pages which I already deleted. [20:30:44] 96810 users [20:32:21] I could go on vacation. [20:53:24] interesting broken embedded files in Flow+VE https://www.mediawiki.org/wiki/Topic:Tdrym9osljed7mxq [20:55:05] still upgrading. [20:55:28] How many rows does it upgrade per second? [20:56:16] Hmm, I haven't purged edits, yet, or whatever they're called. [20:56:20] it depends on the performance of your machine... [20:57:09] darsie: does the browser give any feedback that's still doing something? [20:57:17] Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz [20:57:43] 'transferring data from '. [20:58:34] The web upgrader is kind of sketchy for long db upgrades, its entirely possible for it also just to hang after some point of time (depending on web server config) [20:58:36] ok, it's still working, then [20:58:38] 4 GB RAM appearently. [20:59:11] I'm surprised PHP hasn't timeout yet [20:59:30] the server doesn't seem properly configured [20:59:54] MW tries to disable timeouts if it has permission [20:59:55] maybe mysql can give me some stats. [21:00:12] darsie: SHOW PROCESSLIST; [21:00:17] will tell you what's happening [21:01:55] http://pastebin.com/GxNE1beA [21:02:55] TRUNCATE TABLE objectcache would be more effective [21:03:38] time is increasing in seconds. [21:03:47] specially if the binlog is enabled (which should on any production database) [21:04:49] Yeah, we don't do that currently due to worries over permissions, but we really should have some sort of check to do that if possible [21:07:30] the worst thing you could do atm is to cancel the update, since the database would try to rollback that delete, trashing the disk reading the binlog and restoring the table again [21:08:48] ok [21:33:50] upgrade complete :))) [21:34:25] yay :) [21:34:55] http://pastebin.com/knL5MLj5 [21:36:20] If you want to regenerate your LocalSettings.php file, click the button below. This is not recommended unless you are having problems with your wiki. [21:36:24] I guess I'll do that. [21:36:58] keep a copy of the old one [21:37:06] The old one is missing. [23:42:49] update.php can't include some files: http://pastebin.com/FJfeBuLt [23:43:39] darsie: they seem to be extensions files [23:43:43] do you use these extensions? [23:44:49] There are a lot of extensions enabled in LocalSettings.php. [23:46:13] ExtensionFunctions.php is not among them. [23:48:11] PHP Warning: include(/usr/share/mediawiki-extensions/base/ExtensionFunctions.php): failed to open stream: No such file or directory in /etc/mediawiki-extensions/extensions.php on line 4 [23:48:12] CategoryTree.php is there. [23:48:15] seems to be "base" [23:48:29] oh well [23:48:37] that needs some documentation of your hierarchy [23:48:51] there's no base directory. [23:49:04] look in LocalSettings.php if base is defined [23:49:34] there's no /usr/share/mediawiki-extensions [23:51:20] # Enabled Extensions. Most extensions are enabled by including the base extension file here [23:51:51] You probably want to get the hand on the person who configured that. [23:52:01] That would be me. [23:53:05] Do you know what I did before? [23:53:10] Nope. [23:53:20] But it doesn't seem really conventional. [23:56:01] The wiki stopped working, LocalSettings.php was missing, gave me a configure link which I used. I configured it to the existing database, it converted for 1-2 h, then I didn't click make LocalSettings.php, cause I grepped my root partition to recover LocalSettings.php. When I did that I clicked 'make LocalSettings.php', but the session had timed out. [23:56:39] When I started it again it wanted to convert again, which I did, but it looked different and didn't seem to do anything. So I aborted it and wanted to use update.php. [23:58:24] I guess one of my system upgrades upgraded mediawiki which caused the db upgrade. [23:58:48] Dunno why LocalSettings.php disappeared.