[02:52:40] http://stackoverflow.com/questions/42776926/how-do-you-edit-the-html-for-mediawikis-specialuserlogin-page-in-mw-1-28 [02:52:48] If anyone would mind helping me with this I'd greatly appreciate it. [02:54:09] class SpecialUserLogin extends LoginSignupSpecialPage { [02:55:00] Depends what part you want to customise [02:55:00] Hooks::run( 'UserLoginComplete', [ &$user, &$injected_html, $direct ] ); [05:04:49] ugh, why does {{#tag:nowiki|{{{ }} freeze my local mw install [12:08:05] Was something changed recently? [12:08:07] https://en.wikisource.org/w/index.php?title=Page:The_pilgrims_progress_as_originally_published_by_John_Bunyan_;_being_a_facsimile_of_the_first_edition_(1878).djvu/217&action=submit [12:08:23] The sidenotes display larger than the main text DESPITE font-size being set in the templates [13:46:55] hi [13:48:15] i would like to contribute to your website [14:35:56] Hi! I have weird problem on a private wiki in my company. Placed a NoCaptcha on create account form using ConfirmEdit. Eveyrtime people try to create an account with a correct captcha, they get 'Incorrect or missing CAPTCHA.' Is this a bug? [14:36:29] Anyone here know how to get in touch with the Extension:DynamicPageList_(third-party) people? The DPL wiki http://semeb.com/dpldemo/DPL:Manual is returning a PHP version not supported error. [14:40:24] ShoeMaker, in theory https://www.mediawiki.org/wiki/Extension_talk:DynamicPageList_(third-party) - in practice it just might be unmaintained? [14:40:48] arpan98_: Hi and welcome. Could you please elaborate? :) [14:42:06] Got disconnected again. sorry for the mess. I hope my question is visible to the rest of you. It's from the nick Mega. [14:46:51] @andre__ i would like to contribute to the website user interface [14:47:23] HELO CAN ANYONE TELL ME WHY WE CAN SEE SUNSET AND SUNSHINE IF EARTH IS FLAT? [14:47:35] arpan98_: Which exact website do you refer to exactly? (Link welcome.) Do you have experience with CSS/LESS and PHP? [14:47:59] ?? [14:48:01] ANAND945: Your question is off-topic here as it is unrelated to MediaWiki [14:48:39] I M NEW USER SO SORRY FOR THAT [14:49:04] CAN WE TELL ME TO ASK SUCH QUERIS [14:49:46] @andre__ https://www.wikipedia.org/ [14:50:42] @andre__ https://www.wikimedia.org/ [14:51:28] arpan98_: so which of them? [14:51:36] ANAND945: Stop shouting (using all caps). [14:51:39] arpan98_: Do you have experience with CSS/LESS and PHP? [14:51:59] arpan98_, what would you like to work on / change exactly? [14:53:04] @andre__ i can work on both websites [14:53:15] arpan98_, see my questions above [14:54:20] @i have created websites using html, css , javascript and frameworks like bootstrap, jquery [14:54:49] @andre__ i am learning php [14:55:03] arpan98_, https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker is probably a good place to start [14:55:14] arpan98_: however I'm not sure if this would be a good fit. [14:55:37] I have weird problem on a private wiki in my company. Placed a NoCaptcha on create account form using ConfirmEdit. Eveyrtime people try to create an account with a correct captcha, they get 'Incorrect or missing CAPTCHA.' Is this a bug? [14:55:44] Sorry for the bump! [14:57:00] @andre__ why can't it be a good fit [14:57:57] Fast: Sounds like it. I'd suggest filing a bug in the first instance [14:58:25] @andre__ am trying for gsoc and i have got a copy of wikimedia repository from github and am unable to understand the code [14:58:49] Thanks. Where do I do that? The github repo or phabricator or bugzilla? I'm new to the mediawiki dev environment! [14:58:55] arpan98_: What did you copy exactly? Link welcome. [14:59:06] Fast: https://mediawiki.org/wiki/How_to_report_a_bug [14:59:17] Thanks. :) [14:59:35] arpan98_: if you have specific questions about code, please ask your specific questions and tell us which specific code you refer to. [15:00:44] @andre__ https://github.com/wikimedia/mediawiki [15:01:12] arpan98_, so you cloned the MediaWiki core repository. Okay. [15:01:43] arpan98_: That repository has nothing to do with the two websites that you linked to. [15:02:00] arpan98_: have you read and understood https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker ? [15:03:00] https://www.mediawiki.org/wiki/Extension_talk:DynamicPageList_(third-party)#DPL_manual_site_is_down. makes me think it's not maintained. :\ [15:03:29] @andre__ what is that repo on? [15:03:38] @andre__ am reading it [15:04:54] arpan98_, you need to clarify what you would like to do, otherwise I just quote what's written on webpages already [15:05:00] arpan98_, and that is not a good use of my time [15:05:24] if you want to change something on the front pages, you need the "wikimedia-portals" repository. I think. [15:06:45] @andre__ where can i get that repo from and how can i be a gsoc intern working for wikimedia? [15:07:16] arpan98_, 1) see the link I provided. 2) see https://www.mediawiki.org/wiki/Outreach_programs [15:08:37] @andre__ok thanks [15:09:11] arpan98_, might be https://phabricator.wikimedia.org/tag/wikimedia-portals/ and the first link to Gerrit [16:05:32] Hi, new issue. What could be the reason for GIFs not playing inside the wiki? The gif is embedded correctly and it loops in the file page. It simply displays a link on the article page. [16:11:03] Because it's being thumbnailed? [16:11:18] Ah! yeah! How do I resize the animated GIF? [16:11:32] Is that possible? [16:12:21] How is resizing related to the problem? [16:13:13] I added the file as [[filename.gif|thumb|300px|caption text]]. [16:13:28] Feel free to change "300px" to something else? :) [16:13:55] Tried. No GIF. [16:14:20] Sizes tried - 200px, 250px, 300px, 450px. [16:14:36] Because thumbnails are not in GIF format. No matter how big your thumbnail is. [16:15:14] You'd presumably need to include it full size [16:15:25] I'm not sure MW has any image handlers to resize gifs and still have them animated [16:16:48] But on Wikipedia most GIFs are resized yet animated. [16:17:03] I tried without the thumb, still same! [16:18:42] [[filename.gif|350px|right|caption text]] is still a link to the GIF filepage and not an animated GIF. [16:19:38] Hmm [16:19:41] What image handler do we use for that [16:19:53] 350px is telling it to thumbnail it [16:21:01] How do I resize it without thumbnailing it? [16:21:35] You can't [16:21:38] Image handler is ImageMagick. [16:22:23] This wiki page has resized it - https://sk.wikipedia.org/w/index.php?title=Hypot%C3%A9za_zriedkavej_Zeme&action=edit§ion=14 [16:22:52] The GIF here is resized too small yet it animates in the article page. [16:22:53] AFIAK, WMF just uses imagemagick for gifs [16:23:40] The page I linked has a GIF that is resized. How is that done? [16:24:04] Sorry wrong link. Correct link - https://sk.wikipedia.org/wiki/Hypot%C3%A9za_zriedkavej_Zeme [16:28:28] Using the upright variable has no effect whatsoever. [16:33:50] Any solutions? [16:37:28] Anyone? [16:38:18] Like I say, AFAIK WMF just uses imagemagick for gifs [16:43:00] I understand. It is not working for me. Resizing simply displays a link and not even a static thumbnail. I have no knowledge of how imagemagick works. It would be helpful if you could tell me what the issue could probably be. [16:44:58] It could be based on [16:44:58] $wgMaxImageArea = 10e7; // 100MP [16:44:58] $wgMaxAnimatedGifArea = 10e7; // 100MP [16:45:08] https://www.mediawiki.org/wiki/Manual:$wgMaxAnimatedGifArea [16:45:16] "Animated GIFs where (width × height × number of frames) exceeds this limit will be thumbnailed to a single, static frame, instead of getting an animated thumbnail." [16:45:20] Default value: 1.25e7 [16:47:00] Thank you. I will try this now. [16:47:22] Probably need to null edit/purge the page after setting those [16:50:57] Still the same. [16:51:12] Did you purge the page where you used it? [16:51:21] You might need to purge the file page of the file too... [16:51:25] To force it to regenerate thumbnails [16:51:55] I did. I tried in a private window too. [16:52:27] Using ?action=purge ? [16:52:46] I thought it could be the GIf itself, so I tried the GIF from the wiki page. Still the same. Yes. I did that + a null edit! [16:54:19] does purge actually purge the thumbnail cache though? [16:54:54] It's been known to fix issues on WMF [16:55:02] But possibly we have other handling and stuff [16:55:18] I am not sure. But the filepage of the image has a thumbnail section of the animated GIF without any frame or animated GIF. [16:55:40] It's identical to the one on the wiki page with just the file name and no thumb. [16:56:09] so to check whether or not it actually rebuilt it recently, you can check the modification time on the thumbnail image [16:56:37] (check it on the server side, by cd'ing to the thumbnail directory and checking the time via ls -l or similar commands) [16:57:02] if it is recent, then it's possible the gif is larger than the new limit you set it to [16:57:13] Is it the same file as on a WMF wiki? [16:57:22] Yes. [16:57:29] Why not just use instant commons? ;) [16:57:41] 1.25e7 to 10e7 is an 8 times increase [16:57:42] The time is not recent. It shows the uploaded time, Skizzerz . [16:58:07] Fast: for the thumbnail (in the thumbs/ directory)? [16:58:19] Reedy, I used that file to test this issue. This is an internal wiki for a school. So they use their own medias. [16:58:31] Let me check Skizzerz . [16:58:40] this isn't something you can check on-wiki [16:59:31] I know. I am trying to find the thumbs directory. [16:59:56] it'd be a wiki_root/images/thumbs/x/xx/ [17:00:08] where x/xx are the first and the first+second characters of the hash of the file [17:00:32] (if you view the thumbnail in your browser in a new tab/window, you should be able to grab it from there) [17:00:56] Alright! I can see a lot of thumbnails for all the sizes I have been testing. It's not viewing in the wiki. that's the problem it seems. [17:02:14] could just delete them all if they're wrong [17:02:24] makes MW regenerate them when you try and use them [17:02:38] It has generated sizes of 120px, 160px, 170px, 200px, and so on... But the filepage on the frontend shows no thumbnails. Do I have to run the job? Okay Reedy, I will delete them now. [17:03:08] you could try clearing the job queue if you think that'll help... I don't see why it would though [17:03:35] also, just to be safe, restart php [17:03:51] (if php is being run through apache, restart apache, if it's like php-fpm then restart that service) [17:04:03] just in case there's opcode caching in place which is causing your settings change to not take effect [17:09:01] I have no idea how to restart PHP. But by the look of localsettings, caching is disabled. [17:11:30] I ran the jobqueue still the same. No thumbnails on the image page. [17:12:56] Purged them again after you deleted them on disk? [17:13:26] Yup. Purged, nulled, ran the queue again. [17:13:58] I have no idea how to restart PHP. But by the look of localsettings, caching is disabled. <- opcode caching is unrelated to LocalSettings [17:13:59] To be sure, I purged the article page and the image page. [17:14:05] unrelated to mediawiki in general [17:14:33] recent PHP ships with Zend opcache enabled by default, and if you used their recommended "production" configuration of php.ini, it doesn't refresh the cache for a file when it changes [17:14:52] meaning you can edit a file and it keeps running as if the file never changed (using the old version) [17:15:24] anyway, I have to head out, but good luck! [17:15:41] Skizzerz, I am in a terminal that has access to the server to run the maintenance scripts. I am sure it's the server's terminal. Can I restart PHP from here? Will it create issues on other sites installed on the server? [17:16:02] Okay. Thanks so much for helping me this far. Appreciate it! [17:16:08] Have a good day, Skizzerz . [17:21:31] Reedy, what should I do now? The thumbnail is still empty on the frontend. [17:27:49] Reedy, Okay! It think I found the issue. All the generated thumbs for this gif are tiny transparent squares of 10bytes in size. [17:28:03] imagemagick OOM'ing? [17:28:50] OOM? Out of memory? Is there a setting I can increase the memory? [17:29:42] Perhaps this one - $wgMaxShellMemory? [17:32:35] Possibly :) [17:32:42] it should help, but might not fix it [17:32:47] I added 307200 to the variable and did the routine again. Purge + null edit + job queue run. Still facing the issue. Any advice? [17:42:10] Im looking for an extension that will mark pages older than X date as "Outdated" pages without incrementing the actual revision date. Anyone know of such an extension? [17:42:32] Hi all, [17:43:54] (err, sorry about that) anyhow I'm trying to get LDAP auth going and am getting TLS errors at the top of the auth page. I've got $wgLDAPDebug = 1 with $wgDebugLogGroups set but the file isn't being written to. Any notion why? [17:43:58] Reedy, I got the thumbs to generate finally. Added this - $wgMaxImageArea = 100 * 1000 * 1000;. But it's not visible on the article page. Purged and nulled again. [17:51:04] I can access the thumbnail with ?action=purge. but when i visit the url without it I see the old small box. Any idea how to fix it? [17:51:27] Check your browser console? [17:54:18] No errors. I cleared the cache and tried accessing the url from a private window. Same. [17:55:20] With ?action=purge. Thumbnail is displayed. Without it. A tiny square box. Same happens in image desc page. [17:55:55] Even if you refresh the page after you've purged, you get the broken version again? [17:56:38] Yes, [17:57:00] Have you some caching layer infront of your webserver? [17:57:03] Squid, varnish etc? [17:57:13] Nope. [17:58:49] It's like the broken version (old) is existing in a weird dimension. It's not on the disk I can assure that. I downloaded the generated thumbs from the URL twice to make it sure. [17:59:09] The directory and URL all are same. [18:00:20] mywiki.org/wiki/filename.gif/200px-filename.gif = broken | mywiki.org/wiki/filename.gif/200px-filename.gif?action=purge = GIF plays [18:01:06] sounds like something is caching something [18:01:57] Caching is that weird? [18:02:10] Can be [18:03:34] This sucks. I think I have to spend the rest of my day meddling with this. I am really sorry to bother you further, but as a last piece of advice, can you tell me what to do now? I ran out of options! [18:06:04] If it's just that file being weird... Delete it, and upload it again under a different name or something [18:10:12] I'm back [18:10:17] Fast: maybe it's your browser cache [18:10:30] does mywiki.org/wiki/filename.gif/200px-filename.gif?123 work? [18:10:43] if that works, but .gif by itself doesn't, then it's your browser [18:11:38] Skizzerz, It works. But I have tried all the private windows too. It's the same. [18:11:52] what browser are you using? [18:12:04] Chrome and Firefox. [18:12:13] on Chrome, go to the non-working .gif [18:12:20] then hold shift while clicking the refresh button [18:12:37] Yeah I did that! I cleared the cache with hard reload. [18:12:45] hmm [18:12:52] I blame gremlins [18:13:32] does it work on your phone? (if you're connected to wifi, disconnect first before trying so that you're using the normal cell network) [18:13:44] assuming the wiki is public, that is [18:14:04] Let me try from a different computer on the network. [18:14:23] I'm trying to figure out if some network appliance is caching it [18:15:11] in any case, if it IS a cache issue, the good news is that you don't actually need to solve it [18:15:28] sure, this one example file is broken, but anything you upload in the future should work [18:15:38] (even if you reupload that example file under a different name) [18:15:46] i need a mentor for designing the websites of wikimedia prijects like wikipedia,wikivoyage.. [18:16:57] Skizzerz, Finally, It's working when accessed from a different computer. the network is a mess here. I'm relieved now. Thank you so much Skizzerz. [18:18:11] Fast: As it's a school... [18:18:17] There's not a catch all web proxy is there? [18:18:41] if the server is on an internal IP I'd assume it would bypass the proxy [18:18:55] If it's badly configured, it might not :( [18:19:47] unless the proxy is running directly on top of the L2 switch, I don't see how bad configuration would do anything [18:20:11] I have no idea about the network here. I am working as a librarian and I volunteered. [18:22:05] I told a staff that I use mediawiki on my PC for journal and record keeping purposes, the next day I was asked to maintain this wiki. [18:22:14] ouch [18:23:37] So far so good. I am actually learning a lot. I am going to sit with the admin here and try to understand how the network works here today. [18:24:42] if it's like the vast majority of school networks, it'll be legacy equipment fast approaching end of life held together with a dubious chain of duct tape [18:25:18] (the duct tape is figurative... hopefully) [18:27:20] Most of the systems here are not that old. But most are running on XP though! Only a few here are upgraded to Windows 7! I can relate. [18:30:08] Okay then. Skizzerz and Reedy, thank you again guys. I have to leave now. I have to add more docs to the wiki that no one is going to read forever. [18:37:37] ¯\_(ツ)_/¯ [18:37:50] Whoops, wrong channel. Sorry. [18:46:35] Hi all. I have the latest stable 1.28 downloaded yesterday. The only additional extension is VisualEditor. When trying to save an uploaded image I'm getting a long list of errors starting with: Unknown error: "{"error":{"code":"internal_api_error_InvalidArgumentException","info":"[400e6288e0a542bea592d87a] Exception Caught: Message::newFromSpecifier: invalid argument type NULL","*":"#0 /var/www/docs.ah/public_html/includes/api/ApiBa [18:46:57] any ideas which direction should I dig to resolve the problem? [18:48:15] Please put the fill error in a pastebin [18:48:17] !pastebin [18:48:17] To avoid overflowing the channel with inane amounts of text, use https://phabricator.wikimedia.org/paste/create/ or other awesome pastebin sites to share code, errors, and other large texts. [18:48:32] Possibly you need a different version of visual editor for your version of mediawiki [18:48:46] well that url is wrong [18:49:12] and also requires login [18:49:26] https://phabricator.wikimedia.org/paste/edit/form/14/ [18:49:28] !del pastebin [18:49:29] Deleting users is very messy and not recommended, because this breaks referential integrity in the database (they appear in many different tables like users, edit histories, recentchanges, preferences, etc). A safe solution is to block the users, and possibly rename them with . You can also try [18:49:35] !pastebin del [18:49:35] Successfully removed pastebin [18:49:50] http://pastebin.com/QfXY5Z7x [18:50:11] !pastebin is To avoid overflowing the channel with inane amounts of text, use https://dpaste.org or https://phabricator.wikimedia.org/paste/edit/form/14/ or other awesome pastebin sites to share code, errors, and other large texts. [18:50:12] Key was added [18:50:21] url is very internal [18:50:44] /etc/hosts 127.0.0.1 docs.ah [18:51:27] This is from visual editor? Normal upload (via special:Upload) works fine? [18:52:26] I don't know enough about visual editor to say for sure, but it sounds like a version mismatch between the version of VisualEditor in use and the version of MediaWiki in use [18:55:50] bawolff, negative Special:Upload gives errors as well. Let me enable debugging to get detailed list [18:57:58] that's all i have: http://pastebin.com/wL1cvMqV looks like I have a mess with either settings or dir permissions [18:57:59] or both [19:01:20] bawolff, [11:57] that's all i have: http://pastebin.com/wL1cvMqV looks like I have a mess with either settings or dir permissions [11:58] or both [19:01:57] files are actually uploaded see thm in the directories [19:02:21] Could not delete lock file is probably permission related [19:02:46] Just make sure that everything in the image directory, is recursively owned by the webserver [19:40:47] bawolff the problem was with dir permissions [19:40:48] thanx a lot [20:20:44] I’ve aleady registered to wikimedia but still not got developer access. I want to contribute and for that I need to clone it to my system but don’t have access [20:20:52] How to solve it? [20:21:00] Wikimedia? [20:21:07] You need to create an account on wikitech to get an account on gerrit [20:21:31] gerrit.wikimedia.org…not this? [20:22:42] Reedy_: I’ve registered here -“wikitech.wikimedia.org” [20:22:52] You should be able to login to gerrit then [20:24:53] Reedy_: I’m able to log in to gerrit but not couldn’t in terminal [20:25:05] git clone ssh://sangamcse@gerrit.wikimedia.org:29418/mediawiki/core.git [20:25:18] this is the code..right? [20:25:52] I mean syntax [20:26:21] yes [20:26:28] have you uploaded your public ssh key to gerrit? [20:26:48] I don’t think so [20:27:00] https://www.mediawiki.org/wiki/Gerrit/Tutorial#Set_Up_SSH_Keys_in_Gerrit [21:41:36] howdy. looking for some help with links to anchors, inside the wiki, in rawhtml [21:42:02] what, specifically, is your question [21:42:48] if I want to create a custom tag, such as ^foo^ turning into foo, what would be the easiest way? [21:43:02] using raw html, how to link to an anchor inside another wikipage [21:43:04] does it require an extension as the documentation seems to suggest? [21:43:23] Woet: an extension is required. There are two ways extensions can add new features: tags and parser functions [21:43:39] e.g. stuff or {{#something:stuff|more stuff}} [21:43:55] Skizzerz: it cannot be a simple single character such as ^foo^? [21:44:01] ineedhelp: why can't you just use the [[internal link]] wiki markup? [21:44:20] Woet: that would require modifying the core parser [21:44:24] which is a bad idea [21:44:27] Skizzerz: indeed. [21:44:30] (or replacing it with your own parser) [21:44:39] Skizzerz: i guess i will just teach people to use and instead [21:45:09] because i have ton of code, and it is already done in html [21:45:44] I don't follow your line of reasoning... even if you enable raw HTML mode (the tag), you can still mix in normal wiki markup [21:46:17] oh? i didnt know that. i thought inside the was strict html parsing [21:46:20] if you HAVE to have it as an tag, it'd be exactly the same as linking to a section on another site, except that the href would point to your wiki instead [21:47:49] ineedhelp: I'm only about 80% sure, but I'd be surprised if turned off wiki markup [21:48:40] ill check right now. [21:49:33] Skizzerz: why are you attempting to use [21:49:42] Sorry ineedhelp [21:50:45] because i have ton of code, and it is already done in html [21:51:13] Woet: there's another option, but I don't know how fragile it would be [21:51:29] the ParserBeforeStrip hook I think would let you have extended syntax, which you replace with the proper wiki markup afterwards [21:51:31] Skizzerz: its probably not worth the effort [21:51:41] Skizzerz: that'd be pretty easy [21:51:54] Skizzerz: i'll give it a go, thanks. it'll only be as fragile as my regex. [21:52:40] btw, whats the way to clear the css cache? ?action=purge doesn't seem to be doing the trick. [21:52:51] clear your browser cache? [21:53:26] ah, i didnt think of that. usually cmd + r clears it properly [21:54:07] Woet: there looks to be a few extensions on mw.org that implement extended wiki markup. You may want to look at them to get an idea of how they work -- https://www.mediawiki.org/wiki/Category:Extended_syntax_extensions [21:54:56] that said, I need to head off, later :) [21:57:05] Skizzerz: worked perfectly with ParserBeforeStrip already [21:57:10] Skizzerz: $text = preg_replace('/\^(.*?)\^/', '$1', $text); [21:58:48] Be careful regexing things after sanitization takes place, its very easy to give yourself an xss doing that [22:01:25] @Skizzerz, the wiki markup doesn't work inside the . but, I did figure it out. always helps to put the correct id :| [22:02:10] just tack on #id to the absolute path [22:03:27] Some forms of wikimarkup can be used inside by using syntax {{#tag:html|Wiki markup here}}. But not everything will work [22:03:31] bawolff: agreed [22:04:52] ah cool. ill go try that [22:07:43] didnt work for the links [22:11:50] thx for the help! /