[09:52:37] hihi [09:52:55] Is there a way to run jobs via the browser? [09:53:49] Also, is there a way to stop categories getting locked when I edit them? It's not such a big wiki ;-) [09:54:50] Also, where can I edit that 'this category is locked' message... it's gut english [10:09:55] Locking a category? I don't think there's such a thing in MediaWiki core... maybe you're using an extension for that? [10:12:52] I wonder [10:13:49] Category "Research" was altered and requires assigned entities to be reevaluated using a change propagation process. In the meantime, the category page has been locked until the primary specification update is completed to prevent intermediary interruptions or contradictory specifications. The process may take moment before the page can be unlocked as it depends on the size and frequency of the job [10:13:55] queue scheduler. [10:14:54] all searches for that text show pages where this condition has been met ;-P [10:18:31] While that msg is for a specific locked category, all categories now have a message: Change propagation updates are pending (2 jobs estimated) and it is recommended to wait with modifications to a category until the process has been finalized to prevent intermediary interruptions or contradictory specifications. [10:19:03] What a weird message [10:26:25] what extensions are you running? [11:34:45] Bet it's a SMW thing [11:35:16] https://stepmodifications.org/wiki/Category:Skywind_ModLists has the error and has SMW enabled [11:35:28] https://stepmodifications.org/wiki/Category:Skywind_ModLists?uselang=qqx [11:36:00] yup [11:36:03] [12:26:03] likely https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4344 [13:12:14] legal search information private open original information search [13:13:17] Guest86: what? [17:08:30] Hello, I upgraded to 1.35.3 and now I got an error from a custom script, but not coded by myself. Maybe someone came across the same issue and can help. /wiki/Special:RecentChangesLinked TypeError from line 97 of /var/www/html/w/includes/user/UserOptionsLookup.php: Argument 2 passed to MediaWiki\User\UserOptionsLookup::getBoolOption() must be of [17:08:30] the type string, null given, called in /var/www/html/w/includes/user/User.php on line 2699 [17:08:49] The line in the script is: parent::execute( $subpage ); [17:09:29] $subpage is NULL, it is not defined in the file, but before the upgrade it did work. [17:10:06] was $subpage pre 1.35 a global variable? If yes, to what was it changed? [17:14:55] No, it wasn't a global [17:16:21] What could then have changed [17:16:29] to I need to add something? [17:18:55] You'll have to pastebin the whole trace [17:21:41] Backtrace: [17:21:42] #0 /var/www/html/w/includes/user/User.php(2699): MediaWiki\User\UserOptionsLookup->getBoolOption(User, NULL) [17:21:42] #1 /var/www/html/w/includes/specialpage/ChangesListSpecialPage.php(819): User->getBoolOption(NULL) [17:21:43] #2 /var/www/html/w/includes/specialpage/ChangesListSpecialPage.php(701): ChangesListSpecialPage->includeRcFiltersApp() [17:21:43] #3 /var/www/html/w/skins/CLSkin/includes/pages/RecentchangesRenderer.php(166): ChangesListSpecialPage->execute(NULL) [17:21:44] #4 /var/www/html/w/includes/specialpage/SpecialPage.php(600): SpecialRecentChanges->execute(NULL) [17:21:44] #5 /var/www/html/w/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL) [17:21:45] #6 /var/www/html/w/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) [17:21:45] #7 /var/www/html/w/includes/MediaWiki.php(940): MediaWiki->performRequest() [17:21:46] #8 /var/www/html/w/includes/MediaWiki.php(543): MediaWiki->main() [17:21:46] #9 /var/www/html/w/index.php(53): MediaWiki->run() [17:21:47] #10 /var/www/html/w/index.php(46): wfIndexMain() [17:21:47] #11 {main} [17:22:15] Guest81: please use dpaste.de or alternative in the future, to avoid flooding the channel. Thanks! [17:22:33] ooh ok sorry didn't know [17:23:01] hi [17:23:23] here https://dpaste.org/9riu [17:26:08] I'm running Ubuntu version 18.04 Bionic. I was running with PHP 7.2 and just upgraded to 8.0 as mediawiki version 1.36.1 wouldn't work with it, but even after rebooting - the config script at mw-config/index.php still thinks I'm running php7.2 [17:26:29] anyone here know what might be the cause? [17:27:55] your webserver config is wrong? [17:27:56] https://github.com/wikimedia/mediawiki/blob/REL1_35/includes/specialpage/ChangesListSpecialPage.php#L819 [17:29:15] Reedy is the link for me? [17:30:41] mightysands: what does your web server config file look like? [17:32:45] majavah: https://paste.debian.net/1204355/ [17:32:48] running lighttpd [17:33:10] The thing that's showing null should be defined as such [17:33:11] https://github.com/wikimedia/mediawiki/blob/REL1_35/includes/specials/SpecialRecentChanges.php#L38 [17:33:30] it uses the fast_cgi module [17:36:50] Reedy sorry for the question, but what should I do? [17:37:13] I don't know [17:37:50] mightysands: does php cgi have any relevant config? [17:38:12] I'd imagine it would, but I'm not sure where it would be [17:38:37] I know where the binary for it is, just not the config [17:40:27] did you install the php80-cgi package? [17:40:46] ah, I wasn't sure what it was called. I assumed it might've been included for some reason [17:40:54] but that's rather presumptuous of me [17:40:56] :P [17:46:50] okay, I've installed php8.0-cgi and php-8.0-mysql [17:50:05] you might need to change /usr/bin/php-cgi to something like /usr/bin/php8.0-cgi [18:01:29] thanks [18:14:02] majavah: yup, seems to be working now. Thanks again for your help :) [18:25:42] so, I'm not too sure what I've missed here, but I ran the commands for mariadb shown on this page: https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#MariaDB/MySQL [18:26:16] but the mediawiki installation script is asking for a database username and password unrelated to those commands? [18:27:14] I swear the page had more SQL instructions a few months ago? I remember last time I setup a mediawiki installation was around October of last year [18:27:31] I feel like I've missed some kind of important step [18:38:46] Did you create a MariaDB user for MediaWiki? [18:41:46] yeah, I did. But the config page says it's not asking for that one(?) [18:42:14] "This is not the username of the MediaWiki account; this is the username for your database." [18:42:30] "This is not the password for the MediaWiki account; this is the password for your database." [18:43:27] I never gave it a password or created a user for the database. I was just root and created the sql user "wikiuser" and created a password for the user [18:43:43] wait [18:43:57] I may have just answered my own question [18:44:30] nope. [18:44:40] wikiuser and the password I set for the db don't work [18:45:38] so, what exactly is mediawiki asking for here? Because all I did was create a database and a wikiuser for said wikidb and then made a password for said wikiuser [18:45:45] I never set a password on the database itself [19:35:18] I'm trying to put some tests on an extension that has a Lua library - when I run the phpunit test I get "interpreter for LuaSandbox is not available" on the main test case, but the "'LuaStandalone" parts work OK [19:36:14] the test is basically this but with different names: https://github.com/jeblad/Pickle/blob/6609cb661cbebf016fc0b97d96a388606cbe970c/tests/phpunit/includes/LuaLibrary/lua/pure/picklelib/UtilTest.php [19:37:06] You probably don't have both lua setups... [19:37:35] * inductiveload pretends like I knew that [19:38:08] Unless you're saying that jeblad's works, but yours doesn't... I'm guessing that's basically the case :P [19:39:07] do I have to install php-luasandbox in the dockerfile? [19:39:34] I don't use docker :P [19:40:08] but if you did use docker like the docs told me to... :-D [19:40:30] going afk. But if anyone could help me out with my database question while I'm gone, I'd really appreciate it [19:40:44] * mightysands is now afk [19:42:17] ahaha, so the answer to that is "yes", just apt-get install phph-luasandbox morks [19:42:25] *works... [19:44:24] probably I should learn what's actually going on with Lua at some point for now, this black box is all pretty and black and mysterious with the ratio of 1:4:9 and might be influencing my evolution [20:01:10] can you print debug from within a lua test under phpunit? [20:13:28] inductiveload: Scribunto has two Lua engines, LuaStandalone shells out to a lua5.1 binary, while LuaSandbox compiles lua as a PHP extension. In most cases what you write should work on both but doesn't hurt to have both for running tests [21:02:11] CindyCicaleseWMF: had much fun or luck with the new cli thing yet? [21:02:54] Krinkle: you may also be interested, as I believe you still enjoy mediawiki-docker-dev https://www.mediawiki.org/wiki/Cli [21:03:59] addshore: I was just going to try it and started looking at the source since I want to replace docker with podman. It looks like the docker string is in just one place so that's promising. [21:04:07] addshore: I haven't had a chance to play with it yet. I'm still actively using mediawiki-docker-dev and am looking for a good time to switch where it won't hurt too much if I accidentally, temporarily break things. I'm really looking forward to trying it very soon. [21:04:45] hexmode[m]: docker-compose is also used, might that also need poking? I'd be keen to get a phab task written for that usecase! [21:05:49] podman works with docker-compose, so that shouldn't be a problem [21:06:24] so, the docker SDK and API is directly used in a few places right now, so it might need a little more code to be writtne for pdoman? [21:06:26] the podman command is meant to be a drop-in replacment for docker + gives you the benefit of not running containers as root [21:07:11] if they have mostly compatible APIs then I imagine it should be trivial there too [21:07:14] don't know.... was simply giving you what I saw just in the past couple of hours. [21:08:20] I dunno too much, but I'm thinking if docker compose works, the the APIs must be compatible. From earlier this year: https://www.redhat.com/sysadmin/podman-docker-compose [21:08:26] yup! [21:10:14] oh, here is a q: do you have php-ast in the docker-dev image? [21:11:03] I added that with a Dockerfile [21:11:40] Yeah, I've been adding stuff ... just wanted to see if I could be more lazy. [21:11:41] :P [21:12:00] (along with php-luasandbox as of about an hour ago) [21:12:30] I didn't get php-ast working actually [21:12:59] it looks like php-ast is missing, and php-luasandbox https://gerrit.wikimedia.org/r/plugins/gitiles/releng/dev-images/+/refs/heads/master/dockerfiles/stretch-php72/Dockerfile.template [21:13:12] I'll write some tickets [21:14:13] inductiveload[m]: when I tried to add ast I got what I'm sure is a simple fix:error: /usr/src/php/ext/ast does not exist [21:14:24] so, easy: make it exist [21:15:04] I can't remember, I apt-get installed it, then I might have echoed something to php.ini and it still didn't work [21:15:47] But even with the polyfill parser, phan didn't work anyway [21:16:01] created https://phabricator.wikimedia.org/T286677 and https://phabricator.wikimedia.org/T286678 [21:19:58] Sweet [21:26:14] inductiveload[m]: think I have just built a working image with ast. Will let you know in a few. [21:41:54] inductiveload[m]: looks like the ast image is working. Will submit a patch for the task addshore just opened. [21:42:16] awesome! [21:42:35] addshore: canonical repo? [21:42:55] gerrit.wikimedia.org / releng / dev-images [21:43:02] Oooo, does that mean phan will work? [21:43:24] so the image there needs updating and building, then mwcli needs updating to use the new image [21:43:29] inductiveload[m]: worked when Itried just now [21:45:39] That should save me some unnecessary review commits [21:53:30] I have been told that MediaWiki has an API. Would the API be a good way to authenticate to a MediaWiki server and create or edit articles on a MediaWiki server? [21:53:42] Where can I find the API documentation? [21:53:54] I would like to be able to create and edit MediaWiki articles without using a web browser. [21:54:40] bone-baboon: the best place is at /w/api.php on your mediawiki site, for example https://www.mediawiki.org/w/api.php (for the main action api) [21:54:48] https://www.mediawiki.org/wiki/API:Edit [21:55:07] Yeah, generally I recommend giving https://www.mediawiki.org/wiki/API:Main_page a read, [21:55:36] There is also an in development REST api, with much less functionality https://www.mediawiki.org/wiki/API:REST_API [21:57:12] addshore: what is the docker image at git@github.com:wikimedia/mediawiki-docker.git since that was the one I used [21:57:26] the releng one already has ast, evidently [21:58:11] hexmode[m]: that is the docker hub image [21:58:37] addshore: Thanks [21:58:38] I dont see ast in https://gerrit.wikimedia.org/r/plugins/gitiles/releng/dev-images/+/refs/heads/master/dockerfiles/stretch-php72/Dockerfile.template and this is what is used by mwcli [21:58:57] hexmode[m]: Thanks [21:59:08] inductiveload[m]: which docker image were you using? [21:59:18] umm whatever https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md is [21:59:38] `image: docker-registry.wikimedia.org/dev/stretch-php72-fpm:2.0.0` [22:00:39] oh, can you use the php74 one? it should have it [22:01:15] can i just add image: ... to the override.yml? [22:01:52] addshore: yeah, I just saw it in the 7.4 one [22:03:19] maybe the standard docker-compose should use that? [22:04:13] DEVELOPERS.md is also using the dev-images docker images [22:04:17] inductiveload[m]: I would try using an override, yeah [22:05:16] ok, lua-sandbox seems working [22:06:03] hmmmm [debug] Running '/usr/bin/php7.2' '-n' '-c' '/tmp/lrnK6V' '/var/www/html/w/vendor/bin/phan' '-d' '.' '--long-progress-bar' [22:06:03] ERROR: The php-ast extension must be loaded in order for Phan to work. [22:06:10] that don't seem right [22:07:25] oh wait, wrong image in the override Dockerfile too [22:07:35] rebuild all the things [22:09:08] hmm, still php 7.2 [22:13:25] Can anyone point out some MediaWiki API clients that would handle the MediaWiki API requests and response and allow a user to create and edit articles from the command line? [22:13:39] bone-baboon: pywikibot [22:14:05] there are lots of API clients, but that's the Big Daddy, I think [22:14:53] Has anyone used mediawiki-el an Emacs client? Would mediawiki-el work for create and editing articles? [22:14:56] inductiveload: Thanks [22:15:26] i mean, since hexmode is literally right here....:-p [22:15:34] bone-baboon: I'm actually the maintainer of it.... [22:16:02] "maintainer" since I've let some bugs go [22:16:26] god I wish you could have proofreadpage attached to some decent editor [22:18:07] so i change the images in docker-compose.yml and in the override.yml Dockerfile and it's still using php 7.2 [22:18:18] I think it's mocking me [22:18:46] your changing the docker-compose and then doing what? [22:18:46] bone-baboon: https://www.mediawiki.org/wiki/API:Client_code [22:18:54] you'll need to run `up` again [22:19:01] docker-compose down, build, up [22:19:06] oh ... [22:19:11] i have no clue then :D [22:19:14] and am off now! o/ [22:19:34] \o [22:19:58] well at least it's still working [22:20:11] hexmode: Thanks for publishing mediawiki-el under a free software license. [22:25:23] hexmode: Looking at mediawiki-el's readme it does not describe what functionality it provides. In the source code repository I also do not see a directory for the package documentation. Can mediawiki-el manage the creation and editing of articles? [22:35:55] I will look at the Elisp source code for mediawiki-el to see if I can answer my question. Or I will just try mediawiki-el and see if I can figure it out by playing with it. [22:36:18] Reedy: Thanks [22:36:27] bone-baboon: sorry... it should work to edit or create pages [22:36:52] If you want to help by creating better documentation, that would be awesome [22:38:16] the code sucks b/c I've been maintaining it for years and added too much back-compat stuff without taking advantage of some newer packages [22:39:29] if I have a Lua file that's registered as a library, how can i `require` from the same directory? [22:39:58] just `require "index"` (the other file is called `index.lua`) doesn't work [22:42:35] * mightysands is no longer afk [22:42:59] hexmode[m]: Thanks. I will test out mediawiki-el. [22:45:37] heya, I'm trying to run the mediawiki config script, but I'm running into a bit of a snag at the part where it's asking me to connect to the database [22:45:56] hexmode[m]: As for helping with mediawiki-el documentation I may be able to help with that if I can get mediawiki-el configured and working. But I do not know if or when I will be able to help. [22:47:56] I ran the commands listed here for MariaDB before running the script, but I think I'm missing something: https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#MariaDB/MySQL [22:48:31] For clarification; is this creating a new database? Or connecting to the one I created with those commands listed in the installing manual? [22:48:48] (is the config script I mean ^) [22:55:57] mightysands: I have to run now, but i think in the most normal case you don't need that and the DB is set up for you [23:12:31] [19:44:40] wikiuser and the password I set for the db don't work [23:12:44] Sounds like your grants might not be correct [23:14:04] Are there htaccess rules in place pretty 404 pages instead of my default server 404 with server info/port [23:14:23] for pretty* [23:15:38] what does htaccess rules got to do with 404 pages being pretty? [23:16:12] NoCode_: this? https://httpd.apache.org/docs/current/custom-error.html [23:18:36] Oh lol. Well, whatever the thing is. I forget