[00:01:35] (Never mind, just hard-coded a change into BaseTemplate.php even though that's not ideal :/) [06:10:14] Blackwire: like you want role="foo"? you can just set it as an extra key/value on the link and it should work [13:58:45] Is there a magic word or parser function of some kind that will allow me to get the "value" of a string? [13:59:43] for sorting purposes in a table [14:00:36] ShoeMaker: What do you mean by value? [14:01:58] Like A is sorted before F because 65 < 70 [14:03:00] get an integer of character codes from a string. [14:03:24] So `Can` = 067097110 [14:04:40] Based on https://www.php.net/manual/en/function.ord.php [14:10:17] For my use case, I could "probably" urlencode the string as a path, #replace to strip all the % signs, and then convert the hex to dec... [14:17:18] anyone please help with [14:17:27] Error creating thumbnail: Unable to save thumbnail to destination [14:19:06] ShoeMaker: sortable tables already sorts by string value [14:19:09] !sortable [14:19:09] In recent versions of MediaWiki, a table can be made sortable by assigning the css class "sortable" to it. This feature requires JavaScript to be enabled. [14:20:23] BeepBot: https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Unable_to_save_thumbnail_to_destination [14:23:27] Right, but the first characters are zero padded numbers: 01, 02, 03, ..., 12, 13, ..., 30 and if I set it as a alphabetic sort, it'll sort 10-19 between 1 and 2 and 20-29 between 2 and 3. [14:24:27] So... If I can convert a string into a numeric value, it'll properly sort 02067097110 before 14067097110 [14:25:37] what if you manually specify the sort key? https://www.mediawiki.org/wiki/Help:Sorting#Specifying_a_sort_key [14:26:19] I'd have to manually set sortkeys on thousands of pages. :\ [14:26:41] ...and I'm not even sure it would work with https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) [14:29:26] If {{REVISIONID: page name }} wasn't so expensive, I'd just use that number for the text part (which are page names). [14:31:06] I mean... I guess I'll have to make a {{Char2Dec}} template that will return the decimal value of a single character and make it work from that. :\ [14:33:43] ShoeMaker: can you test the sort order here? I don't see a problem https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=4043923 [14:33:45] Vulpix my local setting doesn't have $wgUploadDirectory .. [14:34:05] !wg UploadDirectory [14:34:06] https://www.mediawiki.org/wiki/Manual:%24wgUploadDirectory [14:34:18] See its default value [14:38:26] Was that recently fixed? [14:46:26] Vulpix No luck :/ [14:51:01] BeepBot: Continue reading the manual: https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Check_directory_security [14:52:00] Vulpix actually i fixed the problem of file not uploading but i still see [14:52:02] no higher resolution available. [14:52:30] Upload images with higher resolutions [14:53:11] is there a default setting? [14:56:42] For what? [14:57:15] the resolution of images [14:58:32] also uploading image using link works? [15:11:03] Vulpix how do i upload images with links? like i have a https://graphics.tppcrpg.net/mini/001.gif [15:11:18] and i want to upload it using the link. [15:12:17] BeepBot: https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Uploading_directly_from_a_URL_(%22Sideloading%22) [15:16:38] Vulpix i have enabled that but what is the trigger to that? [15:16:45] like [file:]? [15:17:43] You go to Special:Upload and paste an URL instead of selecting an actual file from your disk [15:18:02] and for editing a already written page? [15:26:31] like i have this [15:26:33] https://prnt.sc/u2b486 [15:26:43] Vulpix [15:27:27] what do you mean by editing? Are you asking how to edit a wiki? [15:28:22] i mean can i make that link into a image on a wiki page ? [16:23:53] Is there any good way to troubleshoot why category lists wouldn't update in 1.31.8? I can't really find any error logs associated [16:28:07] Question: DB_SLAVE is apparently deprecated fully now (according to https://www.mediawiki.org/wiki/MediaWiki_1.34/wmf.10). However, I upgraded a wiki to 1.34.2 and going to the Preferences link gives this error: [16:28:22] [Xz1QlhZLhGVPfGMpxbYE-AAAAEQ] /wiki/Special:Preferences UnexpectedValueException from line 462 of /var/www/randomwiki.com/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Invalid server index index #DB_SLAVE [16:28:58] Any ideas how to fix this? [16:30:46] nihonjoe: do you have the full stack trace? [16:30:59] Yes. [16:31:25] I've never posted something that big here, though, so it might seem like flooding. [16:31:31] use pastebin! [16:31:43] I'm unfamiliar with that. [16:31:59] or dpaste.de, in the welcome message [16:32:00] you'll get kicked from the network if you paste it, use something like https://paste.toolforge.org/ [16:32:04] otherwise you get the boot [16:33:00] nihonjoe: change DB_SLAVE to DB_REPLICA and that should fix it [16:33:18] https://dpaste.org/3Kk6 [16:33:23] Does that work? [16:34:00] yes, thanks [16:34:08] Ashley: I'll try that. Just in LoadBalancer.php, or is it possibly elsewhere, too? [16:34:59] nihonjoe: the stack trace suggests it's not caused by MW core but rather by the BetaFeatures extension so try upgrading that [16:35:24] ashley: Okay, I'll try that. [16:35:34] core itself should not be generating such errors :) but outdated extensions can be [16:36:29] as a rule of thumb you should never be touching MW core files, other than during MW upgrades, because there's potential that if you add a core hack of your own, it'll get lost the next time you upgrade; hence core hacks aren't usually a sustainable solution for any problem [16:36:38] I'd genuinely appreciate any guidance on troubleshooting this category update stuff. Just need to know where I can look at some sort of debug feedback. Running refreshLinks on 330k pages is getting very old :( [16:36:43] Yeah, I've been running into that a lot. [16:37:10] Yeah, I try to avoid that, for the reasons you mentioned. [16:38:31] Ulfr: job queue not running? [16:38:39] job queue is at 0 [16:39:35] Oh. Job queue is stuck at 4 :| [16:39:35] https://www.wikidoc.org/api.php?action=query&meta=siteinfo&siprop=statistics [16:43:16] but it's not going down despite all front ends trying to run runJobs.php [16:44:11] they may be failed jobs. They aren't attempted again after some time IIRC [16:44:52] sounds like that might be what I need to look at, where would I find details about those failed jobs? [16:56:00] Ulfr: https://www.mediawiki.org/wiki/Manual:How_to_debug#In-depth_debugging [16:56:27] Specifically, wgDebugLogGroups for "error" and "exception" [16:57:28] I will double check my error_logging credentials but I already had that debug log going, it just wasn't showing anything related to category updates. I'll take a closer look though. Thank you! [16:57:29] If it's all on one server and it's not too busy, you can also try wgDebugLogFile [16:57:40] Which would enable all log group channels at once [16:57:47] No, it's load balanced. Makes this super fun :| [16:58:16] These will likely not show in PHP or Apache logs, unless it's fatal [16:59:11] MW supports larger setups as well, you can send logs to a UDP socket or Kafka or Logstash or rsyslog etc [16:59:31] For Wikipedia, we use rsyslog and then forward to Kafka/Logstash [17:00:56] Solid copy. Will investigate. Am trying to clean up that log at present. A neglected older version of Semantic wasn't precisely simplifying matters in terms of log clarity :| [17:01:35] Um, I just checked my jobs table. The API is telling me there are 4 jobs waiting, but there are 16840 records in the jobs table. Am I as screwed as that makes me think I am? [17:22:08] Better question, would it be a bad thing if I truncated my jobs table? [17:36:19] That shouldn't be possible... unless you've set up jobs in redis and the database has old jobs from before the switch [17:36:32] Or you're looking at the wrong database :) [17:37:51] truncating that table means those jobs will never run... which may cause some inconsistencies or data loss: pages not updated, search index not updated, email notifications not sent... it depends on the jobs that are there [17:43:00] Um, dunno about no redis, but MOST of the jobs are from.. 2015? a couple that are more recent. but I'm still confused why showJobs lists 0 jobs waiting and the API tells me 9 are in teh works [17:59:29] Are magic words required to be ALLCAPS? I can't find anything in the manual that specifically says one way or the other