[10:41:06] Hey folks, got one simple question: How the heck do I get that fancy theater effect when I click on an image like I do on Wikipedia? :D [10:51:28] Hey all, trying to debug a wiki I have exported as sql from an old bitnami release onto a new machine. I have enabled $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log"; as in the how_to_debug webpage and the first thing which stood out was this line: SQL ERROR: Table 'bitnami_mediawiki.objectcache' doesn't exist (localhost) [10:53:01] Betacommand: I have just found time to try to get back to solving this... [11:55:14] Parko: run update.php [12:03:44] Betacommand: [12:03:45] ...ipblocks table does not exist, skipping new field patch [12:03:45] ...ipblocks table does not exist, skipping new field patch [12:03:45] Creating interwiki table: MediaWiki internal error. [12:03:46] Exception caught inside exception handler [12:04:12] :/ [12:04:20] :-/ [12:05:19] Parko: what does the log show? [12:12:13] Betacommand: this is the log: http://pastebin.com/VJ4EsBwT [12:13:27] Parko: run maintenance/rebuildLocalisationCache.php [12:15:09] Betacommand: A database error has occurred [12:15:09] Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'ab' AND lc_key = 'deps' LIMIT 1 [12:15:10] Function: LCStore_DB::get [12:15:10] Error: 1146 Table 'bitnami_mediawiki.l10n_cache' doesn't exist (localhost) [12:15:48] Parko: OK, one sec [12:18:06] Parko: try doing a sudo php update.php [12:19:09] Betacommand: same thing. [12:19:22] do you have an adminsettings.php ? [12:20:08] within maintenance? nope [12:21:59] No in your main directory [12:24:15] in /var/www/html/w/ not there either :-/ [12:25:34] OK [12:26:05] open mysql and connect to your bitnami_mediawiki database [12:27:31] Then run http://pastebin.com/zpzRAvTz [12:29:12] Betacommand: Query OK, 0 rows affected (0.04 sec) [12:29:29] now try running update.php [12:30:30] Betacommand: k tried it without then with sudo, but still giving back: Exception caught inside exception handler [12:30:40] Parko: whats the error? [12:31:46] Betacommand: SQL ERROR: Table 'bitnami_mediawiki.objectcache' doesn't exist (localhost) [12:32:12] Betacommand: (recreated the log file) [12:33:02] Betacommand: I tried to create this from here: https://www.mediawiki.org/wiki/Manual:Objectcache_table but wasnt sure of constraints n stuff [12:33:12] Parko: run http://pastebin.com/GnyfQcM7 [12:36:02] Betacommand: added a semicolon - which I think was part of the problem when I tried..=-O something different happened! [12:36:16] ok... [12:37:12] Betacommand: this time in the browser it displays: [12:37:12] A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: [12:37:12] SELECT page_title FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ) AND (page_len > 10000) from within function "MessageCache::loadFromDB". Database returned error "1146: Table 'bitnami_mediawiki.page' doesn't exist (localhost)". [12:37:51] Parko: OK, something is wrong with your database export/import [12:38:14] I would drop the database [12:38:18] Betacommand: ok thats fun [12:38:34] re-export it from the old wiki [12:39:00] create the new empty database, and re-import it [12:39:02] Betacommand: k [12:39:18] looks like your first export missed a lot of data [12:49:12] Betacommand: these are the settings from phpmyadmin: http://i.imgur.com/OAEbYYj.png and http://i.imgur.com/niwnMtA.png was just going to select bitnami_mediawiki and export as SQL? [12:51:37] Parko: looks right [13:15:31] Betacommand: seem to be having some trouble importing a sql export into MariaDB [13:19:03] trying: mysql -u root -p bitnami_mediawiki < /home/ubuntu/Localhost.sql [13:19:32] which returns: ERROR 1007 (HY000) at line 21: Can't create database 'bitnami_mediawiki'; database exists dangit [13:51:42] ok so I exported the sql database with DROP DATABASE checked in phpmyadmin, then imported that using: sudo mysql -u root -p bitnami_mediawiki < /home/ubuntu/wikiDROP.sql [13:51:58] and holy quacamoly I have a homepage [13:58:18] Parko: good to know [14:03:43] Betacommand: next challenge upgrading from 1.16.5 to current?! [14:04:16] Parko: do it in .2 version chunks [14:04:51] so get 1.18 and extensions, then run update.php [14:05:03] once that works, move to 1.20 [14:05:12] Betacommand: also do u have a bitcoin deposit address, wanted to chuck a bit ur way for ur help [14:05:38] Parko: I dont, dont worry, this is what I do :P [14:06:00] Parko: Ive been around mediawiki since about 1.6 [14:06:41] Betacommand: ahh cool well thanks for ur help [14:07:02] Parko: I would stay at 1.23 as it is the LTS [14:07:38] Betacommand: is it necessary to add extensions for each step? [14:07:46] Parko: Yes [14:08:13] Parko: extensions can have their own database changes [14:08:40] stepping up in chucks reduces the probability of issues [14:18:08] Betacommand: cool [15:20:31] Is there a reliable alternative to mod_security? It's causing me some problems. [15:22:04] mod_security is good, but you need to configure it properly [15:34:04] That's just it, my host won't let me [15:34:42] Basically it tells me that I can either Shut it down or turn it back on. [15:39:09] if that's the only option, shut it down then [16:11:57] if an action=edit&redlink=1 is in the request, it means that the page will be in view mode if the page does exist and in edit mode, if it doesn't exist. correct? [16:12:21] or does redlink=1 have another purpose? [16:13:26] I believe that is correct [16:16:19] &redlink=1 is goofy. [16:18:37] hmm, looks like it looks for permissions as well. [16:19:11] https://en.wikipedia.org/w/index.php?title=Jo%C3%ABl_Jurion&action=edit&redlink=1 [16:19:15] The original idea was to make it less likely for a user to click a red link and think that they'd done something wrong. [16:19:16] when logged out, it leads to view mode [16:19:23] when logged in, it leads to edit [16:19:41] Because logged out users lack sufficient permissions, yeah. [16:29:24] I think the idea is simply to give action=edit only when you actually want it. If you click a red link on a stale cache but the page was created in the meanwhile, we can't tell whether you actually wanted to edit the page. [17:11:38] Hello [17:12:17] I want to do something which should be easy with mediawiki + multimediaviewer but I can't figure it out :( [17:12:46] I posted it here but maybe I did not explained it correctly : https://www.mediawiki.org/wiki/Project:Support_desk#Multimediaviewer_extension_-_how_to_use_description_rather_than_image_filename_52316 [17:33:38] this is boring, I just want my caption to be displayed when opening a picture not the filename :/ [17:37:24] keepna: we're on holidays. Apparently the people that know how that works isn't here [17:38:01] ok no problem, I wasn't complaining anyway but I don't get why I can't get something as easy as that to work :) [17:38:29] keepna: the MMV page say "You'll also likely want to download Extension:CommonsMetadata - it's not a hard requirement, but without it you won't get very much information in your lightboxes." [17:38:48] maybe that's the requirement to display the description of the image on the lightbox... [17:38:50] I installed it, I tried with and without [17:39:16] ok [17:39:35] actually the description of my image is displayed but I have to scroll with mouse to view it [17:40:28] but the first thing which is displayed is the picture filename and I d like to have my image description here and not filename [17:40:39] like on example page [17:40:40] https://www.mediawiki.org/wiki/Help:Images [17:40:55] if you click on a picture it will display "Tournesols" not filename [17:41:14] so that's weird for me it displays filename here and I have to scroll below to see my caption [17:41:18] :) [17:41:33] MMV is a recent extension. Wikipedia etc are using versions very close to master branch. Maybe if you downloaded a release for 1.23 or 1.24 it still doesn't have some features [17:42:34] ok I might try switch version that's an idea ! :) [17:44:07] That may require you to be running MediaWiki 1.24 or even master. You may get errors if it depends on features not present in your installation [17:45:05] ok [17:48:37] thk for help anyway :) [17:48:53] I'll try another extension if I can't this one to work [17:48:57] *get [19:56:58] keepna: captions above the fold were added to MMV after 1.24 was branched [19:57:07] opened https://phabricator.wikimedia.org/T85420 about that [19:58:11] ok thanks [19:59:21] so I have to wait for a new version ? [20:02:02] sorry I'm not really into dev stuff so it's a bit complicated for me ;) [20:02:07] thanks for opening issue anyway [20:05:13] keepna: next version is due May, but I can try backporting the changes to 1.23 [20:06:00] um 1.24 [20:06:16] you use MediaWiki 1.24 right? [20:06:31] 1.24.1 [21:42:26] @Nemo_bis: i loked through the annoying little bugs section , and have been looking for something to get me started but nothing as such as come up. [21:42:26] any suggestions regarding contribs using python ? would really help hit the ground running :) [21:51:59] amk071: I'm going to bed soon, can you remind me whether you're a GCI student? [21:52:57] In theory this should be a list of ideas https://phabricator.wikimedia.org/search/query/tZV3Eptf8x4g/#R [21:54:11] Well, almost... phabricator's search is too hard [22:04:38] Evan_M: please ask review https://www.google-melange.com/gci/task/view/google/gci2014/5867027617021952 and claim https://www.google-melange.com/gci/task/view/google/gci2014/5289142183264256 [22:04:54] does phab have a usable api [22:07:16] zuzak: yes, it's called conduit [22:07:19] zuzak: to do what? [22:07:25] zuzak: https://phabricator.wikimedia.org/conduit/ [22:08:20] and https://justin.harmonize.fm/development/2013/06/29/authenticating-with-phabricator.html [22:08:40] Nemo_bis: to filter easy bugs by project nicely [22:08:55] as there's no way to do "all easy bugs in all of mediawiki" nicely, as far as I can tell? [22:09:20] I use http://old-bugzilla.wikimedia.org/ :P [22:09:22] um, you can use advanced search. [22:09:23] other than specifying every MediaWiki-* project explicitly [22:09:34] yeah :/ [22:09:50] the API isn't going to make it any easier [22:10:30] ...unless you want to use the API to make a JavaScript tool which adds all projects matching a certain regex to a specified search field [22:11:11] I'd certainly install such a GreaseMonkey script (or browser extension, or whatever) [22:11:28] This is https://phabricator.wikimedia.org/T76942 FWIW [22:12:56] is there an upstream bug for wildcard project searching#? [22:14:02] If only search worked, I could tell ^^ [22:14:32] OMG we export #REDIRECT https://secure.phabricator.com/T1575 [22:15:21] Is this you, zuzak ? https://secure.phabricator.com/T1906 [22:17:05] no [22:17:16] ok [22:17:32] zuzak: the relevant task is essentially the one on subprojects, we're talking of first bullet https://secure.phabricator.com/T3670#65849 [22:17:40] Yes, MC8 is a nick we know better ;) [22:18:24] You could split it to a subtask, quoting that first bullet [22:28:01] Nemo_bis, I marked it as done [22:29:31] Sorry for opening up the can of worms by deprecating everything :P [22:35:17] :p [22:44:48] So Nemo_bis, why is deprecating things such a process? I assume it has something to do with how used it is, as well as whether or not it actually needs to be deprecated? [22:49:31] Evan_M: because you can never know what code people are using that function in [22:49:59] but now afk [23:38:35] Anyone know if it's possible to force parsing of a template before an extension it invokes? Specifically I'm trying to use a source code formatting extension, it requires a language be passed to it, and it errors out before the template can pass that. [23:39:13] I'm not sure I understand the question properly [23:39:37] If the template invokes an extension, it wouldn't be possible to parse it before the extension, since the extension is part of the template [23:40:12] bawolff: The simple template code is at http://www.blackberrydev.net/w/index.php?title=Template:Code&action=edit [23:41:02] Ok, try {{#tag:lang={{{1}}}|{{{2}}}}} [23:41:24] Or is it {{#tag:{{{2}}}|lang={{{1}}}}} [23:41:31] The order is important and I can never remember [23:41:35] will play with both, thanks [23:43:21] There's some info at https://www.mediawiki.org/wiki/Help:Magic_Words#Miscellaneous [23:43:59] Cool, I was trying to find the doc there before just doing stuff blindly :-)