[00:50:13] A couple of relatively quick questions. The first: The main namespace on my wiki says "Page" next to the "Discussion" tab. How do I change it from page to another string? https://wiki.gamepaduniverse.com/wiki/PadPedia [00:51:48] Hi thirdtimesneeze. [00:52:15] hey Katie! [00:52:23] thirdtimesneeze: If you append "?uselang=qqx", you can see the MediaWiki message names. [00:52:26] https://wiki.gamepaduniverse.com/wiki/PadPedia?uselang=qqx [00:52:29] So you'd edit the page... [00:52:56] https://wiki.gamepaduniverse.com/wiki/MediaWiki:Mainpage-nstab I guess. [00:53:08] If you want to change only the main page's tab. [00:53:14] If you want to change the tab for all pages, it'd be... [00:54:10] https://wiki.gamepaduniverse.com/wiki/MediaWiki:Nstab-main [00:54:44] thank you so much, i'll remember to always look at Mediawiki: first [00:55:14] All the messages are overridable from pages in the MediaWiki namespace. [00:55:34] That's the preferred way of overriding messages, as it puts them in the database as wiki pages and makes upgrades simpler. [00:57:28] I have a second question with regards to http://www.mediawikiwidgets.org/DISQUS and getting the code updated there. I left a comment the other day in the comments section there but have not received a response back yet. Basically, the widget code there is outdated and needs the new universal code found on the DISQUS site which adds support for SSL also. I have HTTPS:// site and even with the new universal code I have had [00:57:48] reason:https://wiki.gamepaduniverse.com/wiki/Widget:DISQUS [00:58:36] if possible, if i get it working i would like Yaron, i believe, to update the widget code on the main site [00:58:52] You can probably pester him via e-mail. [00:58:53] He's still around. [01:00:14] Katie, out of curiosity do work for Mediawiki? I'm always amazed by how many helpful people volunteer their time to help less capable folks like me. I really appreciate your help! [01:00:57] MediaWiki is the software package. The Wikimedia Foundation is who I might work for. And no. :-) [01:01:11] Instead, I run Wikimedia, the umbrella organization that includes Wikipedia. ;-) [01:01:35] (The naming is terrible.) [01:03:43] is there anyway [01:03:51] to remove links ? [01:04:11] i mean , right now i have a list of links (top 3 page titles) on my main page [01:04:27] so if any of those are edited, it should be removed and become 1. title1 , 2. title2 [01:04:31] am i even making sense? [01:04:34] Not at all. [01:04:53] hmmm [01:04:54] hahahaha [01:04:54] haha Katie you are so funny [01:04:57] i guess so myself [01:05:07] ok, let me explain clearer............ [01:05:28] I sent Yaron an Email katie so hopefully that will be corrected soon [01:06:51] ok . so this is one of the function that i was tasked to do [01:06:54] replace with “make a request” whereby user can request for a non-existing article. and the request will appear somewhere on the homepage for ppl to contribute their input [01:07:30] and this is what is appearing on my main page (http://postimg.org/image/ov3jwo1td/) [01:07:56] i did this by using custom namespaces (Requests:) where users can only create and edit that namespace and nothing else [01:08:14] so now, my boss want something like [01:08:34] manual removal of links when the article are being updated (since it is already requested) it should not be there something like that [01:08:38] am i making sense............... [01:10:52] I have a symlink error, which I have no clue how to correct at https://wiki.gamepaduniverse.com/wiki/File:SVG_logo.svg because I a simpleton. It's an SVG file, the original file at https://wiki.gamepaduniverse.com/w/images/0/02/SVG_logo.svg is correct but the thumbnail gives an error. I am using Windows Server 2012 R2.... i'm almost certain it has to do with windows server [01:19:27] four, you are one confusing dude I will say that much [01:23:48] hahahahaa [01:23:50] life's tough [01:24:01] :( [01:36:14] thirdtimesneeze: So your best bet is look at line 207 of SVG.php. [01:36:19] You can also enable debugging mode, which might help. [01:36:33] But you should be able to track down what kind of symlink it's trying to make. [01:36:39] (Does Windows have symlinks?) [01:36:47] It's probably a silly permissions issue. [01:52:38] Hello all! Anyone know of a place that's put together all the ways of throwing data requests at the Wikimedias? [01:52:56] Ah, you're back. [01:53:02] The three I know of are the API, the Restbase API, and Quarry. [01:53:22] I'm wondering if there are more that I should know of. I've heard Mangus wrote a bunch of 'em for instance. [01:53:22] Katie, thanks! I am sure its a permission issue too, I'll have to do some work [01:54:02] Katie: Yes, and in a better mood. [01:54:49] There a lot of interfaces to Wikimedia/MediaWiki. [01:54:59] There are the replicated MariaDB databases. [01:55:05] There are XML and SQL dumps. [01:55:16] There's the standard site, with its HTML. [01:55:16] There's the stats machines, for staffers and people with NDAs. [01:55:29] Magnus has wdq. [01:55:31] For Wikidata querying. [01:55:31] NDAs? [01:55:36] Non-disclosure agreements? [01:55:38] yes [01:55:40] *whistles* [01:55:54] By the way, I wrote a Tech/News importer for the Signpost today. [01:55:56] Because those have private user info. [01:56:21] It deals with all those and tags that we were too lazy to deal with on our own. [01:56:24] ResMar_: And I'm still trying to convince the Community Engagement team to take over Tech/News. [01:56:41] ResMar_: You do know you can take the /en subpage and you have none of those, right? [01:56:48] So when Legoktm isn't cooking something up, that's what we'll cover that. [01:56:50] Oh, rats. [01:56:52] No, I didn't,. [01:57:04] ... [01:57:05] :) [01:57:48] Can I even access that wikicode though? [01:57:53] For more info: https://www.mediawiki.org/wiki/VisualEditor/Portal/Localization#Copying_documents_to_other_wikis [01:57:55] ResMar_: ^ [01:58:11] I wrote that for another doc (the VE guide) but it works the same for any translatable page. [01:58:28] I don't see an Edit source tab for the /en subpage [01:59:11] And I'm not sure if you know, but the English version is posted at https://en.wikipedia.org/wiki/Template:Latest_tech_news , so you could use those as well. [01:59:33] Ah, but I need the wikitext itself. [01:59:48] (!) [02:00:04] Let me guess, the templates get expanded when you request the page? [02:00:18] ResMar_: You could copy the wikitext from that template. Or you could open https://meta.wikimedia.org/w/index.php?title=Tech/News/2015/27/en&action=edit (the /en subpage on meta) [02:00:54] The more you know... [02:01:09] ResMar_: Sorry, I meant: you could copy the wikitext from https://en.wikipedia.org/wiki/Wikipedia:Tech_news (which is where the template pulls from). Or the /en subpage from meta. [02:01:31] Did community bite on handling writing and distribution? [02:02:06] It's far more important than those storytelling blog posts, IMHO. [02:02:15] Yes. They just keep postponing it because they're 'too busy'. I'm hoping they'll take over after Wikimania. [02:02:31] How about the newsletter extension? [02:02:38] I checked in on it and saw a lot of bugs crossed out. [02:02:51] Almost there? [02:02:52] Yes, there's a GSoC student working on that too. [02:03:12] Not sure where they're at. I think they just finished the "minimum viable product". Not sure exactly what that is. [02:04:05] Well it's good that it looks like it's happening. [02:04:48] I've been thinking about an IWBot. [02:05:25] The Graph extension is going to result in fifty different versions of the same graphs in a year's time, one for each of the wikis, maintained seperately. [02:05:44] Until interwiki transclusion finally happens it ought to be possible to write a bot that updates all of the copies off of a master location on meta. [02:05:54] master copy* [02:06:14] But that's neither here nor there. [02:06:44] Does Quarry have a dictionary? I haven't tried it out yet. [02:07:08] ResMar_: A dictionary? [02:07:52] This looks like the best place to learn the system: https://meta.wikimedia.org/wiki/Grants:Evaluation/Wikiresearch_webinars [02:08:12] ResMar_: It's an SQL interface. [02:08:20] So, you need to know a little bit of SQL. [02:08:31] You can look at the existing queries to fiddle your own. [02:08:36] Right, but you're storing your database items using certain terms. [02:08:42] with your own* [02:08:49] Like 'Wikipedians' might be a data field, or 'Categories' [02:09:07] ResMar_: See https://www.mediawiki.org/wiki/Manual:Database_layout [02:09:28] That tells you what is stored where. [02:09:50] Yeah, I haven't ever done SQL before, but it's not difficult and it's something I ought to learn to be able to start to use already. [02:10:29] Incidentally, here's one of my personal favorite Wikimedia backend diagrams: https://upload.wikimedia.org/wikipedia/commons/2/26/MediaWiki_fallback_chains.svg [02:10:48] I have a question about a very simple widget that I created that I don't understand why it's not showing properly on the page:https://wiki.gamepaduniverse.com/wiki/Widget:Amazon It gives an error icon instead of loading the actual img on the Widget:Amazon page and it actually does show up at all on this page:https://wiki.gamepaduniverse.com/wiki/List_of_Xinput_Devices [02:11:01] It's got a geometric beauty to it :) [02:11:38] It's nice. [02:13:31] It's just suppose to display an [02:17:05] hey guys i need help in sql right now [02:17:10] too* [02:17:13] i have this (https://dpaste.de/j9k7 [02:17:18] thirdtimesneeze: Look at your browser's console. You've got "Failed to load resource" errors for stuff like https://wiki.gamepaduniverse.com/wiki/Http:/ws-na.amazon-adsystem.com/widgets/q . Something must be misconfigured somewhere and you're loading external URLs (from Amazon) from your local wiki. [02:17:35] could anyone tell me what is wrong with my attempt code of (inner join) [02:17:41] it is not displaying the results i want [02:18:56] Meep. Aren't SQL queries supposed to be simple. [02:19:33] SQL queries can be as complex as you want them to be. [02:19:43] The R brand of simple, then. [02:20:27] thirdtimesneeze_: Have you looked at the HTML page source? [02:20:44] Also, I think you dropped a "not"? [02:22:34] [02:22:40] I'm not sure you can use escape:'url' like that. [02:29:04] i don't know what you mean by "not", but i know that the link is coming back http%3A%2F%2Fws-na.amazon-adsystem.com%2Fwidgets%2Fq%3F_encoding%3DUTF8%26ASIN%3DB003ZSP0WW%26Format%3D_SL250_%26ID%3DAsinImage%26MarketPlace%3DUS%26ServiceVersion%3D20070822%26WS%3D1%26tag%3Dgaunllpa-20 which means the // isn't being captured right. what should i use instead of url [02:35:55] legoktm: BTW if you're still on we can discuss the tech news thing if you'd like [02:49:59] thirdtimesneeze_: Maybe 'html' instead of 'url'? [02:53:01] Or maybe http://doc.thelia.net/en/documentation/templates/urls-and-paths.html ? [03:41:03] Hi [03:41:20] I'm trying to do this: https://www.mediawiki.org/wiki/Manual:Short_URL/Apache [03:41:29] but when I make the changes I start getting 404 errors [03:41:43] I don't think I have the right thing in the .htaccess file [03:45:17] whats in your .htaccess file.. [03:46:46] RewriteEngine On [03:46:46] RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] [03:46:47] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] [03:47:10] is your wiki installed on docroot/w ? [03:47:15] As you can probably tell, I copied and pasted what was in the wiki [03:47:40] No, I don't think so [03:47:47] then why did you use w :P [03:47:47] the main domain is the wiki [03:47:52] Ok, so I can change that [03:48:13] I would change that [03:48:18] move it to a subdirectory [03:48:54] Also, the .htaccess file goes in the directory for the website, right, not the highest level domain? Maybe it depends on how the host provider structures having multiple websites [03:49:11] I actually have no idea [03:49:14] Like, I have public_html as a folder, and in that are individual folders for each website [03:49:21] Ok, I'll try making the change you suggested first [03:49:39] I've never done this before which is why I was curious [03:49:47] I will need to make this happen on my wiki as well [03:49:59] You shouldn't pollute the document root. [03:50:16] It's preferable to have example.com/w/index.php over example.com/index.php [03:50:27] (and doesn't need to be w) [03:50:35] Sure. [03:52:04] Cool, it looks like it's mostly working, I think the css isn't being loaded, but at least it's not a 404 error [03:53:21] Katie: is it bad to have it in the main directory? The site is solely a wiki. If it is in /w/, then after making the change, will it show up as website.com/w/wiki/..., or just as website.com/wiki/... ? [03:53:38] If it's the latter then I guess I should do it as you suggest [03:54:38] WarAndGeese: the rewrite rules take care of that [03:54:50] so it'll show up as the latter [03:55:41] I guess that makes sense, cool [03:56:45] guys, is it possible to use css3 in mediawiki? [03:56:50] i am trying to edit the main page [03:56:53] as such style="background: rgb(245, 255, 250); border: 5px solid #CEF2E0; border-radius: 25px; [03:57:03] want to give it a rounded edge (by using border radius) [03:57:37] Any idea why the formatting isn't showing up now? Maybe the redirect rule is somehow affecting the locations of the css files? Probably not but I don't know [03:58:50] nvm, looks like it's good now [03:59:04] I forgot to change the "/w" somewhere else [03:59:12] Thank you both [04:43:16] four: Most CSS should work. [04:43:38] i tried on mediawiki sandbox [04:43:45] it is working now thanks :) [04:44:16] can i ask u , are you experienced in LDAP ? [04:45:10] A bit. [04:47:46] a silly/general question [04:47:55] any idea how does the ldap auto auth works? [04:47:59] i mean.. [04:48:15] i am trying to do a auto login to my mediawiki site using windows credentials. [04:48:35] currently, i have configured such that they are able to login using their windows credentials to the mediawiki site [04:48:52] nexxt, i would like it to be auto login (once they go localhost/wiki , they will be prompted to the main page instead of login page) [04:49:16] i would like to ask if the ldap auto auth does such thing, because i am unable to make it work as such :/ [04:52:40] It used to be possible with NTLM. [04:52:54] But that's kind of deprecated, as I understand it. [04:53:05] Just increase the cookie timeout on your wiki. [04:53:14] HMM [04:53:18] oops , sorry for the caps [04:53:26] Making people log in isn't the worst thing. [04:53:50] you mean ldap is also able to login automatically without prompting the login pagE? [04:54:03] because i successfully did it with the auth_remoteuser extension ( i am using apache2.2 btw) [04:54:28] but because when deployed to the live server, one of the apache module required to do the windows auth could not be copied into the folder (share hosting) [04:54:41] thats why i am thinking of using ldap :/ but not sure if it could achieve the same result [04:54:53] sorry for the spam , just very tired of getting stuck for daysssss [04:56:37] my company insist of making auto login (convenience sake ) thats why........ life's tough [08:43:35] Hello, I'm currently developing a special page for our internal workgroup mediawiki to create a few pages with one click. Since I do not have any experience in developing mediawiki extensions I do have some problems to find an api tutorial on how to create wiki pages in the source code of a special page. Does anybody here have a hint on how and where to begin (api links etc. would be useful)? [08:47:20] domna: we usually use API from outside of mediawiki, i.e. from bots or javascript tools [08:47:31] domna: https://www.mediawiki.org/wiki/Manual:Special_pages might help you get started [08:47:39] domna: just wondering if writing a javascript module could have been easier for you? [08:52:02] domna: especially if you want it to be "one click" and not ... "go to the special page, fill in the form..." [09:07:13] domna: here's the gadget we are using to add some entries to the page https://pl.wikipedia.org/wiki/MediaWiki:Gadget-wikibugs.js [09:39:01] hello everybody; I'd like to reduce the size of the "text" table in my wiki's db (currently about 300MB) but I don't have SSH to run scripts. Is there any other way I could try? [09:42:42] hey awesome ppl, i am retrieving article text [09:42:45] ? [09:43:01] it is working somehow but not exactly (http://i62.tinypic.com/99mlvd.png) it is showing the === instead of the header [09:43:05] why is it so? [09:43:55] this is the code i used to retrieve the text (https://dpaste.de/8tVR) [09:59:31] Guest81492: no idea what are you doing, is your problem that your wikitext is not parsed? [09:59:58] i guess so [10:00:26] when i retrieve the content , it is showing me === (example) ==== instead of the h2 example [10:00:40] is there anyway to make it display the header instead of displaying === [10:00:53] give it to parser? [10:01:03] i tried to return [10:01:06] I don't know in what context is your code running [10:01:15] is it an extension? which hook? [10:01:20] oh [10:01:29] i am modifying the newest page extension [10:01:36] u want my full code? i can paste it.. [10:02:14] this one ? https://www.mediawiki.org/wiki/Extension:Newest_Pages [10:02:14] this is the full code with no parser [10:02:16] https://dpaste.de/2dST [10:02:28] yup, thats the one, i am editing the newestpage.page [10:02:40] can you post your git changes somewhere? [10:02:42] i am trying to do a parser but it seems like it is not reading into my method :/ [10:02:54] i dun have a github account (if thats what you are saying) [10:03:05] :/ [10:03:31] u wanna compare the changes that i made? [10:04:42] if u need, this is the link that can see which changes i made to the original file (http://www.diffnow.com/) [10:05:13] I got it [10:05:21] specialpage is producing HTML, not wikitext [10:05:32] that's why [10:05:34] damn.............. [10:05:47] so i have to use parser? [10:05:52] or parser also wont work in this case? [10:06:24] Guest81492: check this out https://www.mediawiki.org/wiki/Manual:Special_pages#OutputPage-.3EaddWikiText.28.29 [10:06:46] oh, thats the source that will aid me? [10:07:02] you are doing $wgOut->addHTML( $this->showArticleText($row) ); [10:07:13] which means "Add HTML to the page" [10:07:17] read the manual above [10:07:21] so i just change that line of code? [10:07:24] damn [10:07:59] just try addWikiText instead [10:08:12] I have an apache-mediawiki docker and nginx in host os. anyone with the same setup? [10:08:22] let me try .. [10:08:38] atzorvas: congratulations. I don't. [10:10:06] saper: The reason I'm asking is because I want to configure domain.com/wiki to act as reverse-proxy properly with localhost:port/wiki. not trying to win fame :) [10:10:42] atzorvas: I only configure nginx to connect to php-fpm, not as a reverse proxy [10:10:47] configured [10:10:59] oh no , it justs show me worse thing [10:11:13] instead of article title being displayed, this is the one being displayed [10:11:14] These are the articles being created recently UNIQ8c95173442d22b08-item-0--QINU [10:12:03] http://i59.tinypic.com/117e2o2.png [10:12:48] Guest81492: sorry to disappoint you [10:13:00] Guest81492: besides, your "HTML cutting" will break in many interesting ways [10:13:09] damnnnnnnnnnnnnnnnnnnnnnnnnn [10:13:38] man, is there any other method that will retrieve the article text? [10:14:44] Guest81492: what is your raw $articleText ? [10:14:51] taken from $article->getContent() [10:15:10] I think you are breaking things with out "html_cutArticle" [10:15:23] you can do that but after addWikiText, when you just got plain HTML [10:15:42] so u mean i should remove the function html_cutArticle ?? [10:17:35] for now at least for test [10:17:45] also what is your $articleText (pure) [10:18:02] you are stripping tags and doing some strange things in this cutArticle [10:18:26] i remove the htmlcutArticle [10:18:31] now it is liek that [10:18:31] https://dpaste.de/cMM1 [10:18:51] How would I go about checking if what's currently being viewed is a page, but not on history/move/edit, etc.? [10:19:52] what u mean by my (pure) $articleText [10:20:10] removed, and still not displaying well , giving the weird characters :/ [10:20:15] just pure content [10:20:18] wht are you getting [10:22:03] tried to echo, but gives me an error Cannot modify header information [10:22:12] i used return (addWikiText) gives me the weird character [10:22:17] addHTML gives me the content of my page [10:23:21] but is the form of === ... === :/ [10:23:22] log it to a file, maybe? [10:23:47] how do i do that omg? [10:23:58] i have this //print out error $wgShowExceptionDetails = true; on my localsetting lol sorry i am really a newbie zzz [10:25:07] Guest81492: you might try using https://www.mediawiki.org/wiki/Manual:Article.php#Methods [10:25:27] getParserOutput() instead of getContent() and then use addHTMLText [10:56:00] could anyone help me with the php compressOld.php script? [11:00:48] I established an ssh connection and tried to execute the command but all I get is this error message: Could not open input file: compressOld.php [11:07:22] It seems like my wiki installation is lacking the compressOld.php — do you know why and how I could change it? maybe just copy/pasting it? [11:07:40] text_table_: you can do a ls to list if the file is there [11:08:03] note that it should be in the maintenance folder [11:08:44] Vulpix: it is not there :( clear_stats.php populateImageSha1.php commandLine.inc populateLogSearch.inc compareParserCache.php populateLogSearch.php compareParsers.php populateLogUsertext.php convertLinks.inc [11:09:33] there should be a lot more than just that in your maintenance folder [11:09:45] what MediaWiki version are you using= [11:09:47] *? [11:09:54] I know but I didn't copy all the entries [11:10:06] !blank [11:10:06] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [11:10:17] but I looked under c and there is no compressold.php script [11:11:13] text_table_: actually, that particular script is under /maintenance/storage, not in /maintenance... gj mediawiki... [11:11:21] Vulpix: 1.24.1 [11:11:23] aaaah [11:11:44] that's totally unexpected for me [11:11:48] thank you very much! [11:12:04] all the tutorial I could find placed it in the main maintenance folder [11:12:38] I have FlaggedRevs installed and I am looking for a solution to make pages with diffrent groups look diffrent [11:12:50] so the users see that it is in group 1, 2 or 3 [11:12:56] is this possible? [11:19:45] Vulpix: may I bother you again? [11:20:21] I run the script following https://www.mediawiki.org/wiki/Manual:CompressOld.php but the text table's size remains unchanged — did I miss something? [11:23:35] text_table_: how do you look at the size of the table? [11:23:54] phpmyadmin [11:25:59] Vulpix: phpmyadmin [11:28:10] space deleted from the database doesn't get freed and available to the disk. I wonder if phpmyadmin calculates the actual space used of the data or also the unreclaimed space [11:29:52] Vulpix: is there another way to check the actual size? my problem: I want to change my hosting provider but the new one has restrictions when it comes to the db size [11:30:59] Can I combine this with FlaggedRevs? [11:31:01] https://www.mediawiki.org/wiki/Help:Page_status_indicators [11:31:25] text_table_: you can take a backup of the database (with mysqldump) and restore it on another database (maybe a mysql database on your local computer). It will contain only the actual data, so you can see the actual size [11:32:33] Vulpix: thanks a lot! [11:33:25] yw :) [11:45:43] If a wiki uses ResourceLoader, is it better to use its /load.php syntax to import subpages into Common.css, or is it better to use the old ?action7raw&ctype... syntax for that, since RL minifies the complete CSS in the end? [11:54:49] My question summed up https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Make_FlaggedRevs_Groups_visible_to_users [11:55:54] Vulpix: another question: I tried to dump the db but I get an error (no permission) when I type mysqldump -u [username] -p[password] -h localhost --verbose --all-databases > dump.sql [11:56:54] text_table_: maybe the --all-databases is the problem, and you're only allowed to query your own database [11:59:07] Vulpix: I tried it with one specific db but I get the same error :( [12:00:43] text_table_: what's the exact error message? [12:01:18] "Keine Berechtigung" (=German for 'no permission') [12:02:56] error messages are usually more verbose, like "error: 1044: Access denied for user 'wikiuser'@'localhost' to database 'wikidb' when using LOCK TABLES" [12:09:28] Vulpix: -bash: dump.sql: Keine Berechtigung [12:15:06] Fatal error: Call to undefined method LoadBalancer::hasOrMadeRecentMasterChanges() in /var/www/html/wiki/extensions/FlaggedRevs/frontend/FlaggablePageView.php on line 1254 [12:15:13] next problem with flaggedrevs :/ [12:39:12] text_table_: that may mean that you don't have permission to create the file dump.sql on that folder [12:42:00] @Vulpix: hmm, I was able to create the dump using cpanel —phpmyadmin showed 350MB size while it is actually 250MB big --> thx again Vulpix! [13:02:13] hi just discovered http://devhub.wmflabs.org/wiki/API:Recent_changes_stream and so pointed to http://codepen.io/Krinkle/pen/laucI/?editors=101 wonder if line 21 should not be: """if (rc.type == 'edit' || rc.type == 'new') {""" instead of: """if (rc.type == 'edit') {""" because a new page is also an edit [13:07:18] xcombelle: you're right [13:44:00] I am having an issue with the confirmation email feature to register an account: https://www.mediawiki.org/wiki/Project:Support_desk#Confirmation_Email_not_working_-_Pear_not_installed_58239 [13:44:06] I am completely stumped [13:45:20] Is pear in the right place and is your webserver config actually loading it? [13:46:26] probably not, what is the right place/how to check [13:47:48] I presume you're not using cygwin php in iis? [13:50:16] I am kind of dumb so bare with me. Do you mean did I install the php package in cygwin? [13:50:29] Yes [13:50:57] Because pear in cygwin by default probably wouldn't be linked into PHP just extracted to C:\php or similar [13:51:26] it says "keep" when i go back through the installer, so yes i am guessing [13:51:34] but [13:51:54] it lists 5.6.10-1 as the version [13:52:00] and i am using php 5.4 for my site [13:52:16] does that matter? [13:52:45] it being cygwin? [13:53:24] $ pear config-get php_dir /usr/share/pear [13:54:31] i found this useful document:http://pear.php.net/manual/en/installation.checking.php [13:54:42] You really should be doing something like https://pear.php.net/manual/en/installation.getting.php [14:31:28] about yesterday's chat: I am happy about revision deleting, saved quite some space in the DB [15:54:42] Hey I'd like to install the extension Moderation but I'm not sure how exactly as the information is messed up. I downloaded it and added it to local settings but I don't get the last part. https://www.mediawiki.org/wiki/Extension:Moderation [15:55:13] Run the [[Special:MyLanguage/Manual:Update.php|update script]] which will automatically create the necessary database tables that this extension needs. [15:55:28] I don't get anything of that :p [15:59:19] Why does the mobile view of my wiki @ https://wiki.gamepaduniverse.com/wiki/PadPedia have the localNotice up top? I have the latest version of Mantle and MobileFrontend [16:01:58] Rojoss: you need to figure out how to run the update script? [16:02:09] Yeah I think so [16:02:10] you have shell access to your server, no? [16:02:27] I think I do haven't set anything up yet :p [16:02:36] can you log in to your hosting using ssh? [16:02:45] yeah just need to set it up [16:03:18] well, log in to your hosting, go to the mediawiki base directory, and go to the maintenance folder [16:04:38] Can I just do this through FTP or does it have to be SSH? [16:05:12] I believe it has to be SSH because you need to execute a script using php [16:05:56] Oke let me try get on SSH then [16:06:02] What script is it? [16:06:55] update.php [16:07:12] go to the 'maintenance' folder under the mediawiki installation folder and type 'php update.php' [16:07:44] thirdtimesneeze_: you can also try asking mobile related issues on #wikimedia-mobile, better chance of getting a solution there [16:56:37] I have a function here https://dpaste.de/CJ3E which gets a url of an image of given size. I'm trying to write unit test for this, but the call of global wfFindFile() is creating problem [16:57:01] My question is, is it possible to write test for this function in presence of this global? [17:01:51] codezee: well, calling global functions is not forbidden, just check if any global state is influenced by this [17:13:18] saper: the real problem is I cannot mock the global, and I cannot query for random files in the test, without knowing if its uploaded on the wiki or not [17:31:47] codezee: sorry for that.... [17:32:34] codezee: even fullUrl depends on many things in the environment [17:34:26] saper: yes, that function has more then one dependencies which are hard to manage, I can till mock file Object and media Transform object to return mock values, but getting a mock filename is the problem [18:01:07] I want to know how to get a Featured Article Function like on Wikipedia. [18:01:08] I did one Topicon as Template but that can be set by anyone I want this Template to be only usable by SysOPs. How to do this? [18:02:28] you can't technically prevent people from adding a specific template on a page [18:03:04] a workaround would be to use AbuseFilter and code a rule that would detect that and block the edit if the user is not a sysop [18:03:25] okay [18:03:34] and how is it done on Wikipedia? Do they have custom code? [18:03:53] I don't think wikipedia blocks people from adding such template to a page [18:03:59] e.g. https://en.wikipedia.org/wiki/Fantastic_Novels [18:04:04] here at the top right [18:04:07] is a star [18:04:23] just add it to whatever page... [18:04:55] ok [18:05:27] thanks [18:05:34] will try the abuse filter [18:16:51] git.wikimedia.org is down... I assume someone is working on this? [18:17:16] I doubt that [18:18:10] that's https://phabricator.wikimedia.org/T96002 again [18:20:18] Oh well. [18:22:27] I meant "working on fixing this".... maybe there was a misunderstanding there. [18:24:06] I think someone needs to reboot the server, but I don't know if the one that needs to put his finger on the reset button is aware of the downtime :P [18:59:44] I want a style module in ResourceLoader to load only for vector skin, can anyone point out the option I should use in its Resource Loader definition? [19:06:03] codezee: when you call $out->addModules(), you have access to a RequestContext, so you can check for the skin [19:07:32] ok,but is it not possible to do that in ResourcseLoader definition something like when we do targets => (desktop,mobile)? [19:12:01] codezee: you can use 'skinStyles' instead of, or in addition to, 'styles' [19:12:14] * MatmaRex looks up docs [19:13:05] hmph, it's documented in https://www.mediawiki.org/wiki/Manual:$wgResourceModules , but that's not very helpful. let's find some practical examples [19:13:50] codezee: https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/master/VisualEditor.php#L206-L219 [19:14:58] MatmaRex: yes I looked up docs, but didn't get much, thanks, that should do :) [20:11:48] Should the wiki be in public_html/mediawiki/w/ path? I'm trying to set up short urls but I can't get it working. [20:11:55] http://wiki.clashwars.com/wiki/Main_Page [20:12:29] how to fix InstantCommons? [20:15:12] vev: recently I just upgraded :) but check the debug log [20:18:12] vev: we are working n it [20:18:29] there is a php module that can be updated afaik [20:19:28] https://phabricator.wikimedia.org/T102566 [20:30:02] we have a meeting saturday, will it work? [20:30:27] or do we have to update the php module? [20:33:46] saper: [20:34:33] in vendor/ yes [20:34:38] that fixed it 4me [20:38:04] ok fine [20:58:16] someone can help me [20:58:19] afain [20:58:25] so i did the following !"autoconfirmed" in user_groups [20:58:25] & ((lcase(new_text) rlike "{{Abenteuer_Icon}}") [20:58:26] | (new_text rlike "{{Abenteuer_Icon}}")) [20:58:30] rule [20:58:35] but it does not work [20:58:52] normal users still can use {{Abenteuer_Icon}} [21:00:00] thegamer93: tried !("autoconfirme in user_groups) ? [21:00:21] thegamer93: besides, what about freshly registered users, not yet autoconfirmed? [21:13:23] Should the wiki be in public_html/mediawiki/w/ path? I'm trying to set up short urls but I can't get it working. [21:17:46] @saper good point [21:17:49] how to rule both? [21:37:16] Can someone please help with htaccess and url shorting? [21:39:25] Rojoss: you don't need something like "/mediawiki/w" - one directory is enough. [21:39:31] Rojoss: tried this? http://shorturls.redwerks.org/ [21:39:41] That's what I'm using [21:39:53] I changed it to 1 directory now and it's still not working [21:40:07] http://wiki.clashwars.com/wiki/Main_Page getting a 404 [21:40:08] thegamer93: I use ("sysop" in user_groups) when I needed [21:40:20] ok [21:40:39] Rojoss: first try to reach /w/index.php, where is it? [21:41:02] Should be at http://wiki.clashwars.com/index.php [21:41:17] wiki.clashwars.com is pointing to the /w/ folder [21:41:51] ouch [21:42:45] Rojoss: it looks like your MediaWiki code is in /public_html, not in /public_html/w - that's at least one error. [21:42:57] this owrks http://wiki.clashwars.com/index.php?title=Main_Page [21:42:59] No it's not :O [21:43:19] That's because wiki. is pointed to /w/ [21:43:51] Well, this works: http://wiki.clashwars.com/api.php , while this doesn't: http://wiki.clashwars.com/w/api.php [21:44:10] Could it be that you configured Apache to treat /public_html/w as the web root? [21:44:12] ./home/clasaqyv/public_html/w/index.php [21:44:25] Using shared hosted with namecheap [21:44:56] Okay - there's probably an error or two in the URL rewriting. [21:45:02] Rojoss: your $wgScriptPath and $wgArticlePath are? [21:45:15] I have a subdomain set to wiki.clashwars.com which goes to public_html/w [21:45:48] Rojoss: it's easier to setup with "public_html" and then have /w/index.php as a subdir, but as you wish hah [21:45:49] $wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/wiki/$1"; [21:46:08] well as you can tell I have barely any knowledge about this stuff :p [21:46:09] Rojoss: and your rewrite rule for /home/clasaqyv/public_html/w/ ? [21:46:37] http://pastebin.com/tmCDPWZq [21:46:46] I just used the website to generate it. [21:47:44] Rojoss: any .htaccess in public_html? any rules in the server config? [21:48:17] that's the only .htaccess I just bought the host and so it's a fresh install and everything. [21:48:58] So it should be in the mediawiki root with index.php? [21:49:02] Rojoss: your intial instinct to have something like /mediawiki/w might have actually been the right one, in this case. [21:49:16] ...given that this is just one subdomain of the site. [21:49:37] ...and given that it's helpful to have MediaWiki in a subdirectory beyond the web root. [21:49:50] Well I can remove the subdomain if it fixes stuff [21:49:58] I'll probably only use this webhost for the wiki anyways [21:50:05] You can get it working either way - just pick one. [21:50:14] http://pastebin.com/RL1VfYyC like two you might need $2 [21:50:26] Rojoss: do you have an access to the error_log? [21:50:38] If it's on CPanel I do let me see [21:52:05] Rojoss: usually somewhere on the file system [21:52:21] Rojoss: if in CPanel check if it allows you to set RewriteLog directive in the config [21:52:32] http://pastebin.com/hDkReBRX That's from error log on cpanel [21:53:45] Rojoss: is .htaccess enabled at all? can you make a syntax error there and see if it responds with 500? [21:54:00] it does [21:54:23] good [21:56:28] So should I point the sub domain to public_html instead/ [21:56:51] that's a well-known working solution but let's try to fix your .htaccess first [21:58:21] What about 2nd line like RewriteRule ^/wiki(/.*)$ /index.php$1 [L] [21:59:15] Hello folks; is anyone aware that git.wikimedia.org is currently giving 503 errors? [22:00:03] http://pastebin.com/0JAARdDT [22:00:23] very slow on me [22:00:48] Doesn't really change anything if I change second line. [22:01:11] The .htaccess file should be in the mediawiki root folder right? [22:01:51] it can be in any directory *it refers to* [22:01:54] so root in your case [22:02:31] what about this: [22:04:07] Alias /wiki /home/clasaqyv/public_html/w/inde.php [22:04:16] instead of the first rewriterule [22:04:22] Alias /wiki /home/clasaqyv/public_html/w/index.php [22:04:23] as a new line I suppose? [22:04:30] ah [22:04:47] I have a feeling your DOCUMENT_ROOT is still set below [22:05:04] 500 now [22:05:10] remove [22:05:29] Rojoss: can you put just remove that Alias [22:06:06] Don't have the file pi.php [22:06:15] create [22:06:19] with [22:06:23] only [22:07:24] hm gives me 500 [22:07:28] ye [22:11:31] Should I contact namecheap?