[06:44:22] hi. for a game wiki I'd like to know if it's possible and a good way to do the following: I'd use templates like {{food name=fruit health=10}} in item pages to show item values for users. I want to use the same data to generate a list of food items (category) using a bot, let it write to a certain page/placeholder. I want to avoid writing the same data manually into a list and updating data in several places [06:44:22] s. [13:20:53] for a game wiki I'd like to know if it's possible and a good way to do the following: I'd use templates like {{food name=fruit health=10}} in item pages to show item values for users. I want to use the same data to generate a list of food items (category) using a bot, let it write to a certain page/placeholder. I want to avoid writing the same data manually into a list and updating data in several places when [13:43:41] black_silence: your message got cut off after "several places when" [13:44:16] oh, thx. [...] when something changes. [13:45:11] black_silence: but anyway, i think what you want is to have a template for each "food type", and use that in the pages instead of {{food|name=fruit|health=10}} [13:45:17] so, you'd have something like [13:45:31] Template:Food – (whatever you need here to display it) [13:45:46] Template:Food fruit – just contains "{{food|name=fruit|health=10}}" [13:45:57] Template:Food cheese – just contains "{{food|name=cheese|health=15}}" [13:46:10] and use {{food fruit}} or {{food cheese}} etc. in the pages [13:46:31] if the health for fruit changes, you only need to update it in that one template [13:49:10] but can I use that name and health value to create a comparison list easily or is there a better way to achieve one data source? assuming I want to use the wiki instead of hacking together a separate website with custom database. [15:30:11] Can anyone help with SyntaxHighlight_GeSHi causing an endless hang, mediawiki log constantly looping until user refreshes page or closes browser [15:32:22] CookieMonster__: hhvm? [15:32:41] (I assume you're talking about your own MediaWiki installation.) [15:33:54] Nemo_bis: Yes, I've spent all day with not progress [15:35:27] There's a bug on HHVM, ensure you have the correct versions [15:35:53] Nemo_bis: What is HHVM sorry? [15:36:55] PHP interpreter [15:37:10] If you don't know about it, then probably it's something else [15:37:52] Whenever I add a code block and save page, the page never progresses and the debug log just keeps looping but doesnt say what the problem is from what I can see [15:43:56] That's a topic for #mediawiki... [15:44:05] Could someone with shell access look up the stacktrace for https://phabricator.wikimedia.org/T162235 ? [15:47:43] andre__: Wrong bug? [15:47:57] urgh. yeah [15:48:47] https://phabricator.wikimedia.org/T162405 I meant [15:52:15] attached [15:52:26] thanks [20:47:55] hi, can somebody help me? I upgraded mediawiki, and now there is a problem with the expiring userrights DB patch [20:48:01] I get this error msg: [20:48:08] Query: SELECT ug_user,ug_group,ug_expiry FROM `user_groups` WHERE ug_user = '2' [20:48:09] Function: UserGroupMembership::getMembershipsForUser [20:48:09] Error: 1054 Unknown column 'ug_expiry' in 'field list' (127.0.0.1) [20:48:16] I already did update.php [20:48:55] Sagan: are you using mysql/mariadb or something else? [20:49:09] p858snake: mysql on mediawiki-vagrant [20:49:20] Sagan: did you ask about this earlier? [20:49:26] or was it someone else? [20:49:27] * p858snake looks towards Reedy [20:49:58] ah, it was you on #wikimedia-labs [20:50:02] IIRC it was that, yeah [20:50:24] I tried already to apply that patch manually, but I get: [20:50:39] vagrant@mediawiki-vagrant:/vagrant/mediawiki/maintenance/archives$ mysql < patch-user_groups-ug_expiry.sql [20:50:39] ERROR 1060 (42S21) at line 3: Duplicate column name 'ug_expiry' [20:51:12] the column itself exists, everything in there is NULL, but the error msg still says "unknown column" [20:51:26] that makes little sense… [20:54:03] if you were to delete the column would that help? [20:54:34] not sure. then at least I would need to do it once per wiki [20:57:16] and there's another strange thing: some accounts can login, others get that DB error msg [20:59:12] try dropping that column then running the patch again? [21:05:05] I dropped it now at one wiki, applied the patch (without errors) but still get the same msg at login at that wiki [21:05:51] Sagan: have you tried invalidating sesssions [21:06:11] I can login with another user [21:06:21] I logged in and logged out, but with my account it fails [21:06:27] Sagan: thats what im saying i wonder if the session is bugged [21:08:44] hm, did that for myself but get still the same error msg :( [21:11:59] I created now T162495 about it [21:11:59] T162495: Patch about expiring user-groups did not apply cleanly - https://phabricator.wikimedia.org/T162495 [21:12:23] Sagan: subscribed [21:12:39] ill keep digging through tasks and documentation see if i cant find anything [21:13:04] ok, ty [21:16:13] Sagan: what the error messgae you keep when logging in with your account [21:16:34] from the web ui itself [21:16:39] Zppix: always the same I posted in that task [21:16:52] thats what it says on the UI? [21:22:18] Zppix: exactly [21:23:20] Sagan: do you have debug logs? [21:24:04] nope. but the msg shows already the stacktrace, doesn't it? [21:24:35] Sagan: yes but im curious if debug logs would give us anything different