[00:08:08] 03(mod) Special:Import: "XML import parse failure" and wrong number of imported revisions - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=9911 +comment (10mike.lifeguard) [01:29:26] hi [01:29:50] can i ask a lame question? how hard is it to set up an media wiki installation? [01:31:34] depends entirely on you experience [01:31:38] your* [01:32:19] it's not much harder than setting up any other web software that requires PHP and a database [01:32:41] like some forum or bugtracker or whatever [01:33:16] i have several years experience with debian [01:33:24] I hear that if you have Ubuntu or some other Linux variants, it's remarkably easy [01:33:25] compiled my own kernel [01:33:55] experience in administrating a web server is what I meant :P [01:34:32] you read the installation instructions, you follow them, that's it [01:35:21] a friend of mine want to have 'multiple instances' on his linux machine, i guess he means more than one wiki [01:35:33] http://www.mediawiki.org/wiki/Manual:Installation [01:36:09] then he needs seperate databases and directories for them [01:36:21] so according to the FAQ, one DB process (mysql?) would be enough [01:36:23] no biggie, you do it once you can do it n times [01:36:56] You use a different database prefix for each wiki (for Postgres, you can achieve a similar effect by using different schemas and users) [01:37:05] yes [01:37:10] possible, I think [01:37:19] so mysql can handle multiple databases? [01:37:26] lol? [01:37:40] or what sql-software would you recommend? [01:38:03] don't say that 'lol' thing :p [01:38:27] mysql wouldn't be as used as much if it couldn't use more than once database [01:38:47] ya...i think i saw it at school doing so =) [01:39:21] as long as you don't want to provide some wiki farm there it's going to be alright [01:39:30] i have very little experience with sql, but for setup mediawiki it should be enough? [01:40:13] you can use mysql but postgres would work, too [01:40:23] see http://www.mediawiki.org/wiki/Manual:Installation [01:45:25] these whores [01:45:43] charged me 50cents for money transfer within the EU [01:47:47] are there any known issues with mediawiki and debian stable (etch)? [01:48:29] freezer, don't use the packaged version from their repo, it's probably broken and definitely outdated. [01:48:43] If you use the one we provide, it will work with any web server that supports PHP. [01:48:54] On any operating system that has a web server that supports PHP. [01:49:03] And MySQL/PostgreSQL too, of course. [01:51:50] ah, so use the latest stable versions of the database program/mediawiki provided be the project sites? [01:52:00] *by [01:52:36] freezer, yes, from www.mediawiki.org. [01:52:47] btw., thats something i really don't like so much about debian....so many outdated packages [01:53:09] Simetrical: also mysql from the wiki page? [01:56:09] freezer, no, for MySQL you can get the latest package. You could also get it from mysql.com if you want bleeding-edge, but anything 4.0+ will work fine. [01:56:19] Ditto Apache. For PHP you need PHP 5. [01:57:01] ok..which is also available in etch [01:57:35] then i will only grab mediawiki from the web and the rest as debian packages [02:03:12] Hi! I can't get my logo to change on MediaWiki. Can Some one tell me how to change it? [02:06:42] flyingparchment - you recommend the URL and index.php scriptpath be different. It will involve some rework for me but I want to make sure I do the right thing. So what is the rationale for this recommendation? [02:24:40] Ross Lindsay, I believe you overwrite wiki.png in /skins/common [02:32:37] Thanks! [02:39:46] if I'm programmatically creating pages by instantiating a page title, and a new article what is the proper way to escape apostrophes and quotes and stuff? I tried mysql_escape_string but then my page title actually had /'s in it [02:42:57] AphelionZ: how are you creating new pages? [02:43:31] you don't need to escape anything if you're using Title, Article etc. [02:43:57] flyingparchment: then why am I getting a database error? [02:44:21] i don't know. why don't you tell us what the error is? [02:44:30] actually I think I know [02:44:36] http://rafb.net/p/gXsSNg41.html [02:44:49] I bet i should be using a function other than newFromUrl to instantiate the title [02:46:50] flyingparchment, jlerner: hmm I tried newFromText instead and I still got the same error: MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'apostrophes'', 'Hen', '20071109024600')' at line 1 (localhost)". [02:47:06] and how are you creating the article? [02:47:24] ->doEdit [02:47:27] it's in my paste [02:48:40] AphelionZ, you shouldn't be using $_GET, to start with. Use $wgRequest, it does stuff like fixing magic_quotes. [02:49:39] AphelionZ, which line does the error occur at? [02:51:10] the first line in my paste [02:51:14] the title creation [02:53:24] Simetrical: I switched it to $wgRequest->getVal( 'title' ) [02:53:36] and i still get the same error with ::newFromText [02:53:44] trying ::newFromURL now.. [02:54:28] Simetrical: nope.. [02:54:32] same error [02:55:16] my current code: http://rafb.net/p/viD9ub58.html [02:58:43] flyingparchment, jlerner? [02:59:23] That's bizarre. [02:59:35] Actually it's slightly scary. [02:59:47] AphelionZ: don't know... [02:59:49] It implies something isn't being escaped automatically before being fed to the DB. [02:59:51] *Simetrical looks at the code [03:00:27] Simetrical: yeah, before that is a simple form submit.. nothing more :-/ [03:01:17] AphelionZ, wait a minute, creating a Title shouldn't execute a DB query. [03:01:19] Should it? [03:01:52] AphelionZ, are you running any extensions? [03:02:07] AphelionZ, could you post the full MySQL query and the error? [03:12:08] Simetrical: I'm not sure I can but I can post the error [03:12:28] making the article would execute a db query [03:12:37] maybe the error isn't on that line after all [03:13:18] Post the error, please. [03:13:22] sure thing [03:13:50] A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: [03:13:52] (SQL query hidden) [03:13:53] from within function "". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'apostrophes'', 'Hen', '20071109031325')' at line 1 (localhost)". [03:16:04] and the title text was: This is yet another test with 'apostrophes' [03:21:03] Simetrical: any ideas? [03:21:37] Un-hide the SQL query. [03:21:45] umm.. [03:21:46] That's an MW options somewhere. [03:21:50] k [03:23:56] ugh i can't f*cking find it [03:25:52] 03(NEW) newline missing after category link - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11908 minor; normal; MediaWiki: Page rendering; (bugs) [03:27:18] AphelionZ: http://www.mediawiki.org/wiki/Manual:%24wgShowSQLErrors [03:27:34] excellent [03:28:40] oh my [03:28:55] Simetrical: you are a genius and I am an idiot [03:29:01] thank you [03:29:07] it was a completely different extension [03:55:23] If the page loads nothing, how do I find my error? is there a log somewhere? [04:23:18] Korolen: it is probably on your file system. It is either in your apache log, or in whatever file is defined in your php.ini [04:23:45] Korolen: if one isn't defined in either apache or php, or if error reporting is completely turned off, you'll need to fix that first [04:24:12] k [04:28:05] hi [04:28:15] what does "upright" do in [[image:]] links? [04:30:20] zocky: google gave me http://en.wikipedia.org/wiki/User_talk:Quadzilla99#upright_images [04:30:55] ah, I see [04:31:20] thanks [05:45:49] 03(mod) Use transclusions to count articles as well - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11868 +comment (10JSchulz_4587) [06:35:56] Thanks for the awesome Mediawiki version. I can now have a "Category:C++" that doesn't implicitly redirect to "Category:C". [06:36:05] I still wish I could have a "Category:C#", though... [06:36:53] *Werdna shudders [06:36:54] uh oh [06:36:56] :P [07:03:47] has anyone tried using the RSSreader extension for mediawiki? I followed the instructions, but I get this: [07:04:16] Warning: Cannot modify header information - headers already sent by (output started at /home/USER/public_html/extensions/RSSReader/lastRSS.php:1) in /home/USER/public_html/includes/WebResponse.php on line 10 [07:04:56] and the whole RSSreader.php prints out at the top of the page, with strange colours [07:09:32] never mind... [07:09:34] I haven't messed with RSSreader, but I can tell you that that error comes from the extension trying to send data before the rest of the script. [07:09:55] I accidentally copy pasted the html of the code, not the code [07:10:04] Er. Miswording. I meant to say, that error comes from the extension trying to send data *after*. [07:10:08] But yeah. :-) [07:13:27] wait, fixed that [07:13:41] but now I'm getting the same error, but on extensions/RSSReader/lastRSS.php:221 [07:13:53] but that file has only 219 lines! [07:16:16] 220, actually [07:16:21] shortcircuit: any idea? [07:24:07] nevermind, fixed it. [07:24:14] trailing linebreak [07:49:59] <_wooz> lo [08:06:02] re [08:37:03] 03rotem * r27328 10/trunk/phase3/languages/messages/MessagesHe.php: Update. [08:37:59] 03rotem * r27329 10/trunk/phase3/languages/messages/MessagesHe.php: Typo. [09:07:44] Hello! [09:18:32] 03(NEW) a typo in /includes/BagOStuff.php line 250 - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11909 15enhancement; normal; MediaWiki: General/Unknown; (lazarenco.victor) [10:24:33] What do I do with my patches for the Mediawiki extension PageProtectionPlus? The author doesn't answer and there is no such extension in bugzilla. Beside, I also did not get a response on my mediawiki patch I put into the bugzilla a week ago. [10:25:10] Do I need a sponsor or such before my patches are being recognised? [10:29:22] Caldrin: patches to the coer may take a while to get reviewd & applied - it depends on the type and extend of the patch, and the issue it fiexes, and how busy developers are. don't forget to use keywords "patch needs-review" on the bugzilla report, and also supply the patch in an appropriate form as an attachment. [10:29:59] Caldrin: note that i have waited several monthes for some patches to be applied. the simpler the patch, the faster it goes. [10:30:23] Caldrin: it also helps to look at the submit log and find out who worked on the part of code in question recently - and then talk to that developer directly. [10:31:07] Caldrin: for third party extensions, especially those that are not maintained in the wikimedia svn, you have to talk to the author. if the author doesn't respond, just fork (i.e. make your own version and become the author/maintainer) [10:31:14] Ah, I did not use this keyword, but I supplied it as an attachment. It's not a big patch anymway. I did not even expect a "good patch" or "bad patch". Simply stating "I'll check it" would have been great. [10:31:32] Caldrin: chances are, no one has ever looked at it [10:31:36] Duesentrieb: I thank you very much for your help. [10:31:42] because no one know that there's something to look at [10:40:22] 03(mod) Inconsistent handling of message cache key normalisation - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11852 +need-review +patch (10osrc-sysint) [10:48:48] Hi. I'm trying to create a "seamless login" script for MW. I want the users who login in the admin side of my site to be able to login to MW by following a link. The problem is... it doesn't work. [10:49:00] 03siebrand * r27330 10/trunk/extensions/ (17 files in 4 dirs): [10:49:00] * Add URL's to the extension credits of the Contributors and BackAndForth extensions [10:49:00] * Add correct i18n for extension specific pages in FlaggedRevs, Makevalidate and GiveRollback extension [10:49:00] Submitted by: SPQRobin [10:49:06] Here is the relevant part of the script: http://pastebin.ca/766979 [10:50:13] I know there's one cookie missing. I noticed that MW sets a cookie named "handbooks_session". The value is an MD5 hash. Don't know how to generate that. [10:56:48] Anyone? :) [11:12:36] 14(WFM) a typo in /includes/BagOStuff.php line 250 - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11909 +comment (10raimond.spekking) [11:44:38] Does anybody know how I can add a accesskey for a button in MediaWiki? (I which files should be changed, and how) [11:45:39] Hojjat, IIRC, it's done in javascript [11:45:56] so probably common.js or wikibits.js or something like that [11:45:59] zocky, well I think I also have to change the Skin file accordinly [11:46:21] also, I glanced at those JS files, but didn't figure what to add [11:46:27] :( [11:50:07] Hojjat, it could also be in linker.php or skin.php, maybe skintemplate.php [11:50:27] uggapugga [11:50:36] zocky: well, that's why I asked here. Someone could guide us to it! [11:50:40] Nikerabbit: ugaga! [11:50:47] bark! [11:50:51] Don't you know the answer? [11:51:49] there's also function updateTooltipAccessKeys() in wikibits.js which seems to have something to do with it [11:52:44] Hojjat: seems like there is no longer convenient js function for it [11:53:10] mmm [12:27:39] hello [12:27:44] mah [12:32:33] Any help for me? :) [12:36:10] hey people - i'm using # to do a numbered list (i'm writing some instructions for something) and at several places i need to show some commands to run. [12:36:10] trouble is, each time i try to continue the list by using # again, it starts at number 1 [12:36:11] i basically have a few lines starting with #, and then some lines starting with a space (to insert some code snippets etc...) and i need to continue the list afterwards, but i don't know how... [12:41:58] 03siebrand * r27331 10/trunk/phase3/ (20 files in 3 dirs): [12:41:58] Localisation updates from Betawiki. [12:41:58] * an, ar, cs, es, ext, frp, fy, hr, hsb, is, kaa, myv, nl, oc, pnt, qu, ss (new), stq (new) [12:44:50] catrope doesn't irc? [13:00:17] 04(REOPENED) Set language and projectname for Lak Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11890 +comment (10alexander.sigachov) [13:09:24] 03(mod) Set language and projectname for Lak Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11890 +comment (10niklas.laxstrom) [13:16:02] hi! [13:16:24] could somebody give me a hand to understand something with mediawiki databse? [13:17:04] hi all [13:17:06] nada03: Please be more specific, and if someone can help they will. :) [13:17:13] 03(mod) Set language and projectname for Lak Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11890 (10alexander.sigachov) [13:17:19] 03siebrand * r27332 10/trunk/extensions/ (15 files in 15 dirs): [13:17:19] Localisation updates from Betawiki. [13:17:19] * Fixes and additions to 15 extensions for ar, es, el, ext, frp, hsb, ja, nl, oc, ss, stq, sv [13:18:09] ok, that the simplest question in the world: Where is the Databas??? sorry but i am a newbie with these things... [13:18:48] I mean in which folder? [13:19:14] im trying to get the printable version of a wikipedia article with python. [13:19:28] but I only get the normal version (that version without printable=yes) [13:19:33] any idea whats wrong? [13:19:40] The database is on the server, separate from the file system you have access to. You can access it with SQL, but not as a file. [13:19:50] I cant manage to understand how the server knows where is the database it has to use.... [13:19:58] this is the code: http://rafb.net/p/wmcBqp17.html [13:20:08] my computer is my server [13:20:22] nada03: you define it in a config file. [13:20:38] but the db cant be visible as a file? [13:20:41] nada03: Try looking in urllib and urllib2. [13:21:17] Pathoschild: maybe you can help me too? Everyone else seems to be dead (figuratively speaking). [13:21:45] urllib is a folder of mediawiki? [13:21:54] Pathoschild: I did that but it returns not the page with printable=yes. [13:22:08] cant figure it out whats wrong. :/ [13:22:33] nada03: I'm not sure; I've never written python. Try looking for files or subdirectories in the same directory as that file with that name. [13:22:47] nada03: you dont need to know where are the files. just the ip, user and password. [13:23:08] ok but it mess a bit in my head [13:23:10] evi|one: More specifically? :) [13:23:31] when i will put my wiki on a distant server, how will i send the db? [13:23:34] Pathoschild: i asked the question with python. ;) [13:23:51] Pathoschild: I'm trying to create a "seamless login" script for MW. I want the users who login in the admin side of my site to be able to login to MW by following a link. The problem is... it doesn't work. Here's the relevant part of the script: http://pastebin.ca/766979 [13:24:41] Pathoschild: MW sets an extra cookie, named handbooks_session that contains an md5 hash. But I have no idea how that is generated. [13:24:44] nada03: the Database is accesses via TCP. Even if it is installed on your local machine. [13:25:28] nada03: you will send commands and data via tcp to the server and the server will respond. [13:26:27] evi|one: One solution is to install the API, and modify your admin login script to log them into MediaWiki and send them the cookies. [13:26:45] nada03: you don't need to access the files where the database stores your data. it is not human readable and the database server, itself a program, knows how to handle it. [13:26:52] Punkrock: you mean that I will set up the DB on the distant server i will use, by making it from the dbmanager such as mysql admin? [13:27:03] nada03: right. [13:27:10] cool! [13:27:24] Pathoschild: my admin login is on a different domain. Cookies don't work across domains... [13:27:25] nada03: i would strongly recommend that you read some stuff about databases. [13:27:28] 03(mod) DEFAULTSORT ignored when displaying relations and attributes. - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11907 (10bugzilla.wikimedia) [13:27:55] evi|one: Then it gets messy, and I have to go. :) [13:27:58] Punkrock:so i just have to configure my manager with the infos of the host where will stands my site? [13:28:20] slavie|away: that's okay, thanks anyway [13:28:24] nada03: then the wiki will send commands to the server based on a protocol language called 'sql' [13:28:50] Punkrock:ok! [13:28:57] you configure your site where the wiki is with the parameters that are needed to connect to the database. [13:29:32] anyone has an idea how to get the printable version of a wikipedia article? [13:29:47] Punkrock:these parameters needed to connect to the database, are they provided by my host? [13:30:16] mak3: how about the print button of your browser? [13:30:42] nada03: dunno. my crystalball doesn't tell me... [13:30:44] PunkRock: that works but Im trying to get it with python. [13:31:07] Punkrock: :p [13:31:27] Punkrock: i am dumb with these things [13:31:36] cant manage understand some things... [13:31:43] mak3: I think the two versions are pretty much the same as far as html goes. The CSS is different. [13:31:51] Punkrock: another question [13:31:52] nada03: kidding. i really don't know if your provider provides mysql. [13:32:10] i set up the wiki like its told in the manual [13:32:17] so everything is going right [13:32:23] apache, php etc... [13:32:23] how did ya without mysql? [13:32:40] i have although mysql administrator [13:32:51] when i run it, it doesnt show me any connection [13:33:00] whereas it exists one for the wiki [13:33:09] (i can see it in phpmyadmin) [13:33:12] evi|one: right but also without navigation. [13:33:14] so i dont understand [13:33:21] erm. so you run mysql-admin? [13:33:33] Does all the DB of a computer are stored in a single file? [13:33:53] mak3: yeah, the print version doesn't have print links. [13:33:56] yeah i run mysql-admin [13:34:01] but it is all blank [13:34:05] nada03: nope. there are different files. but it is not of any interest for you. [13:34:16] Pumkrock:ok [13:34:19] nada03: you don't have to care for the files. [13:34:37] mak3: the difference is really minimal in the html. So maybe you actually get the print version, but don't realize it? Just a thought. [13:34:43] mysql-administrator needs connection parameters. [13:34:44] so just one thing to know if i understood [13:35:13] nada03: maybe ask your provider for that. [13:35:13] punkrock: it s the same parameteres that i use to setup the mediawiki? [13:36:04] nada03: possible. you can create a user with less privileges to run the wiki with [13:37:06] so to know if i understood. imagine im hosted on geocities. i configure mysql-admin with the infos that they ve provided me. and i look for a fonction that allow me to send my db to their server? [13:37:13] is it ok like this? [13:37:18] evi|one: I get a version with logo, navigation, search box. so its not the printable version. [13:38:35] nada03: i fear that you mess up with the word database. you send data to the database. [13:39:26] punkrock:ok so ive messed up :) [13:39:32] now i understand [13:39:37] nada03: this is somehow a little bit offtopic. this is not a db related channel but related with mediawiki. [13:39:38] you send request to the databse [13:39:43] /with/to/ [13:39:58] ok [13:40:02] thanx for the help [13:40:38] mak3: the printable version has navigation and search box too. It's just that they're hidden via CSS. [13:40:39] np [13:41:10] evi|one: ^^ [13:41:15] evi|one: that explains a lot. [13:41:37] so I need the css too... [13:43:22] okay, it works! thanks a lot! :) [13:43:32] No problem. [13:43:59] Now it's your turn to help me. ;) [13:50:14] 03wegge * r27333 10/trunk/phase3/languages/messages/MessagesDa.php: Added/updated translations for da [13:51:40] evi|one: heh, yes if I could. ;) [13:51:54] dont really unterstand your problem. [13:52:08] It's okay. I was just kidding. :p [13:56:10] 03(NEW) Allow Semantic Properties to be set without being displayed inline. - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11910 15enhancement; normal; MediaWiki extensions: Semantic MediaWiki; (bugzilla.wikimedia) [14:02:31] *Chief_Mike how do I search for a PO or POT file I'm wanting to make a translation to Tagalog for one of OLPC's extras and hoping 2 use tl.wiki as a sample [14:07:53] 03(NEW) Section headers in articles cause wrong section numbering - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11911 minor; normal; MediaWiki: Page rendering; (gtisza) [14:11:26] re [14:29:10] wb [14:39:40] hi [14:40:10] is there a way to disable objectcache from an extension? [14:40:26] I want to have $wgEnableParserCache to false only for one page [14:41:53] 03rotem * r27334 10/trunk/extensions/CentralAuth/ (CentralAuth.i18n.php CentralAuth.php): Using plural in the preferences box. [14:43:57] ok, $parser->disabeCache() [14:43:59] cool [14:49:11] 03rotem * r27335 10/trunk/extensions/CentralAuth/SpecialMergeAccount.php: Avoid double messages. [14:50:48] 03rotem * r27336 10/trunk/extensions/CentralAuth/CentralAuthUser.php: Fixing boolean. [14:51:00] http://webapps.imagestream.com/wiki/index.php?title=Router_Manual#Configuring_a_LAN_Interface <-- can somebody clue me in as to why the templates aren't loading? [14:53:19] rjune_: probably because you are hitting the post-expansion limit [14:53:49] rjune_: the pages you are trying to include seem to be quite large - making a huge page with all of them doesn't seem to make sense anyway [14:54:27] TimStarling: oh, right... i tried to find the template inclusion limits the other day, and failed - where are they defined? [15:01:30] Duesentrieb: we want to do it for internal purposes, we've got a nice print to PDF plugin that generates a nice manual for us. So this isn't a page that would get hit often, just once or twice when the manual gets updated. [15:01:39] is there a way to change the post-expansion limit? [15:02:05] yes, but as you can see from my question to TimStarling, i don't know it :) [15:02:22] anyway, i would recommend generating pdf for the pages individually, and them merging the pdfs into one [15:03:23] Ah, I missed that. [15:03:35] pdfjoin would be an option [15:05:34] Where in Mediawiki is used iranian calendar? [15:06:27] Li-sung: a guess: the iranian language file? [15:06:57] I don't think PDFjoin will work with what we're currently using to generate the PDFs [15:07:05] http://webapps.imagestream.com/wiki/index.php?title=Special:PdfPrint&page=OpenVPN <-- sample PDF output [15:07:31] Duesentrieb: I'm trying to create a "seamless login" script for MW. I want the users who login in the admin side of my site to be able to login to MW by following a link. The problem is... it doesn't work. Here's the relevant part of the script: http://pastebin.ca/766979 [15:07:38] evi|one: no idea [15:07:44] Duesentrieb: Well, iranian month names are in all language as option message.. [15:07:55] Duesentrieb: ok, just checking. :) [15:08:23] Li-sung: hm? in all languages? perhaps they are inherited? [15:08:37] Li-sung: might well be that the month names are defined in the english locale for some reason. [15:08:48] The messages are exist in all languages. [15:08:57] Not the option itself. [15:08:59] Hello [15:09:10] Li-sung: perhaps so you can use the english locale on a system that uses iranian content language, and thus the iranian calendar. [15:09:58] rjune_: the *best* way to do that would imho be to hach the PDF generator thingy to handle multiple pages [15:10:16] rjune_: it could automatically generate "chapters" even [15:10:38] it does autogenerate the chapters. [15:11:01] rjune_: anyway, the generated pdf looks pretty basic - why shouldn't pdfjoin work for that? well, except for the table of contents, i guess [15:11:17] well, currently, it generates the one level too far in :) [15:11:33] i.e. you can't have more than one "top" chaper, right? [15:11:39] whatever [15:11:51] it should be smarter and not relie on huge pages [15:11:55] 03(mod) Hooks needed in Sanitizer to control acceptable tags and attributes - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10180 +comment (10Soroush83) [15:12:29] correct, the name of the page is the "top" chapter [15:12:58] rjune_: so, i'm suggesting that it could be improved by allowing multiple pages and thus multiple top chapters. would solve your problem, too. [15:13:39] We do that too. I was just wanting to be able to suck it all into one page for easy printing [15:15:31] easy printing of html, live, from the web page? [15:15:51] well, the limit is there because pulling lots of huge templates sucks performance-whise... [15:16:09] rjune_: anyway, you should check that what i say is actually true by including a small page at the top, and see if it works. [15:16:39] btw, you can get plain html using action=render. using that it should be pretty trivial to writ a script that produces a composite html page [15:23:58] no, easy printing once for a manual. [15:24:09] we don't want it to be hit on a regular basis, just once or twice. [15:24:55] then when we update the docs, we hit the link and grab the PDF [15:25:42] so we're talking about hitting this link once mabye twice a month [15:25:48] yay [15:27:34] rjune_: so, write a script [15:34:17] I was hoping for a config option. [15:35:30] is there a URL to disable TOC generation? [15:36:10] rjune_: no, use css [15:37:16] 03yaron * r27337 10/trunk/extensions/SemanticForms/languages/SF_LanguageEn.php: Added 'sf_createform_inputtype' and 'sf_createform_inputtypedefault' values [15:37:57] 03yaron * r27338 10/trunk/extensions/SemanticForms/languages/SF_LanguageFa.php: More updates by Ghassem Tofighi [15:39:20] 03yaron * r27339 10/trunk/extensions/SemanticForms/includes/SF_TemplateField.inc: Backwards compatibility for SMW 1.0 alpha 1, for use by the Halo extension [15:40:35] 03yaron * r27340 10/trunk/extensions/SemanticForms/includes/SF_FormClasses.inc: Fixed template parsing, replaced some hardcoded text with language-file calls [15:42:43] 03yaron * r27341 10/trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc: Fix for 'wrong form' warning (bug 11888), added SMW 1.0 alpha 1 compatibility [15:43:20] 03yaron * r27342 10/trunk/extensions/SemanticForms/ (INSTALL includes/SF_GlobalFunctions.php): New version - 0.7.4 [16:05:16] Hi guys, I'm running MediaWiki for an internal project at my University and found that Wikipedia has a tag , e.g. for C++ code which is not included in my MediaWiki distribution. Anyone know where one can get this? [16:05:42] !highlight [16:05:42] there are several extensions for syntax highlighting, see http://www.mediawiki.org/wiki/Category:Syntax_highlighting - the most popular one is at http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi [16:06:58] Any ideas, why call to wfMsgWikiHtml makes my code to kill MediaWiki? [16:07:35] typo? [16:07:55] Code: return wfMsgWikiHtml( "titleblacklist-forbidden", $title->getText(), $item ); [16:08:08] enable error reporting if you see only a blank page [16:09:53] $wgShowExceptionDetails = true; [16:11:02] Ravn: IIRC, is an HTML code [16:12:54] VasilievVV: php!! [16:13:11] Nikerabbit: error_reporting = E_ALL & E_STRICT; [16:13:39] ini_set( 'display_errors', 0); [16:13:44] with 1 of course [16:15:39] Nikerabbit: put in LocalSettings.php; didn't help [16:16:44] rjune_: no it's not [16:17:07] VasilievVV: bah [16:20:16] beats me [16:20:17] !errors [16:20:17] To see PHP errors, set error_reporting(E_ALL); and ini_set("display_errors", 1); Fatal PHP errors usually go to Apache's error log - also check the error_log setting in php.ini (or use phpinfo). For more details in wiki error reports, set $wgShowExceptionDetails = true; and $wgShowSQLErrors = true; For full debug output, set $wgDebugLogFile to some path you like. [16:20:23] Hmm. [16:20:29] of course [16:20:41] tht should be E_ALL | E_STRICT [16:21:54] re [16:22:00] ör [16:22:12] Lo Nikerabbit! [16:24:47] Nikerabbit, not really important except for development. [16:25:19] Simetrical: | is really really really different to & which is important [16:26:09] Well, yes. [16:26:19] E_ALL & E_STRICT == E_NONE [16:26:35] Oh, what *you* said is wrong. Yes, that's highly important. [16:26:42] I thought you were criticizing the bot. [16:28:04] Ack, I wish I had domas' set_proctitle patch running on my server. [16:28:07] *Simetrical glares at it [16:28:17] Hey Guys, The SyntaxHighlight_GeSHi extension seems nice. However I dont understand one thing: What is the stuff about changeing the require('geshi...) line. What is geshi?? [16:29:52] Ravn: Generic Syntax Highlight [16:31:28] heeheeee [16:34:17] Ravn, the instructions say what it is. It's a PHP app you need to download elsewhere. Google would have told you that too, probably. [16:40:53] I'm using MW 1.11.1 installed on CentOS-5 via svn [16:41:24] For file uploads, how do I get it to allow files that have no extensions? [16:41:44] Setting $wgCheckFileExtensions = false; seems to have no impact [16:43:50] Ravn: HTML uses not sorry. [16:43:58] 04(REOPENED) Migrate some "safe" config options to similar in-wiki settings - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=6952 (10Simetrical+wikibugs) [17:00:32] 03nikerabbit * r27343 10/trunk/phase3/languages/messages/MessagesEn.php: * Unnecessary break [17:01:11] 03yaron * r27344 10/trunk/extensions/SemanticForms/languages/SF_LanguageFa.php: 'sf_createform_inputtype', 'sf_createform_inputtypedefault' values added [17:02:54] 03rotem * r27345 10/trunk/phase3/languages/messages/MessagesHe.php: Update. [17:13:22] Hello. I've been playing with shortening the URL to my mediawiki install, and it works with www.example.com/wiki/Article, except that images and skins are broken. Can anyone provide some assistance? [17:17:08] 14(INVALID) Distinguish disambiguation pages from normal articles cheaply in database - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=6754 +comment (10Simetrical+wikibugs) [17:17:09] 03(mod) Exclude disambiguation pages from random page feature - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=7937 (10Simetrical+wikibugs) [17:17:14] 03(mod) disambiguation links in a different colour - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8339 (10Simetrical+wikibugs) [17:17:18] 03(mod) Distinguish disambiguation pages in [[Special:Allpages]] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=7936 (10Simetrical+wikibugs) [17:17:22] 03(mod) Distinguish disambiguation pages in [[special:whatlinkshere]] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=7935 (10Simetrical+wikibugs) [17:17:25] 03(mod) Disambiguation pages should not be listed in Special:Lonelypages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=3483 (10Simetrical+wikibugs) [17:17:29] 03(mod) Optionally exclude disambiguation pages from Special: Allpages and Special:Prefixindex - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=9319 (10Simetrical+wikibugs) [17:23:45] lol [17:38:06] hey hey, how do i edit the sidebar links [17:38:18] !sidebar [17:38:18] To change links in navigation bar on the left, simply edit [[MediaWiki:Sidebar]] in * list style. More details on . [17:38:30] thanks [17:43:06] grr [17:43:20] ? [17:43:31] Why does $this->text() (in skin files) echo rather than return? [17:43:46] It would be much better to return so that anything could be done with the value. [17:44:04] Ask Gabriel Wicke. [17:44:11] why would you want to manipulate it [17:44:20] You can get it using other syntax if you want. [17:44:43] Nikerabbit: I want to share the same skin file between Drupal and MediaWiki so am using functions and $this doesn't work well in functions. [17:44:56] I will just make my own version of QuickTemplate [17:52:04] minute, . . . just access the member variables directly. [17:52:10] You don't need to make your own version of anything. [17:52:11] :S [18:02:19] 03nikerabbit * r27346 10/trunk/extensions/Translate/ (Translate.i18n.php Translate.php TranslatePage.php): * Validate input a little more [18:06:57] 03(NEW) Change default MediaWiki text for Wikimedia projects - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11912 15enhancement; highest; MediaWiki: Installation; (cbass) [18:08:36] 03simetrical * r27347 10/trunk/phase3/includes/SpecialAllpages.php: Use standard __METHOD__ for $fname in SpecialAllpages.php, not weird indexSomething stuff. [18:08:44] 03rotem * r27348 10/trunk/phase3/includes/SpecialUndelete.php: Fix double encoding. [18:08:49] 03(WONTFIX) Change default MediaWiki text for Wikimedia projects - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11912 +comment (10minuteelectron) [18:11:54] 03rotem * r27349 10/trunk/extensions/DeletedContributions/DeletedContributions_body.php: Standard link. [18:11:57] 04(REOPENED) Change default MediaWiki text for Wikimedia projects - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11912 (10cbass) [18:12:51] 03(mod) Change default MediaWiki text for Wikimedia projects - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11912 +shell (10raimond.spekking) [18:14:20] 03rotem * r27350 10/trunk/extensions/DeletedContributions/SpecialDeletedContributions.php: Standard link. [18:15:49] 03rotem * r27351 10/trunk/extensions/DeletedContributions/DeletedContributions_body.php: Fix. [18:24:38] rotemliss: http://localhost/MW/index.php?title=Special:Undelete/MediaWiki:Monobook.css&target=MediaWiki:Monobook.css ? [18:25:18] Fixed in r27351. [18:30:55] 03(mod) disambiguation links in a different colour - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8339 +comment (10Simetrical+wikibugs) [18:34:24] hello [18:39:02] rarrr [19:24:42] - wfMsgHtml( 'centralauth-prefs-count-attached', $attached ) . [19:24:43] + htmlspecialchars( wfMsgExt( 'centralauth-prefs-count-attached', array( 'parsemag' ), $attached ) ) . [19:24:45] ??? why the complete message? [19:25:33] What do you mean? [19:26:16] why do you use htmlspecialchars for the complete message? not the param $attached only if necessary? [19:26:48] any non latin localizations will break? [19:27:13] The whole message was already encoded using wfMsgHtml, since it is added as a raw HTML. [19:28:56] never seen this construction [19:29:25] wfMsgHtml contains htmlspecialchars, though it doesn't encode the parameters. [19:30:41] 03(mod) Section headers in articles cause wrong section numbering - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11911 +comment (10ssanbeg) [19:43:33] is it possible to make C:\Folder\Folder\ clickable in wiki? [19:43:45] so that i can click it and it would take me to that drive and folder? [19:44:20] XDuxaX: file://C:\Folder\Folder [19:45:11] that doesnt make a link [19:45:19] just puts a box around the text [19:45:37] shouldn't do [19:46:04] I don't think file is a supported protocol for external links in MediaWiki. [19:46:26] is there one? or maybe an extension I can install to allow me to do this? [19:51:11] XDuxaX, there's a config variable. [19:51:45] how do I access it? [19:53:16] XDuxaX, search on mediawiki.org for it, then change in LocalSettings. [19:56:21] I have a problem with mediawiki 1.6.10, after copying everything to the server, filling in the fields required, installing and moving LocalSettings.php and deleting the config directory, I get a Page Cannot Be Displayed error in http:///wiki/index.php [19:56:30] XDuxaX, there's also some help in includes/DefaultSettings.php [20:09:58] !tidy [20:09:58] For more information about HTML Tidy, see . [20:10:04] !tidy [20:10:04] For more information about HTML Tidy, see . [20:10:10] grr [20:11:45] hmm, I'll look into this, thanks [20:12:31] 03sanbeg * r27352 10/trunk/extensions/AssertEdit/ (. AssertEdit.php): By request, moving AssertEdit extension to SVN. [20:14:10] woah.. :\ [20:14:12] it worked [20:14:22] one simple line [20:14:28] thanks mcbride [20:14:33] no problem [20:15:09] i cant seem to find that extension to allow me to link to files [20:15:09] =/ [20:15:17] what phrase should i be searching for? [20:16:49] XDuxaX: are you trying to get tags to work? [20:17:05] no im trying to make it so that when I put in c:\folder\folder [20:17:09] it turns in into a link [20:17:15] and when I click it it opens that folder [20:17:15] XDuxaX: "link to files"? files are local... they would have to be in the same place on every computer viewing the page [20:17:22] XDuxaX: that doesn't make so much sense, does it? [20:17:26] yes its on a shared drive [20:17:40] so everyone viewing the wiki has access to drive L [20:17:41] XDuxaX: then all you need to do is allow file: as a protocol for URLs in mediawiki [20:17:44] and it is drive L on every computer [20:17:50] how do I do that? [20:18:09] not all browsers will accept file: links [20:18:09] $wgUrlProtocols[] = "file:"; [20:18:19] most people here use firefox [20:18:28] firefox doesn't allow file links [20:18:42] flyingparchment: i don#t know one that doesn't. though most don't support *remote* file links (whatever the TLA is for that microsoft convention) [20:18:56] flyingparchment: sure, local file links work fine in ff [20:19:07] though... maybe not if the file itself doesn't come from the fs? [20:19:08] Duesentrieb: do I put that line in LocalSettings.php? [20:19:11] Duesentrieb: what is a 'remote file link'? [20:19:17] XDuxaX: yes. near the end. like all settings. [20:19:30] Duesentrieb: the old faq listed mozilla/ff as not accepting file links [20:19:32] flyingparchment: file://foo/c:/something [20:20:01] flyingparchment: o_O i would be surprised. let me check. [20:24:24] It definitely accepts them, although maybe not in all contexts. [20:24:30] flyingparchment: ha, yea, we are both right - it of course supports file: in the address bar, and it does support file links too, but only if the page that has the link is loaded from a file: address. if it's loaded from http:..., the file: links are dead. [20:24:32] Possibly not from the Web. [20:24:41] Duesentrieb: that's what i mean [20:24:45] yep, not even from localhost [20:25:05] afaik there's an extension for this though (even for MS "remote file links") [20:25:34] 03sanbeg * r27353 10/trunk/extensions/AssertEdit/AssertEdit.php: remove obsolete var [20:30:17] another mediawiki, without having to go in and re-save every single page is there any way I can mass-update the wiki to calculate all the wanted pages? [20:30:23] another mediawiki question* [20:31:23] calculate? [20:31:30] get me? [20:31:33] nope [20:31:41] no? there's no way to do that? [20:31:48] i have no idea what you want to do [20:32:04] I downloaded the wikipedia xml backup, and imported only selected pages matching my regex [20:32:12] kingtoad: php maintenance/updateSpecialPages.php or so [20:32:13] some pages were redirects so I didn't get all the stuff I want [20:32:22] and some have links because they didn't match the regex [20:32:23] or maintenance/refreshLinks.php [20:32:29] :o [20:32:32] ok, will try that [20:33:02] 03sanbeg * r27354 10/trunk/extensions/AssertEdit/AssertEdit.php: rm close tag [20:34:56] Wantedpages got 558 rows in 0.06s [20:34:59] :) [20:35:00] ty [20:37:08] hi! my mediawiki crashed and returns error 500; before doing this it worked, then created core files - [20:37:47] *Romihaitza says any idea anyone? [20:38:54] *Hojjat kicks CIA-37 softly [20:39:36] Romihaitza, MediaWiki has no control over things like error 500. Check your Apache error log. [20:40:21] nothing there [20:41:04] it still creates core files [20:41:26] Romihaitza, MediaWiki cannot create core files. It's Apache or something doing that. [20:42:51] Simetrical: any idea on what to do? [20:43:08] it is possible to be a version conflict [20:43:38] if i take out .htaccess, it says Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/webaward/public_html/includes/Exception.php on line 139 [20:43:51] Romihaitza, then the error is in .htaccess. [20:44:03] Romihaitza, at least the error causing you to get a 500 response code. [20:44:22] Romihaitza, there will be something in the Apache error log, if Apache is configured to log fatal errors. [20:44:49] [Fri Nov 9 14:41:25 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:49] [Fri Nov 9 14:40:32 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:49] [Fri Nov 9 14:34:47 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:50] [Fri Nov 9 14:34:42 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:53] [Fri Nov 9 14:32:43 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:56] [Fri Nov 9 14:28:02 2007] [error] [client 89.137.98.49] File does not exist: /home/webaward/public_html/500.shtml [20:44:59] that's [20:45:01] all [20:45:10] What came before? Use a pastebin. [20:45:43] i can't - i only have access to cpanel error log [20:46:58] 14(INVALID) New accesskey for "Preview" button in edit pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11864 +comment (10Simetrical+wikibugs) [20:47:22] it is mediawiki 1.8.2 - [20:47:59] Romihaitza, ah. Well, MediaWiki *cannot* cause 500 server errors. By the time Apache executes MediaWiki, the window for 500 error messages has generally passed. [20:48:05] The 500 error lies in your .htaccess. [20:48:26] 03(mod) New accesskey for "Preview" button in edit pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11864 (10huji.huji) [20:48:30] # -FrontPage- [20:48:30] IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* [20:48:30] [20:48:30] order deny,allow [20:48:30] deny from all [20:48:30] allow from all [20:48:31] The parse error is on the level of MediaWiki. I would advise you to make sure you've correctly copied all the files exactly, and be sure you're using PHP 5. [20:48:32] [20:48:34] [20:48:36] order deny,allow [20:48:38] deny from all [20:48:39] Romihaitza, please don't post long things here. [20:48:40] [20:48:41] Use a pastebin. [20:48:42] AuthName www.webaward.ro [20:48:44] AuthUserFile /home/webaward/public_html/_vti_pvt/service.pwd [20:48:46] AuthGroupFile /home/webaward/public_html/_vti_pvt/service.grp [20:49:04] And I don't know how to debug that, ask in #apache. I've never used most of those features. [20:49:56] :-( [20:50:00] ok, thanks [20:52:26] 03(mod) assigning an id to the "rollback" link - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11472 +comment (10Simetrical+wikibugs) [20:52:31] 03(mod) assigning an id to the "rollback" link - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11472 (10Simetrical+wikibugs) [20:59:21] 03(FIXED) Wrong "page already exists" error message when preload page doesn't exist - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11888 +comment (10yaron57) [21:00:00] 03(mod) PRE lower border not shown - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11465 +comment (10Simetrical+wikibugs) [21:00:11] 03(mod) PRE lower border not shown - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11465 (10Simetrical+wikibugs) [21:05:32] 03(mod) PRE lower border not shown - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11465 (10huji.huji) [21:05:41] 03(mod) New accesskey for "Preview" button in edit pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11864 (10Simetrical+wikibugs) [21:06:33] 03(mod) New accesskey for "Preview" button in edit pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11864 (10huji.huji) [21:11:23] 03(FIXED) A dropdown for optional/mandatory messages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11138 +comment (10niklas.laxstrom) [21:15:35] 03(mod) Special:Uncategorized... pages don' t display red links for nonexistent pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11400 15enhancement->minor; +need-review +patch; summary; +comment (10Simetrical+wikibugs) [21:17:22] 03(mod) PRE lower border not shown - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11465 (10Simetrical+wikibugs) [21:23:16] 03(mod) Special:Uncategorized... pages don' t display red links for nonexistent pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11400 (10huji.huji) [21:23:32] Simetrical|away: thanks for your replies [21:29:30] :/ [21:29:43] how long does refreshLinks.php take? it's still doing it like 30 minutes later [21:31:19] 03huji * r27356 10/trunk/phase3/languages/messages/MessagesFa.php: Commiting changes from BetaWiki. [21:33:29] 03nikerabbit * r27357 10/trunk/phase3/includes/SpecialPreferences.php: E_STRICT [21:39:42] 03(mod) Database for interwiki - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11423 +comment (10chuck) [21:53:35] oh man, this is the n'th time that it happened to me that non-logged in users see "Jump to: navigation, search" above every page, and i always notice quite late, cause im always logged in, it is something that happens by having one newline too much in an extension file or something like that but i forgot [21:55:28] meow [21:57:35] Is it possible to embed an image map into a wiki page that can have links to other wiki pages? [22:00:42] hi not sure if this is right channel but I got a problem with a link containing a =, can't put it inside a template. Not sure what the right channel to ask is. Not #wikipedia I think because it isn't wikipedia, just a mediawiki running wiki [22:00:58] 03(NEW) Default signature should be customizable - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11913 15enhancement; normal; MediaWiki: Page editing; (cbeckhorn) [22:01:07] the link is external [22:03:30] anyone? [22:03:55] FuzzyB: http://www.wikihow.com/Use-the-MediaWiki-ImageMap-Extension [22:05:03] AnMaster: hmm, have a link to the template? [22:05:07] a sec [22:05:19] http://www.inspircd.org/wiki/Modules/namesx someone used = that doesn't work [22:05:23] I'm trying to fix the page [22:05:41] the link is in the last section to some forus [22:05:43] forum* [22:06:12] mutante, the used template (that I can't make any large changes to): http://www.inspircd.org/wiki/Template:Module [22:06:31] I think you have to register to edit on that wiki [22:07:53] mutante, :) ? [22:08:25] yeah, but even that doesnt allow me to [22:08:35] not even preview..cause its locked [22:09:00] mutante, indeed [22:09:04] nothing I can do about that [22:09:11] mutante, I'm not admin there [22:09:13] 03(mod) Set language and projectname for Lak Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11890 (10jeluf) [22:09:26] mutante, I just got permission to edit locked pages [22:09:40] not to unlock (mediawiki may treat it as one, the owner of the wiki wouldn't) [22:10:15] i would have tried %3D% instead of = [22:10:24] ah, will try [22:10:49] http://klient.com/forums/showthread.php?threadid%3D%3399 does sadly not work? [22:11:13] *AnMaster is not good at this things [22:11:30] uhm, try this: http%3a%2f%2fklient.com%2fforums%2fshowthread.php%3fthreadid%3d3399 [22:11:33] :p [22:12:34] k a sec [22:12:38] how would I secure LocalSettings.php? What happens in the case php is screwed up and starts displaying php files as text files? [22:13:02] blue_asterisk: put it outside the docroot and create a dummy file that just does include("/my/other/localsettings.php") [22:13:19] ah, cool idea [22:13:35] 03(WONTFIX) Change default MediaWiki text for Wikimedia projects - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11912 +comment (10jeluf) [22:13:55] hm [22:14:01] 03(NEW) Change the 'userrights' requirement by 'passwordreset' in the PasswordReset extension - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11914 15enhancement; normal; MediaWiki extensions: General/Unknown; (robin_1273) [22:14:07] hehe, I have multiple installations though [22:14:12] mutante, no doesn't linkify at all [22:14:28] mutante, there must be some way? [22:14:41] if the mysql user in there is restricted to just the wikidb, and the mysql server listens on localhost only, nothing so bad would actually happen, and what else is there to hide in there.. just btw [22:14:57] AnMaster: sorry, i guess the creator of the template must help [22:15:08] mutante: my localsettings has several other passwords needed for extensions [22:15:15] mutante, hm generic template case IMO [22:15:47] mutante, how to embedd a link in a template that contains a =. you can embedd a = with but that breaks the link [22:15:48] 03(mod) Change the 'userrights' requirement by 'passwordreset' in the PasswordReset extension - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11914 (10raimond.spekking) [22:16:13] mediawiki mess up with named paramters or whatever it is called I suspect [22:16:19] like {{foo|a=b}} [22:16:38] |notes=Listed here are the technical details of the NAMESX protocol extensions. The original text (cite codemastr) can be read on [http://klient.com/forums/showthread.php?threadid%3d3399 the forums for the klient IRC client]. [22:16:45] named parameter [22:16:55] must be easy to reproduce? [22:17:00] AnMaster: if you think its a general mediawiki problem, best is probably to create it as a bug on http://bugzilla.wikimedia.org , afraid i cant help much myself [22:17:49] mutante, hm, will try it on another wiki, when I get time to setup one, only have lighttpd and postgre installed on my test computer, hope mediawiki works nice with those [22:18:05] will try tomorrow [22:18:07] night [22:18:18] AnMaster: Easiest fix is to create a template such as {{+}} or something whose content is "=" [22:18:37] amidaniel, eh? [22:18:59] AnMaster: See, for example, [22:19:01] Same basic concept [22:19:13] ah [22:19:22] amidaniel, IMO that shouldn't be needed [22:19:28] AnMaster: https://s23.org/wiki/Testpage [22:19:44] https://s23.org/wiki/Template:Test [22:19:44] 03(mod) Set language and projectname for Lak Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11890 (10alexander.sigachov) [22:19:56] mutante, sorry you misunderstood [22:19:58] I think [22:20:12] it is not in the template the = is, it is in a named parameter when using the template [22:20:23] AnMaster: "Shouldn't be" is a nice world to live in :) [22:20:45] flyingparchment: DefaultSettings would have to move too [22:20:49] {{Test|a=[http://foo.bar/aaa.php?blah=quux some text]}} [22:20:51] blue_asterisk: no it wouldn't [22:20:59] where that template is valid [22:21:02] hmm [22:21:08] it will not display correctly [22:21:13] amidaniel, so how to solve the above ^ [22:21:17] AnMaster: well, feel free to test it ...:p distracted over here [22:21:40] flyingparchment: ah, just change it from LocalSettings.php (the moved one) [22:21:42] mutante, on that wiki is ok? [22:21:51] yep [22:23:20] hehe, there are other dependent files to include too [22:24:31] AnMaster: worksforme [22:24:38] http://amidaniel.com/testwiki/index.php/Foo [22:24:47] mutante, different mediawiki version, maybe? [22:24:54] amidaniel, I meant [22:24:55] flyingparchment: did you have to modify DefaultSettings.php [22:25:03] AnMaster: Could be. What version are you on? [22:25:15] blue_asterisk: never, ever edit defaultsettings [22:25:23] maybe I can just symbolic links [22:25:33] *use [22:25:33] amidaniel, will check, I don't own the wiki, just edit there as a trusted editor [22:25:38] http://www.inspircd.org/wiki/Special:Version says 1.8.2 [22:25:46] I won't be able to get the owner to upgrade [22:26:00] because the way the themes needs to be redone from scratch he says [22:26:19] if a custom theme like that site would work out of box on new version it would be different probably [22:26:38] flyingparchment: how did you implement this? I'm putting my LocalSettings in /etc; I'm thinking I should create symbolic links to missing files in /etc [22:26:41] Has he tried it? There haven't been too many problems with skin breakage [22:26:54] The only skins that break are those that are implemented poorly, for the most part [22:26:58] blue_asterisk: why would you need any symlinks? [22:27:03] amidaniel, he got enough from 1.6 to 1.8 probably [22:27:15] or maybe it was 1.4 to 1.6 [22:28:09] flyingparchment: 1.11 version of LocalSettings.php includes DefaultSettings.php which depends on another file and possibly others [22:28:43] flyingparchment: DefaultSettings.php in not in the same directory as LocalSettings.php anymore [22:29:04] blue_asterisk: Then you modify LocalSettings.php to point to the new location of DefaultSettings.php [22:30:33] amidaniel: yes I did that, but then DefaultSettings.php depends on other files as well; I don't want to be adding absolute paths to all dependent files [22:31:49] hmm, looking to see if I can do this in a smarter way [22:33:37] ah, I got it [22:34:14] modify $IP in LocalSettings.php to be the absolute path to the directory containing all the mw php files [22:34:22] put an include("... in the LocalSettings.php at the default location? [22:34:44] thanks all [22:35:19] this is cool hack [22:35:23] amidaniel, mutante actually the problem is simple to solve: allow escaping chars. you could have like {{template|a=\}\}}} then [22:35:28] end of problems [22:35:34] works for loads of computer data [22:36:10] \ would become \\ [22:36:21] AnMaster: does it work on newer versions yet? [22:36:22] s/cool/a cool/g [22:36:31] mutante, can't try yet [22:36:36] will try tomorrow [22:36:43] it is late in this timezone [22:36:56] actually late enough to soon be early [22:39:20] blue_asterisk: Ummm ... wow ... no, I'd recommend you not do that [22:39:39] amidaniel: no? how come? [22:39:52] DefaultSettings.php references its includes by relative paths -- relative to itself. It will be able to sort them out [22:40:06] blue_asterisk: Because screwing with $IP is going to break lots of other things, I guarantee [22:40:49] AnMaster: Escaping is already supported in its own way -- for special chars the html/unicode equivalent can be used. [22:41:52] 2 lines from LocalSettings.php: [22:41:54] # If you customize your file layout, set $IP to the directory that contains [22:41:58] # the other MediaWiki files. It will be used as a base to locate files. [22:42:26] amidaniel: do you think it will break things still? [22:43:50] blue_asterisk: If you have it set to the root of your mediawiki install, if you have it set anywhere else expect trouble [22:44:04] Why are you moving LocalSettings.php out of the wiki root, might I ask? [22:44:47] amidaniel: if php fails and displays php files as plain text, passwords are exposed [22:45:13] blue_asterisk: fwiw, i prefer moving the entire mediawiki directory somewhere else [22:45:16] hmm, nobody remembers the "Jump to: navigation, search" on top of every page, thing? [22:45:29] blue_asterisk: then use this as index.php: [22:45:34] blue_asterisk: So then move the sensitive information out of LocalSettings, shouldn't be any reason to move the entire file [22:46:28] hmm, both very good ideas [22:46:41] you'll need to symlink skins/ if you do that (and maybe images/, math/ if you use those) [22:47:43] I like amidaniel's idea better [22:47:57] no offense flyingparchment ;-) [22:48:21] well.. hmm [22:49:05] hmm, makes me think of just keeping an MD5 hash in the file instead of clear text pass [22:49:26] yeah, amidaniel's idea is simpler and less likely to break things [22:49:35] thanks again [22:49:39] mutante: but you can't log in with an md5 hash of the password [22:49:54] and if you could, it wouldn't be any more secure [22:50:06] cause of the reverse lookup databases... [22:50:31] mutante: no. if php can log in directly using the hash, so can anyone else who knows the hash. it's not an improvement. [22:50:59] mutante: mediawiki has to have a *secret* to be able to log in. there's no way around that. [22:51:00] uhm, got it [22:51:45] you could log in with an SSL certificate, but you'd still need to keep the certificate private [22:51:48] modern crypto allows us to avoid seding that secret around, or storing it in multiple places. but it still has to exist, and be protected [22:51:55] (not sure php actually supports that, and i know mediawiki doesn't, but mysql does) [22:52:46] so the password could be encrypted with a public key of the mysql server ? [22:52:53] no, there isn't a password [22:53:08] the client authenticates using public-key encryption, like ssh (but with ssl certificates instead of ssh keys) [22:53:57] done [23:04:57] I want to create a custom page inside of mediawiki's root directory but I'm getting "This file is part of MediaWiki and is not a valid entry point" when I try to access it; how do I get around this? [23:06:34] i just tried running php maintenance/rebuildImages.php in my MW directory, and it gave me this message DB connection error: Access denied for user 'root'@'localhost' (using password: what is going on? [23:06:57] hexvoodoo: check AdminSettings.php [23:07:11] thx will do it now [23:08:15] hexvoodoo: well, does it say "using password: yes" or "using password: no"? [23:08:22] it seems somehow the "Enable "jump to" accessibility links" setting is enabled for every non-logged in user, how could that have happened accidentally [23:08:37] i don't have that file. i'm looking at AdminSetting.sample [23:09:27] looks like i need to convert that to AdminSettings.php [23:09:29] hexvoodoo: yes, do that. you'll need to create it in order to run maintenance scripts. however, i wonder how then mediawiki got the idea it should be using the root account. i hope you are not using it for normal web server... [23:10:48] i'm running a dedicated server, when i set up the wiki i used the root account. maybe that's why. i see 3 fields in AdminSettings. i guess i should set $wgDBadminuser to root, $wgDBadminpassword to the root pw? [23:11:36] or should i set them to the actual MW db user and pw in localsettings? [23:12:28] if anybody is interested, you have to use "define( 'MEDIAWIKI', 1 );" if you want to use a custom page inside mediawiki's root dir [23:12:36] it appears so anyway [23:14:45] blue_asterisk: yes, this is used to explicitely mark valid entry points. so you need to do it if you want to use any part of mediawiki. [23:21:57] whenever i try to change the permission of LocalSettings.php to 600 in ftp, i get a 500 Operation not permitted error. is this normal? and is it safe to leave LocalSettings.php at 666? [23:23:27] no its not safe [23:23:40] it should not be writable for anyone but you [23:23:42] hexvoodoo: it's probably owned by the web server [23:23:50] hexvoodoo: you're using lame shared php hosting, right? [23:23:54] and if you don't own it, you can't chmod it. [23:24:59] no it's my dedicated server. that's the only file i couldn't chmod. i could do it for other files [23:25:07] probably a server problem. i'll contact my host [23:26:56] My site just went belly up... how do I pass the parameter of one template to another? [23:27:42] is it a known problem that when an xml containing protected pages is imported into another installation, all permission levels are lost? [23:28:00] I am trying a call like {{my template A | one=some string}}, which, in "my template A" is passed on as {{my template B | two = {{one}}}} [23:28:16] but it doesn't work. [23:28:26] I remember reading about this, but I forgot how to do it [23:28:40] hexvoodoo, sounds right [23:28:50] you need to set up the permissions on both installs [23:29:26] the odd thing is, in the xml i can see the permission levels (sysop). and it's really tedious to protect pages again [23:30:29] hexvoodoo, hmm... [23:30:36] are you going across versions? [23:30:55] yes, from 1.9.1 to 1.11.0, is that the problem? [23:31:30] weird thing now is that I set it like {{my template B | two = {{1}}}}, but I still read (literally) "{{{one}}}" in the calling page. [23:31:38] hexvoodoo, maybe... I am not sure. [23:32:02] hexvoodoo, did you play with permissions and groups on either site? [23:32:20] and are you importing as sysop ? [23:32:32] I guess you need to be right? [23:32:50] where is the manual page for calling templates from templates? [23:33:10] yes only sysop can import. pages were protected by me on the old installation and i'm importing as sysop on the new installation [23:33:46] xml clearly shows permission levels, but imported pages end up unprotected. maybe it's a known bug [23:34:11] I don't known [23:38:01] not sure of import of protection levels is even supported... if it is, it should be optional. [23:38:10] having it may be as big a pain as not having it [23:40:32] but if you want to strip protection, you can simply mass delete the tag in the xml right? [23:40:56] the way it is now. i ended up having to manually protect many pages again [23:41:37] the tags are present in the xml, so i think they are intended to carry over. but for some reason they didn't [23:49:19] dang... my computer shut down on me [23:49:36] I was trying to read for the solution to my template dilema [23:50:17] to be clear, how do I pass a parameter from one template call to another? [23:51:04] http://meta.wikimedia.org/wiki/Help:Template [23:52:01] can I even do it? the toc dosn't look helpful [23:52:22] I mean it dosen't look promising [23:54:24] 03(NEW) SQL Error On The MamboWiki Component - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11915 04BLOCKER; normal; MediaWiki: Installation; (knightcon_2004) [23:55:52] would this be the correct query to select all pages starting with 'A'?: "select page_title from prefix_page where page_namespace=0 like 'A%';" [23:56:09] 03(mod) SQL Error On The MamboWiki Component - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11915 +comment (10knightcon_2004) [23:56:18] blue_asterisk, you got your sql wrong I think [23:56:39] how do I do the SQL LIKE? [23:56:58] assuming the tables and fields are right, try this... [23:57:31] select page_title from prefix_page where page_namespace=0 and page_title like 'A%'; [23:57:48] ah [23:57:51] and [23:58:01] and and the field name [23:58:18] also note that LIKE is slow. [23:58:33] Duesentrieb, you got a better query? [23:58:35] if you don't have it at the beginning of the pattern, it *may* not be so bad [23:58:38] facefaceface: no. [23:58:41] it's just slow [23:58:42] ;-) [23:58:50] Duesentrieb: how would you do it? [23:58:53] people always badmouth regexp ;-) [23:58:53] people should just know, and avoid it [23:58:59] blue_asterisk: i wouldn't do it. [23:59:02] hehe [23:59:03] Duesentrieb, so avoid it [23:59:08] 03(NEW) Add a Mediawiki: entry for the default user sig - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11916 15enhancement; normal; MediaWiki: General/Unknown; (dragons_flight) [23:59:08] i do :) [23:59:10] oh... he just did [23:59:16] I'll just cache it then [23:59:23] and when the boss slaps you round the head ;-) [23:59:27] I mean ? [23:59:34] dam, I use smilies too much [23:59:35] blue_asterisk "A%" is slow, "%A" is terrible. [23:59:41] facefaceface: :) [23:59:46] yeah [23:59:47] hehe [23:59:49] A% should be pretty fast [23:59:54] I at least knew that [23:59:58] although depends on how many articles [23:59:59] blue_asterisk, its not so bad on less than 1000's of rows.