[00:52:26] What is the difference between Copyrightwarning and Copyrightwarning2 [00:52:29] ? [00:53:56] https://mediawiki.org/wiki/Manual:$wgNamespaceProtection#Disabling_talk_pages Not for the TALK namespaces, but for DATA, HELP, MODULES, and TEMPLATE I disabled for 'everyone' and I created my own site-specific alternatives (and corresponding talk pages). I see in Special:SpecialPages "Unused templates" - Is it possible to have a link showing the same for the new custom templates namespace too? I imported various Wikipedia [00:53:57] Templates and Modules that cannot be edited, and I want to also use the other namespace to provide templates in addition to the Wikipedia ones [01:04:27] Oh, I see https://mediawiki.org/wiki/Manual:$wgNonincludableNamespaces "Pages in namespaces in this array cannot be used as templates." I guess this means that any namespace can technically be used as a template then? [01:58:51] ryzenda: I don't see any black background there. Normally a page is not shown at all until its CSS loads [02:45:59] ryzenda, yes, by default any namespace can be transcluded. To transclude a mainspace (ns 0) page, you have to use a leading colon, like {{:Main Page}} [02:52:30] TimStarling, you're right, I broke it somehow, but I fixed it again now. Errors in LocalSettings.php cuz I forgot to redefine constants for NS_DATA, NS_MODULE, etcetera [03:10:46] Bummer! Apparently I can't $wgExtraNamespaces = array(NS_MODULE => 'Wikipedia_module'); // rename namespaces since it breaks references used in existing templates [10:47:15] hello everyone , I was setting up mediawiki development environment and I am facing issue in using this like command "echo "MW_DOCKER_UID=$(id -u) [10:47:15] MW_DOCKER_GID=$(id -g)" >> .env" [11:27:24] 你们好有人吗? [11:31:12] hello [13:35:33] "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form." -- I am still getting these types of caching errors frequently, and on a development MediaWiki installation that I just deleted all the tables and imported a backup from a fresh empty/blank installation. I'm using the latest LocalSettings.php that I have been working on, [13:35:33] and also for php I have: apc.shm_size=128M [13:36:00] Also, nobody is using the dev website except myself [13:44:47] ryzenda: session data should be stored on persistent storage, or at least a storage that doesn't evict it on each request. Database, memcached and redis are good. APC is not [13:53:02] How come Special:ListGroupRights doesn'tlist namespace restrictions for Data namespace? [13:54:03] Probably something not configured correctly [14:04:13] The define( 'NS_MODULE', 828 ); namespace comes from Scribunto extension, and the define( 'NS_DATA', 486 ); comes from the JsonConfig extension. Both defines are in my LocalSettings.php as well as $wgNamespaceProtection[NS_DATA] = ['everyone']; and $wgNamespaceProtection[NS_MODULE] = ['everyone']; [14:04:35] https://dev.moasspedia.org/wiki/Special:ListGroupRights shows the namespace restriction for Module, but not Data [14:13:15] also "everyone" right name seems misleading. I changed it to "noone" for now [14:52:51] Aha! In mediawiki-1.37.1/includes/specials/SpecialListGroupRights.php in private function outputNamespaceProtectionInfo() the $namespaceProtection variable includes NS_DATA / 486, however $this->nsInfo->getValidNamespaces() function call does not... and that is because.... (looking) [14:57:51] $this->getCanonicalNamespaces() does not include NS_DATA/486, but it does include my own custom 4486 for a completely different namespace [15:04:09] $this->canonicalNamespaces += ExtensionRegistry::getInstance()->getAttribute( 'ExtensionNamespaces' ); // This shows the 828 NS_MODULE namespace,but does not show the 486 NS_DATA namespace [15:21:51] Also in mediawiki-1.37.1/includes/registration/ExtensionRegistry.php - $this->getLazyLoadedAttribute('ExtensionNamespaces'); // this includes Module and Module_talk namespaces,but not Data nor Data_talk [15:24:33] JsonConfig does some conditional loading/registration [15:28:16] Aha! in extensions/JsonConfig, yep, haha I was just about to say that [15:36:38] So then maybe in the $wgJsonConfigs['Tabular.JsonConfig'] declaration mentioned in https://mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates do I have to pass some values so that NS_DATA/486 will be listed in namespace restrictions at wiki/Special:ListGroupRights ? [15:41:29] If the namespace is not known to MediaWiki (ie, not appearing in https://dev.moasspedia.org/w/api.php?action=query&format=json&meta=siteinfo&siprop=namespaces ) it shouldn't be listed at namespace restrictions [15:48:03] Documentation https://mediawiki.org/wiki/Manual:Extension.json/Schema#config "requires separate registration via a hook" should be a link to a page (that I'm trying to find explanation of this) [16:01:42] !hook CanonicalNamespaces [16:01:42] https://www.mediawiki.org/wiki/Manual:Hooks/CanonicalNamespaces [16:01:46] probably.. [22:28:48] when running `php --maxjobs=1000 --procs=10 runJobs.php` in shared hosting environment, and a bunch of the processes get killed "Yikes! One of your processes (php, pid 174595) was just killed for excessive resource usage. [22:28:48] Please contact Support for details." does that job still exists in the sql job table to try again? or is that job lost forever? [22:35:24] IIRC, jobs are deleted only when finished correctly. If they fail, or the job run is cancelled/killed, they'll be picked up on a new run [22:36:27] Failed jobs may be placed in a failed or abandoned state if they fail, and may take a while for them to be picked up again on new runs, but I don't know for sure how it works [22:38:01] I had a jobs table with 20,000+ jobs to run since last night,and it was taking a long time to go through them cuz the runJobs.php script was processing,but the count kept on going up, adding more jobs from existing jobs or whatever, and I was confused but now it is down to 1252 so far, mnd should be 0 in a few minutes [22:38:35] but I think my shared hosting killed probably 500-1000 jobs, lol, and I hope they weren't lost [22:41:02] if a job is killed mid-execution it'll be eligible to be retried after an hour [22:41:05] (using default configs) [22:42:59] also by default, it'll be tried up to 3 times total, after which the job will be deleted without having run [22:43:18] if your host is in the business of murdering your jobs, you may want to bump that above 3 [22:43:47] via e.g. $wgJobTypeConf['default']['maxTries'] = 5; in your LocalSettings.php [22:44:59] you can also perhaps run fewer jobs at once so that your host doesn't kill as many [22:46:09] yeah, I was just trying to hurry up and get the jobs back down to 0 so I can push some other updates that recommend processing the jobs first [22:47:33] the job_attempts column shows highest value is 1, so that is good,less than 3 [22:47:55] I set $wgJobTypeConf['default']['maxTries'] = 50; for now just to be safe [22:49:50] $wgJobTypeConf['default']['claimTTL'] controls how long it'll take before a future runJobs can pick up a failed run (in seconds). By default it's 3600. But keep in mind that making this too low could make the job runner try to run duplicate jobs -- it doesn't know if the original execution is still running or if it was killed [23:10:23] MediaWiki 1.37.1 ./languages/i18n/en.json: "protect-level-sysop": "Allow only administrators", // Wikipedia: "Require administrator access" [23:14:33] Ah, I see. It's defined at https://en.wikipedia.org/wiki/MediaWiki:Protect-level-sysop [23:15:03] It's not defined, it's displayed ;) [23:23:33] well, both in that case, no? [23:23:39] since enwiki customized that page [23:26:51] My first impression was that the MediaWiki v1.37.1 language is misleading. If I remember correctly about how ALL permissions are required, and not just one, that in cases where even being an "administrator" may not be sufficient for the editprotected group right [23:28:01] meaning, groups other than Administrators can have that permission, and thereby "only administrators" is wrong wording [23:33:17] Oh, since nobody can edit/move/delete the Wikipedia templates that exist in the Template namespace on my site, I also wanted to add a single line of text to appear above all the template pages linking to the site-specific namespace for templates. Which hook should I look for to inject above the article name header? [23:35:03] note: I want to keep the Template/Module/Data/Help namespaces synchronizes with Wikipedia, and if anyone wants to edit any of those, they can contribute on Wikipedia for improving them or whatnot [23:44:02] !editnotice [23:44:19] !editnotice is https://www.mediawiki.org/wiki/Manual:Interface/Edit_notice [23:44:19] Sorry, you are not authorized to perform this [23:44:27] ffs [23:53:37] who's Reedy? [23:53:54] !editnotice is https://www.mediawiki.org/wiki/Manual:Interface/Edit_notice [23:53:54] Sorry, you are not authorized to perform this [23:53:55] I trust: petan!.*@2a01:430:224::180 (2admin), [23:53:55] @trusted [23:53:56] * Izno laughs. [23:54:10] i guess the bot got wiped or something. oh well [23:54:21] petan, halp [23:56:25] on libera migration, perhaps? [23:56:41] I'm amused it's taken us this long to realise [23:56:52] Hmmmmmmmmmmm, the runJobs.php script is claiming that the job queue is empty, but the sql jobs table still shows 16 rows of data [23:57:01] if it was there then yes [23:57:46] ryzenda: Are they claimed? [23:58:22] what does it mean to be "claimed?" I don't see any matches show up in phpMyAdmin for the jobs table [23:59:44] also the documentations on mediawiki.org don't seem to mention anything containing the search string "claim" either [23:59:52] job_token_timestamp [23:59:59] >"Timestamp when the job was locked"