[00:59:40] !dump [00:59:40] For information on how to get dumps from Wikimedia Wikis, see http://meta.wikimedia.org/wiki/Data_dumps . For a how-to on importing dumps, see https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps . [00:59:48] !backup [00:59:48] See http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki for information about backing up your wiki. For restoring your wiki, see http://www.mediawiki.org/wiki/Manual:Moving_a_wiki#Import_the_database_backup for more. If you don't have database access, try !grabber. [03:32:12] Hello [03:32:53] Question, what should I do to get the contents of a special page (say, Special:UnusedCategories) in text? [03:35:22] Vicyorus: You mean wikitext of html? [03:35:25] *or [03:36:10] Wikitext [03:38:01] GEOFBOT|busy: you cannot get it in wikitext, but you can grab the contents of the list using API [03:38:03] Oh, nevermind, it seems the API can do it [03:38:06] https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=querypage&format=json&qppage=Unusedcategories [03:38:11] oops, accidentally pinged myself [03:38:16] Heh [03:39:04] Well, in my case, /api.php?action=query&list=querypage&qppage=Unusedtemplates&format=json did the trick [03:39:29] Nevermind [03:39:43] Thanks! [07:12:33] When I moving a page, should it add redirect to the new page automatically or not? [07:42:05] wicktt, that's your choice! say yes if there are references to the old pagename that you dont/cant change, otherwise no [07:46:08] hey guys [07:46:29] how do i add [mailto|...] to the sidebar?? [07:46:29] *[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text Contribute an article] [07:46:29] i tried this but it is not showing [07:46:57] !sidebar [07:46:58] To edit the navigation menu on the left, edit page [[MediaWiki:Sidebar]] on your wiki using its special syntax (see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar for details). If you need more control, you can use the SkinBuildSidebar hook (https://www.mediawiki.org/wiki/Manual:Hooks/SkinBuildSidebar). [07:47:05] four: basically [07:47:13] the same way you'd do an http link [07:47:23] *mailto:foo|text here [07:48:04] i'm having troubles with images on a wiki farm. I have $GLOBALS['wgUploadDirectory'] = "{$IP}/../sites/$sitename/images"; ... in my log I get "GET /sites/demo.myoffice.wiki/images/thumb/MyOffice_Logo_800_x_569.jpg/120px-MyOffice_Logo_800_x_569.jpg HTTP/1.1" 301 [07:48:40] and also "GET /Sites/demo.myoffice.wiki/images/thumb/MyOffice_Logo_800_x_569.jpg/120px-MyOffice_Logo_800_x_569.jpg HTTP/1.1" 404 [07:48:50] hypergrove: What do you have $wgUploadPath set to? [07:49:00] hypergrove: what do you mean by saying 'say yes/no'? There is a checkbox somewhere? [07:49:12] $GLOBALS['wgUploadPath'] = "/../sites/$sitename/images"; [07:49:53] wicktt, yes there's a checkbox when you move a page [07:49:55] hypergrove: Change $wgUploadPath to where you want requests for images to be made to [07:50:18] it should be $GLOBALS['wgUploadPath'] = "{$IP}/../sites/$sitename/images"; ?? [07:50:26] hypergrove: no [07:50:55] $IP is the directory. wgUploadPath is used for generating urls to images [07:51:11] $IP is the directory on your computer where MediaWiki is installed [07:51:38] The capital S in the GET line you posted, suggests that possibly short urls are interfering with things [07:51:59] hypergrove: If someone was to access the image directly by url, what url would they type? [07:53:08] bawolff, there are two alternatives i think of (1) create redirects for sites in $IP/sites (2) create redirects for sites in $IP/images [07:53:59] I don't understand [07:55:23] MediaWiki isn't magic. If you change the location of the default image directory, you're going to need to tell mediawiki where you changed it to, or it won't work [07:55:36] (1) http://demo.myoffice.wiki/sites/demo.myoffice.wiki/images/an-image.jpg (2) http://demo.myoffice.wiki/images/demo.myoffice.wiki/images/animage.jpg [07:56:35] let me ask this way. Is it required/mandatory that images be placed in a subdirectory of $IP? [07:56:46] no its not [07:57:05] you do have to place them somewhere web accesible [07:57:22] images don't even have to be served from the same domain [07:58:58] hypergrove: Looking at your website, it looks like your rewrite rules is overriding requests for images [07:58:58] hypergrove: I dont have it. Could it be because of Translate extension or default Ru wiki lang? [07:59:17] try disabling those until you fix images [07:59:56] wicktt: Depending on your user rights, you might not get the checkbox [08:00:41] ok I will work on that, thank you bawolff [08:01:16] wicktt: If you have the suppressredirect right (usually default for admins only), you have a checkbox for if a redirect should be created. Otherwise a redirect should always be created [08:10:19] bawolff, there's gotta be a trick here I'm not understanding because I thought the url for the image directory must be a subdirectory of the DocumentRoot for the site? Is it actually okay to reference the parent directory to the DocumentRoot directory, eg http://sitename.org/../../images ? [08:10:52] no, that's not ok [08:11:15] in http, references to relative paths below the root are usually considered to be the root [08:11:22] So http://sitename.org/../../images = http://sitename.org/images [08:12:12] To clarify my earlier response, $IP is not the same as the DocumentRoot. You can have things below $IP. You can't have things below the document root [08:13:22] bawolff, is the preferred method then to have a redirect within the /images directory to a directory outside the DocumentRoot? [08:13:38] Are you using apache? [08:13:41] yes [08:13:51] use the alias command [08:14:17] very good -- i'll check it out! [08:14:26] alias /image/ /path/to/images/ [08:14:31] http://httpd.apache.org/docs/2.2/mod/mod_alias.html [08:16:01] looks perfect, thank you bawolff [08:30:18] now getting "GET /File:MyOffice_Logo_800_x_569.jpg HTTP/1.1" 500 3043 "http://demo.myoffice.wiki/Main_Page" ... $GLOBALS['wgUploadPath']="/images"; ... Alias /images /home/demo.myoffice.wiki/wiki/images [08:31:36] and the cache is unhappy too with ... Alias /cache /home/demo.myoffice.wiki/wiki/cache ...and... $GLOBALS['wgCacheDirectory'] = "{$IP}/cache"; [08:32:44] oh let me add trailing slash and see [08:33:32] hypergrove: The cache directory should not be web accessible (for security reasons) [08:33:42] for 500 errors, see [08:33:44] !blankpage [08:33:44] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [08:33:56] that is, check your php error log [08:34:33] yep ... Unable to open CDB file for write "/var/www/core-251/cache/l10n_cache-en.cdb" [08:36:50] your link says "Note that you may need to specify additional sections which cover the destination of aliases. " -- sounds like that's what may be needed [08:38:03] The cache directory is not accesed via the web. The apache config is irrelavent [08:38:34] you should verify the unix file permissions on the cache directory and its contents [08:38:43] and also ensure that selinux isn't interfering [08:39:18] The cache directory should probably be owned by the user that php is being run as (usually www-data) [08:40:21] bawolff, can the cache directory be shared by multiple wikis, one directory for all wikis in a farm? [08:41:18] hypergrove: generally yes, but all such wikis would have to have the same version of mediawiki, and the same extensions installed, or it could cause problems [08:42:46] and using one directory is probably incompatible with the file cache feature [08:43:11] but in terms of l10n cache, it might actually improve efficiency to use one directory, as then more wikis can share the same cache [08:45:10] reset cache permission to www-data; exception is gone [08:45:25] and removed alias for /cache/ [08:55:52] I tried http://demo.myoffice.wiki/images/MyOffice_Logo_800_x_569.jpg ... and it displays "http://demo.myoffice.wiki/Images/MyOffice_Logo_800_x_569.jpg" (notice capital I) and "There is currently no text in this page" [08:56:51] I've seen this capitalization before -- any idea why that occurs? [08:58:15] i guess that's the rewrites at work [08:59:41] If mediawiki is handling the url as if it is an article, then it will get redirected to a capital, as articles start with capital letters [09:00:07] I don't know how you have rewrite rules set up, but you need to make an exception for /images, so that the redirect rules do not trigger on that path [09:08:29] What to do with categories for translateable pages? Is there any 'Best practices' or something? [09:09:31] bawolff, i need to resolve another problem to get clarity here on this problem, but I'm still getting "GET /Images/MyOffice_Logo_800_x_569.jpg HTTP/1.1" 404 [09:10:06] comment out whatever rewrite rules you have to make short urls work [09:11:01] Should I include categories into the translate tag and then put translated pages (Pagename/lang) into the red categories for this /lang? Or pu it outside translate tag and have the Page and its /lang versions in same category? [09:52:37] Hi. Do you know how MediaWiki behaves when: 1) I have page A with link to NON-EXISTING page B. 2) I create page B. => When is the change (the anchor change from red to blue) visible on page A? [11:07:30] hello, could anyone please help me debug the wiki at http://wiki.wurstmineberg.de/ ? I'm not finding anything related, just this thread https://www.mediawiki.org/wiki/Thread:Extension_talk:DumpHTML/PostgreSQL_and_Mediawiki_1.12.0 with people asking the same thing [11:20:18] Fenhl, https://www.mediawiki.org/wiki/Manual:How_to_debug [11:20:38] Fenhl, (though "Cannot contact the database server: No database connection" is pretty clear, IMHO) [11:47:25] andre__: I can log in to the database as the specified user and password from the console [11:48:11] andre__: trying to upgrade to 1.25.1 now, update.php says "DB connection error: No database connection" [11:53:31] enabled $wgShowDBErrorBacktrace [11:55:49] not sure how that's supposed to help, I certainly can't see anything relevant in the trace, but maybe someone here could help? [11:58:37] maybe the problem is that MediaWiki is trying to use a TCP socket to connect to the db, but the postgres server is configured to only accept connections on unix sockets? Is that how MediaWiki works? [12:00:31] no, according to https://www.mediawiki.org/wiki/Manual:$wgDBserver that's not the problem [12:03:02] and I just checked, the postgres server accepts TCP connections on localhost, both IPv4 and IPv6 [12:08:58] fwiw, i use postgreql 9.4 and was able to upgrade from 1.24 to 1.25 without incident [12:09:15] perhaps something messed with your pgsql configuration [12:10:40] well we switched from Apache to nginx, upgraded Debian from wheezy to jessie, updated postgres from 9.1 to 9.4, and at that point the wiki wasn't working anymore already [12:10:59] upgrading to 1.25 didn't change that [12:12:29] i would guess that something changed between 9.1 and 9.4 that is making it act differently from what you expect [12:13:06] Is it possible that an extension that modifies the database can make the wiki unusable unless that extension remains installed? [12:13:43] yes, but it would not make the database completely inaccessible [12:14:17] So it's a good idea to keep the downloaded extensions, but the database is nonetheless still fixable? [12:14:45] it depends on what the extension did [12:14:54] That's what I expected, thanks. [12:15:30] an extension could completely trash the database if it wanted to [12:16:03] I'm just trying to figure out whether to steer clear of database modifying extensions on a wiki who's information may be critical [12:17:08] if the extension is well-known and stable, then it isn't likely to be an issue [12:17:20] regular automated backups are always a good idea in any case [12:18:09] Of course, I just don't want to be dependent on an extension that may become incompatible or abandoned in the future [12:20:29] it really depends on what the extension does [12:20:42] too hard to say how risky it is without research and testing [12:22:07] The reason I'm asking is to know if there's some sort of providence on the side of the api for extensions, that prevents them from making sweeping changes that would introduce incompatibility [12:22:23] since it clearly doesn't, the approach is of course to know what you're installing and doing [13:47:37] Is there any 'Best practices' for categories at translateable pages? [13:48:33] Should I include its category into the tag to prevent localised pages appear in main category& [13:49:24] Or I have to translate them and for translated pages set it as Category/lang and do it for every lang I have in my wiki? [13:50:50] Note: I'm thinking about creating pages at 'target' lang with {{:page/lang}} inside. [15:52:56] I'm confused about the frame format for images [15:53:11] how do I make the maximum image size smaller [15:54:37] OutputPage has a member method isArticle(), does it return true only for output pages associated with MAIN namespace pages? [16:03:03] RobotsOnDrugs: yeah but how do I even figure out what changed? [16:04:18] release notes [16:16:56] RobotsOnDrugs: nothing in there that seems related [16:17:20] already checked them [16:17:25] no idea, i started with 9.4 [16:20:19] https://www.mediawiki.org/wiki/Manual:Upgrading_Postgres is outdated [18:44:23] Nikerabbit: "The Translate extension depends on the Universal Language Selector extension" https://phabricator.wikimedia.org/T105048 says it was resolved by rolling-back last deployment. But I still see the error on mediawiki.org. The rollback hasn't been deployed yet or it is broken again? [18:46:04] Vulpix: I am sorry about that, I thought fix would have been deployed in today's SWAT [18:47:03] ok, will wait, then [18:48:37] Vulpix: let me see if I can get this fixed earlier than in 22 hours... [18:48:51] ok, thanks :) [19:00:53] Vulpix: darn it's broken on meta as well [19:28:25] thanks for the fix [19:29:05] Hello dear friends! [19:29:29] Vulpix: fixed, thanks for the report [19:29:44] On page https://wiki.gamepaduniverse.com/wiki/Binding_State I two level 3 headers that are [19:30:00] "up" but when i want to link them on other pages of the wiki i only grab the first one [19:30:37] as in [[Binding State#Right|Right]] I want to go to Right in the thumbstick section of the page [19:30:46] thanks, that was fast! [19:31:10] [[Binding State#Thumstick#Right|Right]] apparently does not work [19:31:35] sneezelcharms: [[Binding State#Right_2]] [19:31:38] Vulpix: fix was ready, it just needed deployment [19:32:46] Vulpix:you the man! [19:34:23] sneezelcharms: that's not very intuitive, yes. There's a bug open about this somewhere... [19:37:29] Vulpix: I am unaware, I don't frequent the bugs section. I think it's more logical to drill down by headers but whateves. [19:45:34] How do I embed another page in page such as where I want the https://wiki.gamepaduniverse.com/wiki/Cursor_Left_Thumbstick page to always show with the lastest correction in https://wiki.gamepaduniverse.com/w/index.php?title=Default_Game_Left_Thumbstick [19:56:07] hello - is it ok to use a cache directory that is outside DOCUMENT_ROOT? [19:57:57] no problems... thanks for listening [20:00:22] glad to read your words [20:17:23] Any ideas, friends? [20:23:25] I'm looking for an extension to create arbitrary sections for editing, but which don't show up in the TOC [20:23:41] if you guys are familiar with DokuWiki, something like how that works [20:41:14] diginet: Hi! So basically editable or similar? [20:41:54] marktraceur: something like that yeah, I have a bunch of big sections that I don't want to split up, but which are tedious to edit since they are so big [20:41:59] Hmmm. [20:44:10] diginet: I'm pretty sure that doesn't exist but I want to imagine a way to do it [20:44:25] marktraceur: yeah [20:44:34] heh, same, I might have to try and write an extension [20:44:39] diginet: The "easiest" way might be to just have a magic word that splits a new section off but somehow refuses to add it to the TOC [20:44:46] Not sure if that's possible, you might need to tinker with core. [20:44:56] yeah, I'll take a look, thanks for the pointers [20:45:19] The less easy, more hacky way might be to have a fake magic word, or a
, that is magically recognized by a gadget and used for separating sections on the edit page [20:46:25] in the mean time: I have a separate issue :( I somehow broke my preferences page. I tried installing an extension, and I changed my LocalStettings file. Now when I try to get to the preferences page, I get an internal error warning. I deleted the folder with the new extension, and changed my LocalSettings bak, but I still get this error [20:47:07] is there anyway to get debug info? [20:49:13] !debug | diginet [20:49:13] diginet: For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [20:53:52] question related to toc, is it possible to manipulated toc's default class and id, which are "toc", I know its not so now, but that makes customizing toc difficult in an extension [20:54:06] so does that look like something that can be done?