[02:11:23] Hello! I am trying to make an image for seting up MediaWiki in a docker-compose service. The image is based on a php-fpm setup I have made myself and I am trying to figure out if I am missing a dependency of MediaWiki, or if there is a version issue. I am running php 7.1.5 (I think) and I get this error: Call to undefined function MediaWiki\Session\session_id() in [02:11:26] /www/includes/session/SessionBackend.php:225 [02:15:21] You have to run composer install [02:15:56] Okay, that is what I feared haha. It is not available in Alpine 3.6 [02:15:57] probably anyways, assuming you got mediawiki from git [02:16:15] I got the tarball [02:16:26] Oh, well then im wrong [02:16:46] Okay, hmm. [02:16:53] * bawolff reads error message more closely [02:17:22] it looks almost like there is a bug where someone put that file in a namespace [02:17:32] I have noticed that the default php.ini that follows the php package in Alpine doesn't automatically enable some plugins (like it does in Arch, my normal distro). COuld that be a reason? That I need to add some lines there? [02:17:47] since session_id() is a global php builtin func [02:17:56] This is supposed to the be stable 1.29.1 version [02:18:02] Yeah, that's what I thought as well [02:18:23] just a second, im checking that file [02:18:52] if the release is actually broken, itd be weird we havent gotten more complaints [02:20:27] I have some vague memory of running into something similar before, where I lost the global namespace for whatever reason, but can't remember the details. I haven't worked in PHP in a long time [02:22:18] Oh. Php namespaces default to global namespace for functions. I didnt know that but that means the file is fine [02:23:50] Yeah, that's what I always assumed. But under some circumstance it tries to resolve it in the current namespace. Not sure how it occurred, and it could be due to my setup, not the project itself. [02:23:56] Timelaw: for some reason your php doesnt have the builtin session_id() function, which is odd as it appears to be builtin and not a php extension [02:24:03] So do you have any pointers when it comes to the php.ini and the php-fpm.d/www.conf? [02:26:55] Do you have anything in php.ini disable_functions directive [02:28:55] Oh i was wrong it is an extension [02:29:05] php manually was unclear on that point [02:29:52] http://php.net/manual/en/session.installation.php [02:30:27] Its default enabled, so youd have to specificly disable it at compile time [02:31:19] But i guess check with your package [02:31:23] of php [02:32:37] Hmm, that would be ridiculous if they disabled it..? I'm using Alpine Linux 3.6 for the docker image. [02:33:05] You can check by creating a page [02:33:17] It will list all enabled extensions [02:35:38] I'm actually just inspecting that one hehe. I only find 4 instances of "session" when searching (Ctrl-F). --enable-session=shared, session.trans_sid_hosts=no value, session.trans_sid_tags= [02:35:55] And the last entry is just the credits of who wrote Sessions [02:37:29] Well weird it doesnt have the other session related variables listed [02:38:43] I'll get back to this later. Have to go now. Thanks for the help :) [02:38:51] Good luck [04:11:46] Timelaw: --enable-session=shared means that PHP session support is compiled as a shared module (.so file) [04:12:02] if you do not have extension=session.so in your php.ini file (or one of its includes), add it in [04:14:07] why the distro compiled php that way is beyond me... [06:52:40] Skizzerz: I'll check that then, thanks! :) [06:53:33] Skizzerz: And I think it is because of size optimisations. A pure Alpine distro lands at 3.99mb, and I think they optimise all packages and you are supposed to install only those that you need. [06:56:44] Turns out there is a package php7-session [07:01:44] Skizzerz: Installing php7-session fixed the issue for me and now I can go through the install wizard. So that solved my problem. And thank you bawolff for your help too! [14:30:34] Hey everyone. I was trying to do some recording of parameters using mw.track. [14:30:35] Is there any way to check the logs which got tracked? [14:30:35] Didn't find much information on mediawiki documentation. [15:08:45] Oh, welcome again after a long time, I see my Raspberry Pi is still online with the IRC bouncer ^^" [17:18:07] How come sometimes the API doesn't return a section title? https://wiki.bear-nation.net/w/api.php?action=query&list=search&srprop=snippet|sectiontitle&srsearch=shroom&utf8=&format=json [19:55:09] Pugabyte: hello [19:56:29] Pugabyte: I'm not sure, what search configuration do you have? [22:39:52] hi ! [22:40:09] i would really appreciate a quick code-review for a simple patch i submitted [22:40:10] https://gerrit.wikimedia.org/r/#/c/378817/ [22:40:31] getting it through quickly would allow me to continue with my work on wikipedia efficiently [22:41:25] it's a really minor patch and i added a parser test for it, so it should be a no-brainer to review it :-)