[02:16:07] We're having problems translating content. We have pages such as https://userbase.tidalcycles.org/index.php/Basic_Patterns (in English) and corresponding pages such as https://userbase.tidalcycles.org/index.php/Basic_Patterns/fr, but they don't seem to be linked. When we change our default language the page doesn't change. Any ideas why? [02:43:08] mtift: you need to add to the top of the english version for it to link to other versious [02:43:10] versions* [02:43:28] and then you need to make links using Special:MyLanguage/ I think, for it to send you to the correct page [02:44:00] @legoktm: oh, I thought it needed to be [02:44:57] https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example#About_links explains the Special:MyLanguage part [02:45:02] kind of [02:46:58] @legoktm: Thanks. Does there need to be anything else with the `` on the English version or is that all that is needed? [02:47:21] I think that should be it [02:47:24] try it and see? :) [02:47:52] * mtift tries that [02:55:27] @legoktm: That seems to work! Except now my link shows up as "Special:MyLanguage/Basic Patterns", which works but looks a bit weird: https://userbase.tidalcycles.org/index.php/Tidal_workshop_worksheet [02:55:43] you can pipe it [02:55:50] [[Special:MyLanguage/Foo|Foo]] [02:55:56] I think most wiki use a template for that [02:56:25] Gotcha. Sorry, I'm totally new to mediawiki [02:56:36] create Template:ll with "[[Special:MyLanguage/{{{1}}}|{{{1}}}]] " [02:56:42] and then you can use {{ll|Foo}} [02:58:42] Where do I "create Template:ll"? [02:59:53] Like this I bet: https://www.mediawiki.org/wiki/Help:Templates [03:04:17] mtift: just create a page named that [03:08:43] I don't think I did that correctly: https://userbase.tidalcycles.org/index.php/Template:Ll [03:30:47] mtift: it looks correct to me [03:30:51] did you try using it? [03:31:11] https://userbase.tidalcycles.org/index.php?title=Tidal_workshop_worksheet&type=revision&diff=642&oldid=641 nice :)) [03:32:01] @legoktm: Yeah, it seems to be working now. I realized I needed to use curly brackets with `{{ll|page}} [03:32:13] yeah, templates use that syntax [03:32:34] it seems a bit odd, but the docs seem to recommend that approach [03:32:53] @legoktm: Thank you very much for your help! [03:33:00] you're welcome :) [12:22:54] hi there! [12:23:23] i`ve switched php on my webserver from 5 to 7, now my mediawiki wont work any more [12:23:59] i made sure the version i am using: 1.28.0 is compatible with php 7, however... seems like there are some problems [12:24:38] when i try to open it i get: Fatal exception of type InvalidArgumentException together with a hash and a timestamp [12:25:19] the apache log shows: "PHP Fatal error: require_once(): Failed opening required '/LocalisationUpdate/LocalisationUpdate.php' [12:25:22] (include_path='/var/www/wiki:/var/www/wiki/includes:/var/www/wiki/languages:/var/www/wiki/vendor/pear/pear_exception:/var/www/wiki/vendor/pear/console_getopt:/var/www/wiki/vendor/pear/pear-core-minimal/src:/var/www/wiki/vendor/pear/mail_mime:/var/www/wiki/vendor/pear/mail_mime-decode:/var/www/wiki/vendor/pear/net_socket:/var/www/wiki/vendor/pear/net_smtp:/var/www/wiki/vendor/pear/mail:.:/usr/share/p [12:25:28] hp') in /var/www/wiki/LocalSettings.php on line 136" [12:25:31] please advice how to fix this [12:31:17] i guess most here are still asleep [12:38:19] Well guess i was too slow [12:43:43] interesting, i`ve tested all paths in the error msg [12:43:53] they all exist, EXCEPT: /usr/share/php [12:44:20] Hi friendly1uy [12:44:32] but when i dug through the LocalSettings.php, i couldnt find a reference to that file. [12:44:33] We're still around this time of day, sometimes, just slower to respond :) [12:44:41] no problem at all :) [12:44:51] so [12:44:53] you never know the timezone ;) [12:44:53] [12:25] friendly1uy the apache log shows: "PHP Fatal error: require_once(): Failed opening required '/LocalisationUpdate/LocalisationUpdate.php [12:45:05] The weird thing is the leading / [12:45:31] Which would mean root directory, which would be rather wrong [12:46:13] So I guess, my first question would be, what's on line 136 of your LocalSettings.php [12:46:24] just had a look where the file is: "/var/www/wiki/extensions/LocalisationUpdate/LocalisationUpdate.php" [12:46:55] 136 is a empty linee [12:46:59] yeah, that's the normal location [12:47:29] You're sure you don't have multiple LocalSettings.php or anything like that? [12:47:53] let me check... but not to my knowledge [12:48:22] My first assumption with that error message, would be a require_once line with a typo, and differing include_path config between different versions of php caused it to accidentally work in the old php version [12:48:45] nope. only one... but there is a NoLocalSettings inside includes [12:48:56] dir [12:48:58] unless possibly, maybe that error message is just something from a long time ago [12:49:05] yeah, NoLocalSettings.php is a normal file [12:49:29] Maybe better to concentrate on the: [12:24] friendly1uy when i try to open it i get: Fatal exception of type InvalidArgumentException together with a hash and a timestamp [12:49:30] error [12:49:41] Can you set $wgShowExceptionDetails = true; in LocalSettings.php [12:49:47] that should give a more detailed error message [12:49:53] i dont get it... its working again [12:50:00] but.. i didnt change anything so far [12:50:11] Possibly that error means you have an old version of an extension, that isn't php7 compatible [12:50:21] the error msg has a timestamp 20 minutes ago [12:50:26] hmm [12:50:35] weird [12:50:56] Could be some sort of thing not triggered on every request [12:51:08] all i did so far was reading log files and checking directories [12:51:49] and of course rebooting apache a couple of times ;) [12:52:06] first thing if something does not work: reboot the damn thing ;) [12:52:55] nice [12:53:02] now i can continue to update mediawiki :) [12:53:54] aaaah, nope :) [12:54:00] incompatible with my mysql version [12:54:21] and i cant update the mysql server because some other app isnt compatible with newer versions [12:55:34] maybe its time to move all but this databases of the current mysql and run 2 from now on. but it kind of sucks to run multiple sql servers at home [12:55:39] How old is your mysql version? [12:55:52] I think we support pretty old versions [12:56:13] it think this one possibly saw linus grow up :) :) [12:56:28] 5.5.62 [12:56:57] 5.5.8 is required [12:57:03] da da daaa ;) [12:57:17] huh [12:57:24] I'm assuming.62 is newer than .8 [12:58:43] so yeah, that's a bug in mediaiwki [13:00:36] I've filed a bug for that https://phabricator.wikimedia.org/T209214 [13:00:38] :) [13:01:21] erm. maybe i expressed myself wrong [13:01:55] sorry. i had a look at https://www.mediawiki.org/wiki/Compatibility/en [13:02:17] and made the mistake in only comparing the 8 to the 6 [13:02:20] so thats my fault [13:02:31] *shameonme* [13:03:12] Ah, so mediawiki itself isn't complaining [13:03:51] nope [13:04:34] i was doing multiple things at the same time aaaand... didnt think right :) [13:04:41] i am sorry [13:08:55] no worries [13:10:20] thanks for your help anyway [13:10:22] very kind! [13:23:22] Hey davidwbarratt. I was just playing with https://tools.wmflabs.org/sql-optimizer - pretty cool. I like how it gives people tips [13:23:56] bawolff ha. thanks. musikanimal did all that, I just helped. :) [13:25:05] I have some other comments in the backlog of #wikimedia-cloud . I might make a pull request at some point to add more, if I can come up with any [13:25:21] bawolff cool! thanks! [13:25:23] It'd be cool to view the slow query log of tool labs, to see what mistakes people are actually making in pracitse [13:27:14] oh that would be cool [15:42:52] Hi, im either getting dumber by the day but in which context could i define the height for this to work "{{#if:{{{height|}}}|The height is {{{height|}}}.|No height entered.}}" [15:42:55] ? [16:04:25] !templates [16:04:25] For more information about templates, see . See also: !templateproblems , !wptemplates [16:05:16] the context would be {{myTemplateName|height=100}} [16:05:39] Assuming that snippet is on template:myTemplateName [16:16:39] he left i was going to say i did fix it [16:16:42] and understood it