[00:28:09] jackmcbarn: figured it out. another admin had edited /usr/share/mediawiki119/includes/SquidPurgeClient.php to debug something but never set it back. [00:28:24] ah, so you did hack the core :P [00:28:30] glad to hear it's fixed though [00:30:23] thanks for the help/advice/general-amiability [00:30:45] np [00:34:55] UserProd: yes it should [01:54:04] I'm trying to switch to CirrusSearch [01:54:08] PHP Fatal error: Class 'MediaWiki\Logger\LoggerFactory' not found in /usr/share/webapps/mediawiki/extensions/CirrusSearch/includes/Updater.php on line 250 [03:50:13] !blankpage [03:50:13] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [03:52:47] It would be nice if mediawiki-l had that :P [03:58:03] lol I just saw where you copied and pasted that into mediawiki-l [08:12:53] hi room! i have problems with creating PDF files with the collection extension. is this the room to ask for help, or are there any subchannels? :) [08:15:51] well, i just try. this is what mw-ocg-service throws at me: https://dpaste.de/uGch [08:24:24] cscott was one of the people working on that I believe [08:26:23] feydin: You can also try #wikimedia-services . You may have more luck during the day (as in daytime in the san fransisco timezone) [08:26:39] bawolff: thanks, ill try it over there :) [08:46:22] successfully configured ldap auth so i can log on. now i try to have a group being the requirement for write access (readonly for the rest). Could use some push in the right direction! [08:48:49] I don't know much about ldap, but for general mediawiki see [08:48:55] !permissions | Worf [08:48:55] Worf: For information on customizing user access, see < http://www.mediawiki.org/wiki/Help:User_rights >. For common examples of restricting access using both rights and extensions, see < http://www.mediawiki.org/wiki/Manual:Preventing_access >. [08:51:00] bawolff: well, yeah ... its the ldap part i'm clueless about :) [10:43:53] Worf: just give those who need to edit the 'edit' right, and not everyone else [11:06:28] hi all,I'm getting the url of an image, after reducing that image using $file->transform as here https://dpaste.de/XWKZ [11:07:02] on accessing the imgae using the url I get the new reduced, however I was wondering for how long does mediawiki store this reduced image? [11:07:10] *reduced image [11:09:17] is there a way to know this info? [12:05:57] Betacommand: i figured it out now. the answer basically is the usage of $wgLDAPUseLDAPGroups and $wgLDAPGroupNameAttribute ... then the ldap groups are "available" in mediawiki. [12:07:09] then i obviousely can give the groups who need to edit the 'edit' right ... [13:06:26] feydin: i can help you. #mediawiki-parsoid or #wikimedia-services or here. [13:07:34] feydin: it looks like your metabook.json doesn't have a 'wikis' field? [15:35:36] Hi, apologies for slightly off-topic, but I need help with an apparent hack of Wikipedia's MwdiaWiki software. UK election page, so urgent. Advice on where to go? [15:36:08] See https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#UK_election_page.2C_too [15:36:54] sounds like someone already fixed it? [15:37:18] It sounds like a simple case of template vandalism + caching, not a security breach [15:37:51] OK, sorry, read more. [15:37:58] will try and fix [15:38:27] Are you saying it's not fixed? [15:38:50] Fixed now, sorry. Wasn't when I posted. [15:39:10] Thank you very much, sorry for waste of time. [15:40:01] Is there a magic word for checking if the page is being viewed by someone logged in or not? [15:54:27] soeb: no [15:55:30] would require connection and state being synchronized between browser and page. Which is 'expensive'.. [15:55:50] browser(s) and server [15:56:12] /quit [15:56:36] oh wait, that's not what you meant [15:56:51] you mean you want to change the CONTENT based on who is viewing [15:57:19] that's not possible, because then the content wouldn't be cacheable. [15:57:31] Yeah, basically I'd like to have "Sign up" when not logged in and "Hello" when logged in, or along those lines [15:57:35] Right, that makes sense [15:58:09] what you can do is use css (which is what en.wp does). [15:58:50] Oh, is there a way to differentiate between the two? I didn't realize [15:59:01] So their Common.css has: [15:59:29] https://phabricator.wikimedia.org/P621 [16:00:27] PHP Fatal error: Class 'MediaWiki\Logger\LoggerFactory' not found in /usr/share/webapps/mediawiki/extensions/CirrusSearch/includes/Updater.php on line 250 [16:01:00] In general such hacks are only allowed outside of the 'content namespaces' however. [16:01:19] Guest68948, sounds like you have mismatching versions of an extension and core [16:01:28] Ah, we were thinking of using something like this for Home, but I guess that might not be the best idea then [16:02:42] soeb: you have to be very careful, because you cannot rely on all secondary systems like mobile, apple's dictionary app, google search etc, to be able to understand your classes. [16:03:42] on en.wp it's basically only used in 'maintenance templates', to hide actions or words that the majority of other used groups wouldn't be able to understand or use anyway, but that won't be more confusion to such users then the 'original' situation. [16:04:02] Well, in this case it's not a major problem - we have a big "Sign Up" button on the home page, and we'd like to hide it for logged in users, for obvious reasons [16:04:24] you can use JS, but JS overhead is ugly too :) [16:04:57] Yeah, that's one thing we're trying to avoid [16:05:48] you don't allow existing users to create new accounts? [16:06:36] We do, but it seems pointless to have a huge sign up button for users, plus no one really makes use of that there [16:11:14] ok Krenair i'll check [16:18:58] Yes checking out the correct branch fixed the error Krenair [16:26:09] PHP Warning: require(/usr/share/webapps/mediawiki/includes/Cookie.php): failed to open stream: Too many open files in /usr/share/webapps/mediawiki/includes/AutoLoader.php on line 1282 [16:26:13] PHP Fatal error: require(): Failed opening required '/usr/share/webapps/mediawiki/includes/Cookie.php' (include_path='/usr/share/webapps/mediawiki/vendor/phpunit/php-text-template:/usr/share/webapps/mediawiki/vendor/phpunit/php-timer:.:/usr/share/pear') in /usr/share/webapps/mediawiki/includes/AutoLoader.php on line 1282 [16:45:39] I need some help with parameterized templates. :( [16:46:37] if I create a template with {{Template:Deploying CloudFormation Stacks}}, edit the template, put {{{foobar}}} in it, when I go back the template link has now been renamed to {{{Foobar}}} [16:48:44] dgarstang: is your wiki public? if so, can you link to it? [16:49:04] jackmcbarn: no, it's internal [16:49:17] can you pastebin the content of the template and of the page that calls it then? [16:49:37] that was pretty much it [16:50:49] what's the content of Template:Deploying CloudFormation Stacks? [16:50:56] {{{Foobar}}} [16:51:18] i'm not sure what your goal is [16:52:22] jackmcbarn: Having trouble with templates in general. Was trying to do the simplest possible use of a parameterised template [16:52:26] ok that last error was due to /dev/null not beight assigned to open_basedir [16:53:14] dgarstang: look at https://test.wikipedia.org/wiki/Calling_page and https://test.wikipedia.org/wiki/Template:Template_with_the_parameter [16:53:25] jackmcbarn: yes, I read those [16:53:38] jackmcbarn: The whole template implementation is confusing. [16:53:38] dgarstang: i literally just created those [16:53:55] oh [16:54:40] i made them as simple as possible. look at the source of them and see if it makes sense then [16:55:02] jackmcbarn: it doesn't really. That's the calling page. WHere's the template page itself? [16:55:11] https://test.wikipedia.org/wiki/Template:Template_with_the_parameter [16:56:11] I thought a template was created with [[Template::foo]] and referenced with {{foo}} / [16:56:13] ? [16:56:56] lemme try again [16:58:00] dgarstang: a template doesn't have to be created with anything special [16:59:39] so, my calling page has "{{Deploying App Tier CloudFormation Stacks|foobar=http://example.com/}}" .... and now it's just showing 'Template:Tier' when I save it [17:00:37] ie, not 'Deploying App Tier CloudFormation Stacks' [17:02:09] i assume you put {{tier}} in Template:Deploying App Tier CloudFormation Stacks [17:02:13] i don't know what your goal is [17:02:15] what do you want it to show? [17:02:45] jackmcbarn: the page is empty. Regardless of the content of the template, the link to it should show '' [17:02:55] dammit... it should show 'Deploying App Tier CloudFormation Stacks' [17:03:12] if you put {{some page}}, and Template:some page doesn't exist, then you'll get a red link to it [17:03:32] note that "doesn't exist" is distinct from "exists and is empty" in MediaWiki [17:03:39] jackmcbarn: sure, but the link shoudln't show up as 'Template:Tier' [17:03:45] yes it should [17:03:55] i don't think {{tier}} is what you're meaning to use [17:03:58] why doesn't it show the title? [17:04:06] the title of what? [17:04:17] 'Deploying App Tier CloudFormation Stacks' [17:04:46] okay, i'm really confused as to what you want. if your calling page contains "{{Deploying App Tier CloudFormation Stacks|foobar=http://example.com/}}", what do you want the output to be? [17:04:51] the full, exact text [17:05:19] This is a LINK to the template. I don't want to display the template itself. it should display 'Deploying App Tier CloudFormation Stacks' [17:06:00] If you want a link to the template, then do [[Deploying App Tier CloudFormation Stacks]] [17:06:10] or [[Template:Deploying App Tier CloudFormation Stacks]] if you made it a template [17:06:15] maybe my question should be about viewing templates... [17:07:11] sigh. So... with "[[Deploying App Tier CloudFormation Stacks|foobar=http://example.com/]]" .... now I get "foobar=http://example.com/" [17:07:31] yes [17:07:37] what are you trying to get it to show? [17:07:57] i'm gonna take a break. This whole template implementation doesn't make sense [17:09:39] dgarstang: Why would you be passing a template parameter to a link? [17:09:56] dgarstang: Just do [[Deploying App Tier CloudFormation Stacks]] [17:10:09] marktraceur: so, when someone opens the page, they see the template rendered with the correct parameter [17:10:23] But you're asking for a link to the template, not a template call. [17:10:28] Can you please make up your mind? [17:10:48] marktraceur: Ok, what's the syntax for a link that opens a template and passes a parameter? [17:10:57] That doesn't exist. [17:11:10] dgarstang: Do you want to *transclude* the template or *link to* the template? [17:11:14] You can't do both. [17:11:52] marktraceur: ok, lets say I just need to manage the templates. if I don't have links to them, I can't manage them [17:13:07] marktraceur: There's the templates under special pages, but since I can't create them there, it's still sort of confusing [17:14:28] dgarstang: So you want a link to the template. [[Template:Deploying App Tier CloudFormation Stacks]] [17:14:35] You're welcome. [17:16:58] makes sense now [18:44:49] how can i get CirrusSearch to index mediawiki templates in such a way that template properties each get their own field in elasticsearch, instead of just having the template in the source_text field? [19:09:25] kevin__, you're trying to use a text search engine for parametrical search. not gonna work, wait for Wikidata Query to be deployed [19:17:13] mmm if linnks are parametrical why can't properties be? [19:49:14] I have a wiki I haven’t logged into for more than 6 months that I want to get going again. I cannot remember the admin password, and when I tried following the instructions to reset the password manually in the DB they didn’t really seem clear in my case. [19:49:51] I’m using mediawiki 1.22, and the passwords all seem to start with a B:, but there’s no variable for PasswordSalted at all in the LocalSettings file. [19:49:52] you reset the password manually in the db? [19:50:07] Does anyone have a pointer how exactly I should reset it? [19:50:24] The password reset feature would be a start. [19:50:31] Assuming you have email set up. [19:51:10] Unfortunately email doesn’t seem to be working on this bluehost install. [19:51:41] php maintenence/eval.php [19:51:50] $u = User::newFromName( 'AdminUsernameHere'); [19:52:00] $u->setPassword( 'NewPassHere' ); [19:52:56] $u->saveSettings(); [20:09:06] ./wikidb/objectcache' is marked as crashed and last (automatic?) repair failed [20:09:11] what would you do? [20:16:37] I’m still faililng to set the password. Why would I have a :B:, but no salting? [20:18:29] Is there perhaps a default salt value? [20:20:36] heh… default value is ‘’; [20:20:38] A "default salt " would kind of defeat the point of salt [20:24:03] bawollf So be it, but I guess when I previously upgraded versions the LocalSettings file did not include any variable for wgPasswordSalt and by trial and error I found out that it is indeed using a blank string as the default salt. [20:28:57] jackmcbarn: just to let you know - we figured out that weird 'URL:' problem we were having, it was indeed a rogue bit of configuration on the prod instance, thanks: https://paste.fedoraproject.org/219226/58329143/ [20:29:11] jackmcbarn: looks like someone was trying to debug something in squid and forgot to clean up. :P [20:38:10] $wgPasswordSalt is boolean. It controls whether or not to use salt [20:38:31] by definition, a password salt is different for every password [22:02:44] hi, I am having major issues with spam on what is supposed to be a private wiki. I've followed the guides for restricting access and spam clean up, but somehow spam accounts are still being created [22:03:27] any suggestions or ideas would be hugely appreciated. im trying to use my site to study for major exams but the spam has yielded it useless, and i don't want to give up the tool but trying to solve it has become a time sink =[ [22:16:19] If its a private wiki, just disable account creation and require login to edit [22:21:25] bawolff, i swear to god i did in my localconfig but somehow its not working. is there someway it'd be overridden ? [22:21:55] Depends what you put in your LocalSettings.php. Check Special:UserGroupPermissions on your wiki [22:29:14] I think it's Special:ListGroupRights these days [22:46:25] bawolff, MC8 thanks, going to turn apache back on and check that out [22:46:52] restarting apache will have no affect on mediawiki settings [22:49:08] I turned it off since it was getting hit by spammers and I didn't have the time to deal with it then [22:49:13] and i didnt want to risk defacement [22:50:37] well, appears my API may be wide open. I thought I shut that down [22:51:59] my settings are not at all how I thought I setup localconfig [22:52:16] aclonedsheep: API uses the same config as normal mediawiki. I'm not sure what you're doing, but you're doing it wrong if your api is wide open but the rest isn't [22:52:34] im clearly doing at least one thing wrong, probably many [22:59:27] bawolff, do you know how i definitively restrict api access? [23:00:04] If your wiki is fully private (not publically readable) then that happens automatically [23:00:16] Just follow the instructions at permissions [23:00:17] !permissions [23:00:17] For information on customizing user access, see < http://www.mediawiki.org/wiki/Help:User_rights >. For common examples of restricting access using both rights and extensions, see < http://www.mediawiki.org/wiki/Manual:Preventing_access >. [23:00:42] Most things you can do from the api you can do from the normal interface [23:00:46] ok [23:00:59] so just use the normal restrictions that apply to both [23:01:09] I swore i went through these and fixed my settings, but if the answer is there, ill just have to proofread my localsettings.php as I go through those articles again