[00:29:38] well that's funny timing just saw in my inbox [00:29:38] https://lists.debian.org/debian-devel-announce/2025/06/msg00001.html [00:29:59] subject: Debian 10/buster completely moved to archive.d.o; removal from main archive soon (re @jeremy_b: well that's funny timing just saw in my inbox [00:30:00] https://lists.debian.org/debian-devel-announce/2025/06/msg00001.html) [01:33:41] There is still a php5 container. https://docker-registry.toolforge.org/#!/taglist/toolforge-php5-sssd-web Updating the code to work with a modern runtime would probably be a good investment. (re @Yetkin: what do you mean? May I request to have PHP 5.6 packages installed for Kubernetes?) [04:11:10] Ok, İ will check this out (re @bd808: There is still a php5 container. https://docker-registry.toolforge.org/#!/taglist/toolforge-php5-sssd-web Updating the code to w...) [04:12:40] > The PHP 5 documentation was removed from the PHP Manual in September 2020, approximately two years after PHP 5 reached its end of life. [04:12:41] https://www.php.net/manual/php5.php [04:14:12] > Support for PHP 5 has been discontinued since 10 Jan 2019.Please consider upgrading to 8. [04:14:14] https://www.php.net/releases/ [04:44:51] which links to https://www.php.net/manual/en/migration70.incompatible.php conversion guide in case you didn't know. [04:44:51] but some of the stuff in there was already removed in 5.6 so not applicable to you. (re @jeremy_b: > The PHP 5 documentation was removed from the PHP Manual in September 2020, approximately two years after PHP 5 reached its end...) [15:49:41] cannot login using the API [15:49:42] Array [15:49:44] ( [15:49:45] [login] => Array [15:49:47] ( [15:49:48] [result] => Failed [15:49:50] [reason] => Unable to continue login. Your session most likely timed out. [15:49:51] ) [15:49:53] ) [15:59:27] PLEASE DO NOT PASTE MANY LINES in here at one time. (re @jeremy_b: Please use our pastebin https://w.wiki/4392 for snippets and keep ur messages short as this channel is mirrored on IRC) [16:00:40] are you using some kind of mediawiki library or framework? name it? (re @Yetkin: cannot login using the API. The error message is: [16:00:41] Array [16:00:42] ( [16:00:44] [login] => Array [16:00:45] ( [16:00:47] [result] => Failed [16:00:48] ...) [16:01:04] I am using Wikibot (PHP) [16:01:33] this used to work fine until yesterday's issue [16:02:25] reduce a test case. try the sample code at https://mediawiki.org/wiki/Manual:Wikibot [16:02:45] § Sample bot [16:03:48] are you using bot password or the account password? [16:47:27] bot password [16:47:36] will get back to you (re @jeremy_b: reduce a test case. try the sample code at https://mediawiki.org/wiki/Manual:Wikibot) [17:37:04] !log lucaswerkmeister@tools-bastion-13 tools.wdactle deployed 44769b5c48 (work around vuejs/core#11398) [17:37:05] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wdactle/SAL [17:51:58] !log lucaswerkmeister@tools-bastion-13 tools.lexeme-forms deployed c7b450ab94 (update code for newer mwapi version) [17:52:01] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.lexeme-forms/SAL [19:44:10] oh my! [19:44:11] Changing the path to the cookie file worked on php7.4 shell 😊 [19:44:12] curl_setopt( $ch, CURLOPT_COOKIEJAR, "/tmp/...... [19:44:14] Without this change (re @jeremy_b: reduce a test case. try the sample code at https://mediawiki.org/wiki/Manual:Wikibot) [22:20:12] so now bullseye instead of buster? just barely in time to be back on oldoldstable again. but more flexibility with containers, makes the next upgrades easier. (re @Yetkin: oh my! [22:20:14] Changing the path to the cookie file worked on php7.4 shell 😊 [22:20:15] curl_setopt( $ch, CURLOPT_COOKIEJAR, "/tmp/...... [22:20:17] Withou...) [22:23:34] Hi, so I am sending an edit request to the API using form-data as body [22:23:35] ``` [22:23:36] body: --0c4897e1abde7e8a6c4ac6751fb0d6c526d251eb18300ccf6aae0ee0a54d [22:23:38] Content-Disposition: form-data; name="text" [22:23:39] Text of the body [22:23:41] --0c4897e1abde7e8a6c4ac6751fb0d6c526d251eb18300ccf6aae0ee0a54d [22:23:42] Content-Disposition: form-data; name="summary" [22:23:44] Test Edit via CampWiz [22:23:45] --0c4897e1abde7e8a6c4ac6751fb0d6c526d251eb18300ccf6aae0ee0a54d [22:23:47] Content-Disposition: form-data; name="token" [22:23:48] /+ [22:23:50] --0c4897e1abde7e8a6c4ac6751fb0d6c526d251eb18300ccf6aae0ee0a54d--``` [22:23:51] But It is giving me [22:23:53] "code":"missingparam","info":"The \"token\" parameter must be set." [22:25:30] I already tried putting token in the URL, as a JSON payload (instead of form-data), and now, as form data field, but no luck. In the URL, they explicitly says token is not allowed in query string (which is reasonable for security consideration) [22:25:57] Used login.toolforge.org (re @jeremy_b: so now bullseye instead of buster? just barely in time to be back on oldoldstable again. but more flexibility with containers, m...) [22:26:45] I meant inside the container not host OS [22:27:13] Used php7.4 [22:44:25] just to check, is the `Content-Type` request header set to `multipart/form-data` with the right `boundary`? (re @nokibsarkar: Hi, so I am sending an edit request to the API using form-data as body [22:44:26] body: --0c4897e1abde7e8a6c4ac6751fb0d6c526d251eb18300ccf...) [22:47:38] Ok, I forgot to provide the boundary [22:47:50] Now its working [22:48:06] By the way, doesn't it take JSON body? [23:20:00] I’m… not sure, actually [23:20:11] I don’t think I’ve used JSON for the request body, only for the response format [23:20:35] apparently that’s T212988 (via [[mw:API:Data formats]])