[10:48:49] hey, i have a backup of an old mediawiki instance, probably not done correctly, and I need help getting it back up. [10:49:18] basically, i backed up my sql and the wiki folder, and i need to recover from that [10:49:56] this instance is about 3 years old (2019?), i've already imported the DBs, set up SQL, but the install is completely broken [10:50:30] one of the most important things i have to do likely is update the DB password to whatever it was to what it is now, how can I do that? [10:52:50] okay, nevermind about that last part. just remembered about localsettings [10:54:42] but yeah dozens of dozens of deprecated errors from php?? [10:55:12] That's not really a surprise [10:55:19] If you're using an older version of MediaWiki and a newer version of PHP... [10:55:57] should I try to upgrade it now? it doesn't seem to spit anything out other than that and a lot of warnings, but no fatal errors. [10:56:22] Is it mostly working othe than those warnings? [10:56:52] it is not working at all. ("it doesn't seem to spit anything out") [10:57:40] !blankpage [10:57:40] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [10:59:46] the debug flags are already on, and i'm not getting any error output, just warnings and deprecations. [11:00:38] Screenshot? [11:01:17] https://zulc22.space/uploads/sharex/wiki_errors.htm [11:01:47] Are you using PHP 8? [11:02:18] Or 8.1... [11:02:32] 8.1.3 [11:03:16] In theory MW supports PHP 8/8.1 in newer releases, but we haven't fully signed off [11:03:38] You've got backups... So you might just be worth upgrading and seeing where you end up [11:27:34] it seems like the wiki is working, but the default skin is broken [11:28:31] Broken how? [11:28:37] Did you update all skins and extensions at the same time? [11:29:15] i had no extensions, and i copied the skins from the old install [11:29:31] but i deleted the old ones and copied the new default skins and still broken? [11:29:37] theres no css styling at all [11:31:07] Check your browser console [11:32:00] it seems to want to load 'load.php' from / instead of /wiki/ [11:32:02] hold on [11:34:22] fixed it, had to change the wgscriptpath and wgserver vars [11:36:53] images aren't working properly now though [11:36:59] checkimages.php doesnt see a problem [11:37:32] they're all redlinks' [11:38:15] checkImages mostly checks if files exist on disk etc [11:38:43] so why wouldn't they show up in the wiki? [11:39:04] If they're showing as redlinks, it sounds like they don't exist as pages [11:39:20] The file on disk is distinct from the File pages onwiki [11:39:32] they're Image:* links [11:39:50] do they need to be replaced with File: or something? [11:39:54] Probably [11:40:14] yep, they do... crap [11:40:28] I dunno if you had some custom alias at one point... But as long as I can remember, at least in English it's been File (or Media which has a special meaning) [11:45:20] i really shouldn't have, I have no clue why it did that [11:45:48] my install was vanilla except for the logo and vector darkcss [11:45:52] also how can i remove vector darkcss [11:46:25] its breaking stuff [11:47:28] Revert whatever you did to add it [11:47:42] Possibly at MediaWiki:Vector.css [11:48:15] yup thanks [11:59:50] okay now the image uploads are weird [12:01:11] it keeps changing it to the original but stretched to the new dimensions [12:01:43] Did you previously have rewrite rules to handle thumbnailing? [12:01:45] !thumbs [12:01:45] For information on configuring thumbnailing on MediaWiki, please refer to . [12:02:41] oh thank god that fixed it [12:02:45] i had to just enable imagemagick [12:13:46] amusing behaviour from the syntaxhighlight extension, it stops working when I switch my FCGI proxy to PHP 8 [12:13:52] works with 7.4 [12:14:29] guess I will have to look into this deeper [12:24:30] Reedy, perryprog, moonmoon: Just talked to my collegue, my problem I reported tuesday is solved, just talked to my collegue [12:24:40] \o/ [12:24:47] glad you figured it out [12:24:49] in the end he found the users to recreate with: [12:25:01] select DISTINCT rev_user,rev_user_text from revision where rev_user = '0' ORDER BY rev_user_text [12:25:35] and then used maintenance scripts to create and block the users [12:25:50] after that the upgrade went fine [12:32:46] okay so something is still wrong with the images [12:33:04] the thumbnail is fine but the actual image that's on pages is still the original image and not the new one [12:34:14] oh wait nvm its just cloudflare whoops [13:40:24] sigh, redhat upgrade broke my nodejs parsoid [13:40:44] nodejs went from v6 to v16, guess that is the reason [13:41:07] likely best to just upgrade to 1.35 and use parsoid/php ? [15:03:24] anybody still knowledge of the nodejs version of parsoid? [15:09:42] akoopal: it's not supported [15:09:56] so in short, move to parsoid/php [15:15:41] and to 1.35 then [15:16:22] which we should, but hoped for now to avoid as it's busy on other projects [15:16:33] akoopal: very much so ye [15:17:03] 1.35 is the oldest version actively supportes [15:17:07] s/es/ed [15:17:46] yeah, I know, LTS is good, but you should still upgrade once in a while [15:24:26] fortunately they upgraded my test instance first, so the production is still running [15:52:30] anyone know how to fix this error? [15:52:30] The requested page title contains invalid characters: "|". [15:57:34] Guest6455: https://www.mediawiki.org/wiki/Manual:$wgLegalTitleChars, but making `|` a valid title character is honestly going to break wikitext syntax because `[[ title | display string ]]` is how page links are created. [16:56:08] Eh, hi! Is this where you ask for technical support? [17:04:12] Gee-oh: yes [17:04:48] not only that, but the place where I have repeatedly *received* support [17:05:26] Awesome to hear! My support question is about Account deletion, if such is possible, since I forgot my own password. [17:06:36] I created my account two days ago, and did not add an email to my account unfortunately [17:08:22] Is there any way to do such an action? Since the name is crucial [17:11:25] * AntiComposite runs after them [17:29:17] Gee-oh, is this a question about a Wikimedia project, or another MediaWiki-powered site? [17:31:07] I'm not sure I know the difference between those two [17:31:28] Where did you create an account? [17:31:29] Here is the link to the site I'm having problems with https://minervawikin.nu/wiki/Huvudsida [17:31:44] Ok, so it's another MediaWiki-powered site [17:31:46] We can't help with it [17:32:14] Ah, I see. Would you have a clue where I should look next? [17:33:37] You'd need to contact whoever runs the site [17:34:13] Alright, Thank you! [18:18:05] I've got CentralAuth installed on my wiki farm but I'm looking to merge some global accounts. When I visit Special:GlobalUserMerge, though, I get the error that global user merging isn't enabled. I can't see a setting on the CentralAuth extension page for enabling this — does anyone know how it is done? [20:13:59] How can I count pages lined to a category and show it. [20:14:06] linked^ [20:15:01] Show it where? [20:15:13] Say right or left side of link [20:15:37] Manage File(5) <---ex [20:16:46] [[:Category:Manage File Script|Manage File]] <-- Actual link ,any options to do count or ext. [20:18:10] You're probably going to have to write your own extension for something like that (unless something exists already) [20:18:47] Okay I can do that. Just wanting to know if. [20:18:54] Thanks [20:19:15] Nothing worse than writing something that already is. [20:19:49] Hmm [20:20:44] One of the dynamic page list extensions might be able to do it [20:21:02] Okay [20:22:04] https://www.mediawiki.org/wiki/Manual:$wgArticleCountMethod [20:22:33] That's to do with wiki statistics [20:22:42] >Method used to determine if a page in a content namespace should be counted as a valid content page (article). [20:23:13] Could be modified to check specific name space [20:23:23] No [20:23:25] SELECT count(distinct(page_id)) [20:23:25] FROM pagelinks [20:23:25] INNER JOIN page ON pl_from = page_id [20:23:25] WHERE page_namespace = 0 [20:23:25] AND page_is_redirect = 0; [20:23:32] That is its guts [20:26:14] https://www.mediawiki.org/wiki/Topic:T6bm95mhnpjqonb5 [20:29:26] pagelinks does not exist in the main mw db [20:29:32] Looking [20:31:19] Yes it does [20:31:20] https://github.com/wikimedia/mediawiki/blob/master/maintenance/tables-generated.sql#L156-L167 [20:38:15] Was in a wordpress db [20:44:11] Nice works