[01:29:20] in my apache log I'm seeing "GET /var/www/w24a19/images/wiki.cnvc.org/images/thumb/6/61/Sample_wiki_instructions.JPG/120px-Sample_wiki_instructions.JPG HTTP/1.1". I set $wgUploadDirectory = "$IP/images/$homepath/images". I don't want the DocRoot to be in the GET! It has /var/www/w24a19, whihc is the docroot [01:30:29] $homepath is a link to the home directory for the site [01:43:26] dayum [02:36:30] http://www.rollingstone.com/politics/news/american-sniper-is-almost-too-dumb-to-criticize-20150121 [03:44:18] Hi there, would anyone know if there's a Parser function or combination of them, to evaluate if a parameter is both 0 and declared? That is, both #ifexpr (>0) and #if (declared) [03:45:35] {{#ifexpr:{{{foo|0}}}>0}} ? [03:45:52] untested [03:46:05] BTW parser functions are ugly [03:46:33] Thanks, I'll give that a try... what do you recommend for an infobox field instead? [03:47:26] If it is 0 then it is declared. [03:47:59] Well, parser functions are like Perl (<6); they work, but they're not elegant. You could use Scribunto / Lua if you want to use a real programming language, but it's probably harder to install. [03:48:39] Scribunto is easy to install on most systems (same as any other extension) [03:49:00] it's only difficult if you're on something other than windows, mac, or linux, or if you're not allowed to run executables from php [03:49:07] {{#ifexpr:{{#ifeq:{{{foo|}}}||-1|{{{foo}}}}}>0| [03:49:09] Actually, Perl is much better than ParserFunctions. Parser functions were supposed to be for basic templating, but they evolved into a wacky programming language (which may or may not be Turing-complete) [03:49:33] Abuuuse: parser functions aren't Turing-complete, since they have no iteration or recursion [03:50:09] jackmcbarn: a template can't transclude itself? [03:50:31] I thought it could but there was some recursion limit which renders it Turing-incomplete [03:50:48] Abuuuse: if you're looking at the template page itself, it's allowed to transclude itself once for documentation examples and stuff [03:50:51] otherwise, not at all [03:52:59] T13|detached: isn't {{#ifeq:{{{foo|}}}||-1|{{{foo}}}}} just a longer way of writing {{{foo|-1}}} ? [03:53:19] Not exactly. [03:53:37] Why? Because of whitespace arguments or something? [03:53:46] Abuuuse: no, because of the case where foo is set to the empty string [03:53:53] What if someone calls the template with |foo= [03:53:54] ah [03:55:13] yep, didn't think of that (I haven't edited templates for a while) [04:11:15] Thanks, both [04:15:10] Hi Everyone o/, I have built mediawiki and set up vagrant. I would like to work on bug #T51017 https://phabricator.wikimedia.org/T51017 [04:15:57] Hi JacksonIsaac. [04:16:25] Neat. [04:17:43] That task looks like a mess. [04:18:56] Fiona: I am trying to reproduce it, will give it a try. Does is depend on any other bug ? [04:19:07] Don't think so. [04:22:37] After clicking on create account got this:https://dpaste.de/J1R8 [04:24:50] id that I used is foobiefool@gmail.com [04:26:22] Is that a valid e-mail address? [04:27:45] yes, just created and logged into it [04:28:03] You made the username "foobiefool@gmail.com"? [04:28:14] I think "@" is disallowed in usernames. [04:28:50] username is foo [04:28:52] Yeah, I think you can't create email addresses as usernames (although you used to be able to) [04:29:17] isn't that a wikipedia-specific thing? [04:29:26] i think mediawiki itself allows it [04:29:29] error is related to email address, as I pasted previously [04:29:31] It might be actually. [04:29:51] devwiki could not send your confirmation mail. Please check your email address for invalid characters. [04:30:14] https://www.mediawiki.org/wiki/Manual:$wgInvalidUsernameCharacters btw. [04:30:32] thanks Fiona [04:30:56] JacksonIsaac: did you install those MW dependencies that are now required for email? [04:31:07] or was that not merged? [04:31:18] vagrant comes with all that built in [04:31:21] oh [04:31:32] I followed the steps here https://www.mediawiki.org/wiki/MediaWiki-Vagrant [04:31:39] though i'm not sure if vagrant is configured right to send emails [04:31:56] vagrant up and then vagrant provision [04:32:15] I had to remove /vagrant/mediawiki as my network was weak and the download used to fail [04:32:23] and try vagrant provision again [04:32:56] https://github.com/wikimedia/mediawiki/blob/master/includes/User.php#L4000 [04:36:16] I can see the file and the code Fiona mentioned in my local codebase [04:36:40] is there something else I need to install or set up? [04:40:31] hi, does some one know how i can get GraphViz to work on windows and apache in mediawiki? [06:04:15] very quick question. [06:04:39] let's say I have a list of pages that I know. I want to replace {{Log Header with {{Old Log Header [06:04:51] because Log Header will soon be used for something else [06:05:03] what's the quickest way to do this? [06:08:16] Volund, maybe https://www.mediawiki.org/wiki/Extension:Replace_Text [06:12:50] Fiona: jackmcbarn Abuuuse were you able reproduce the same error message ? [06:13:06] * Abuuuse didn't try [06:13:15] I didn't try. [06:15:49] ooooh. that's working. [06:15:55] kind of odd that it's working SLOWLY but... [06:17:31] wish I knew -how- this thing manages to stagger it [07:04:41] Anyone getting this error :https://dpaste.de/J1R8 while creating a new account ? [07:06:29] https://duckduckgo.com/?q=%22Please+check+your+email+address+for+invalid+characters.++Mailer+returned%3A+Unknown+error+in+PHP%27s+mail%28%29+function%22 [07:06:45] https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Unknown_error_in_PHP%27s_mail%28%29_function [07:06:54] https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki [07:07:10] did you try that? [07:17:20] so for each account I create I will need to modify the username and pass in LocalSettings.php [07:18:53] o_0 [07:37:40] I need to restart the virtualmachine after any changes I made of can I just run vagrant provision [07:38:28] or* [08:52:39] I have installed mail and smtp using pear and I am getting this error now: https://dpaste.de/pXa4 . I found similar error here : https://www.mediawiki.org/wiki/Thread:Project:Support_desk/fatal_error_to_create_accounts but can't understand what changes should I do and where. I have added pear in my environment path [12:31:24] Does anyone know the extension name for users getting email confirmation emails? I can't seem to find it in mediawiki.org. :/ [12:43:17] Repton: I think that's built-in [12:43:32] Oh ok [13:05:49] valhallasw`cloudepton: Where would it be? [13:06:21] Repton: https://www.mediawiki.org/wiki/Manual:$wgEmailAuthentication [13:39:02] So I set that in my LocalSettings.php should it work now? [13:42:41] Repton: you probably need to configure email in general if you haven't done that yet [13:44:06] Oh where's a page that tells me how and where to do that on mediawiki.org ? [14:26:41] $wgNoReplyAddress = $wgEmergencyContact; so should this be about it? [14:28:09] Repton: did u try clicking ¨Confirm your email address¨ in user preferences? [14:28:49] I did before the email setup so I got nothing then [14:34:44] Now I did and I still didn't get a email [14:42:51] Repton: https://www.mediawiki.org/wiki/Manual:Configuration_settings#Email_settings [14:49:44] would it be possible to get certain state from the database, so for example would it be possible to return the mediawiki state to an earlier point, 6months ago [14:56:48] I guess not. Since the revision table primary key is the "revision id", which gets incremented on every edit, you could somewhat identify what revisions were done before or after a given date, but nothing more, and of course not to return the wiki to that point [14:57:12] http://pastebin.com/nYfQMH3y should that be all I need or no? [15:24:14] Repton: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/MediaWiki_not_sending_email this might help you [16:04:17] I have installed mail and smtp using pear and I am getting this error now: https://dpaste.de/pXa4 . I found similar error here : https://www.mediawiki.org/wiki/Thread:Project:Support_desk/fatal_error_to_create_accounts but can't understand what changes should I do and where. I have added pear in my environment path [16:07:06] ^ https://dpaste.de/DDaE [16:13:13] you need to install the mail and Net_SMTP packages of pear, although I think vagrant is supposed to already have them [16:15:05] well, apparently the mail packages for pear have been added to vagrant this week: https://phabricator.wikimedia.org/T87516 [18:08:51] I need immediate help my wiki crashed and idk why [18:09:22] A database query error has occurred. This may indicate a bug in the software. [18:12:13] !debug [18:12:13] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [18:12:31] Repton: ^ activate the display of SQL errors as explained there [18:23:14] I thought switching databases would help but it didn't now I will have to start all over again.. [18:25:04] Repton: what happens when you enabled debugging> [18:25:37] It said my new database didn't exist or something like that [19:27:01] Quick question. I'm currently downloading enwiki-20150112-pages-articles.xml.bz2. Is the quickest way to get a local Wikipedia mirror running to use https://github.com/wikimedia/mediawiki-vagrant? [19:28:42] That's not a good question. Rather, are there any gotchas I should be aware of that will make using that vagrant box difficult if I'm trying to make a local mirror? [19:29:59] egradman, interesting you asked that. I was just thinking I would want to do something like that with my wiki...thanks for the link. I have no answers for you though. heh [21:49:05] http://hypotheticalhurricanes.hol.es/mediawiki-1.24.1/index.php?title=Main_Page is there a way to make this site visible to Firefox users it's seems to not want to let them see it at all [21:53:18] Repton: What do you mean? I can access this page in chrome and firefox without problems [21:54:20] Oh this one user said he couldn't view the site from firefox [21:54:45] He's on a wikia wiki that I know him from [21:55:07] Repton: if he can't see it, it seems to be not a problem of mediawiki :) [21:55:35] * Repton sighs in relief * [21:56:04] So it's not everyone that uses Firefox then ok [22:06:48] Repton: works for me, I use FF [22:08:01] *if any of you see this message would merge one of the patches here https://gerrit.wikimedia.org/r/#/q/owner:ebrahim%2540gnu.org+status:open,n,z T51093 will be fixed now* (inspired by wikimedia fundraising slogan)