[05:42:16] Hi, could someone point me in the right direction- I got an error when saving a page using VisualEditor. "The intoken parameter has been deprecated." "Invalid token" [05:51:58] probably mismatching versions of VE and MW [06:02:51] Krenair, downloaded it from the extension page, MW is 1.6.3 [06:03:43] MW is 1.6.3? Wow! [06:04:14] Released April 10, 2006 [06:04:22] 1.63* [06:04:31] wait [06:04:32] my bad [06:04:45] unfortunately that was years before the VE extension even started [06:04:55] 1.63 doesn't exist, we're at 1.27 now [06:04:57] 1.26* [06:05:07] :o [06:05:27] MW 1.26.3? [06:05:39] yup [06:05:52] i am pretty sure i can jump into the source and patch it out myself.. [06:05:59] and which version of VE did you download? [06:06:24] https://extdist.wmflabs.org/dist/extensions/VisualEditor-REL1_26-a733545.tar.gz [06:06:46] action=query [06:06:47] format=json [06:06:47] meta=userinfo [06:06:47] prop=info [06:06:47] titles=Main+Page [06:06:48] indexpageids= [06:06:49] intoken=edit [06:06:51] not the REL1_27 one? [06:06:52] oops sorry [06:06:55] no [06:07:11] is your wiki public? [06:07:12] i tried the 127 one, refused to work [06:07:15] yeah [06:07:21] wouldn't expect it to work [06:07:22] can i drop u a pm? [06:07:25] no [06:07:32] unless you just want to link me to the wiki [06:07:35] yes [06:07:39] ok then [06:07:52] just noticed it to u [06:07:54] I saw [06:08:22] unfortunately i can't really upgrade to 127 mw, there's this IPB extension i am using [06:10:19] The actual error VE shows you when you try to save is "Permission denied"? [06:10:45] Not all users have permission to save yet [06:10:56] let me enable it [06:10:58] give me asec [06:12:07] Krenair, give it a shot [06:12:49] now when I try to do anything I get redirected to login [06:13:16] oh fuck [06:13:43] sorry, it's the ipb integration thing [06:13:51] can I just give u a HAR dump? [06:14:00] of what happens when I save the page [06:14:03] ok [06:18:06] basically it cycles POST->GET indefinitely [06:22:44] not sure what's going on there [06:23:02] the client requests a token, receives one, sends it back in the next request. but it says badtoken? [06:23:27] what is this IPB integration thing exactly? [06:23:37] does editing without VE work? [06:23:59] let me try, hang on [06:24:20] oh your right [06:24:28] should have done that ages ago.. [06:24:31] "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in. " [06:24:50] yeah [06:24:54] so yeah, IPB integration fucks around with the session to maintain SSO between the ipb forums & MW [06:25:03] it's kinda messy code [06:25:06] you need to fix that first before trying VE [06:25:12] Thanks Krenair [06:25:22] what version of MW was this IPB integration written for? [06:25:45] i believe it was for 1.18.. [06:25:51] but i kinda hacked patched it [06:26:00] sounds like it may need more work [06:26:04] one thing to check though [06:26:12] you tested this locally, but it fails on your server? [06:26:38] no, my testing has always been on production [06:27:05] so you just haven't got to testing editing yet [06:27:09] yes [06:27:17] okay in mediawiki that's a pretty important part [06:27:20] :) [06:27:22] :) [06:27:26] does MW have some sort of SSO extension? [06:28:07] CentralAuth is the most likely to work, given that we rely on it for the Wikimedia cluster [06:28:38] Ok, i'll give that a shot [06:28:41] Thanks again Krenair [06:28:47] for integrating with other MediaWiki sites only though [06:28:48] OAuth can be used to allow the user to log into other sites based on their identity on the wiki [06:29:02] noted [06:32:26] Krenair, I believe Sessions are supported inside the User.php? [06:32:37] more than that in the latest code [06:32:50] ok [06:38:31] dunno about 1_26 [06:38:48] never touched that code myself, only read parts of it recently [06:40:24] Hey, I've installed git using command line "sudo apt-get install git" in linux mint. Now can anyone please tell how to open this(git)? Do I need to use git via linux terminal only? Actually I want to setup my username and email. [06:41:36] you want #git. this is #mediawiki [06:44:28] Oh..okay sorry [06:57:33] man 3k lines in 1 file.. you guys should seriously consider namespacing xD [08:37:13] Krenair, are you stil there? [08:39:57] slushpuppy: we do, in modern maintained files [08:40:07] and if its a extension, its up to the author [08:40:43] although namespacing was only in the last one or two major releases for backwards compatibility [08:42:35] p858snake, i was referring to the MW sources, but implementation is rather sparse imo [08:43:55] I assume wikipedia is based off modified MW base? [08:46:55] no it runs a pretty much stock standard mediawiki install [08:47:07] sometimes there are hotpatches for security issues etc [08:49:03] Is mediawiki going to do comeback in Ubuntu (16*) repositories in the future? [08:49:19] interesting [08:49:54] for a site as large as wikipedia, i assume there must be some advantage lumping 5k lines of code into 1 file? [08:51:04] he1kki: I'm not sure why/when it was removed, but I'm guessing it was because no one is maintaining the package [09:01:38] p858snake: that sounds a bit weird, as mediawiki is quite popular package. Now that I installed it manually I did miss preconfigured apache configurations etc. [09:04:37] Just quessing, but now that mediawiki is composer packaged, could it make debian package maintenance easier, especially when updating old versions? [09:08:13] also Juju Charms has Mediawiki as a showcase application in their front page @ https://jujucharms.com/. [09:09:34] though I don't know does juju charm help at all with repository packaging. [09:13:25] he1kki: legoktm is currently working on the debian package [09:13:40] there is a updated version in unstable atm from memory [09:15:26] p858snake: That's good. One day I will be brave enough to build apt repository packages myself :) [10:33:57] Hi, i just installed this extension https://www.mediawiki.org/wiki/Extension:PluggableAuth and it works.. but I am wondering how on earth does it implement groups [10:34:11] how do I set certain groups/users to be mods/admins/etc [11:06:01] FOUC on https://wiki.documentfoundation.org/Main_Page too :( [11:06:14] Vector has regressed for many wikis out there in recent releases [12:03:05] Is there a way I can assign a group to a user on the fly? [12:03:42] programmatically through an extension [12:26:37] slushpuppy: There's some autopromotion logic in MediaWiki core. [12:26:39] That might work. [12:27:08] slushpuppy: https://www.mediawiki.org/wiki/Manual:$wgAutopromote [12:30:11] Debra, I'll describe my problem, basically I am running an IPB forums and I would like to give edit rights only to certain groups [12:30:22] the certain groups are defined by IPB [12:30:50] Are you familiar with cron? [12:30:51] I successfully created a SSO between IPB and MW using the PluggableAuth extension [12:30:55] You could just script something to sync the two? [12:30:56] very [12:31:14] That's less magical. [12:31:29] something else I don't wish to depend on [12:31:43] anyway I plan to release this as an extension [12:31:56] You want to make a new extension? [12:32:04] We have a boilerplate for that. [12:32:04] already did [12:32:05] All right. [12:32:16] Congrats! [12:32:20] and yes i do feel for users on shared hosting and what not [12:32:26] i am 100% sure this can be done somehow [12:32:41] Sure. [12:32:58] I think if I were doing this, I would hook into the existing auto-promote system. [12:33:05] And add a condition from an extension. [12:33:21] that is an idea [12:33:23] Like APCOND_IS_IPB_USER or something. [12:33:38] it can also down for demotions i assume [12:33:45] since it is just setting the group param [12:33:47] Hmmm. [12:34:38] There's also https://www.mediawiki.org/wiki/Manual:$wgAutopromoteOnce I guess. [12:35:26] so this autopromotion always runs when using the site, and it is generally called at the beginning? [12:35:40] so lets say i got this wikicontributor dude whose access has been taken away [12:36:04] he wouldn't be able to say.. edit a page before the demotion takes effect? [12:36:20] I'm not sure MediaWiki core has demotion logic. [12:36:31] uhm [12:36:33] ugh. [12:37:23] Is there a onpermission hook or something? [12:38:06] Dunno. [12:38:16] Hmm... [12:38:29] I see this [12:38:36] "Get a list of all available permissions." - Hooks::run( 'UserGetAllRights', [ &self::$mAllRights ] ); [12:38:40] I could inject into there.. [12:39:10] that is assuming get all user rights is always ran when ever the user loads the page [12:41:08] whats the difference between implicit/explicit groups Debra [12:41:22] implicit or the opposite* [12:41:36] ah implicit or effective* [12:41:39] Implicit groups are calculated on the fly. [12:41:49] And can't be manually added or removed from users. [12:41:57] Autoconfirmed is an implicit user group. [12:42:01] As is the "user" group. [12:42:03] And "*". [12:42:13] Explicit user groups can be manually added or removed from users. [12:42:24] Like "filemover" or "sysop". [12:44:47] ic [13:43:32] Hello. Is it possible to assign labels to paragraphs or bullet points and link to them just like how one would link to headlines? [13:43:48] Or is there anything like the Purple Numbers extension that used to be available? [13:44:33] And also, is it possible to categorize paragraphs? [16:24:25] For https://phabricator.wikimedia.org/T142938 I should use https://www.mediawiki.org/wiki/Manual:Structured_logging right?