[00:24:29] Anyone? [00:39:09] hello i previously had mediawiki installed at /sourcewiki.org now installed at /sourcewiki/w [00:53:57] hello i previously had mediawiki installed at /sourcewiki.org now installed at /sourcewiki/w [01:03:46] ok [01:04:39] someone knows what my problem is? [01:07:09] Is there a filter that prevents the creation/editing of pages for a certain group of users? [01:56:19] The idea is to prevent "bots" from editing the namespace [01:57:48] You can probably do it with $wgNamespaceProtection [01:58:00] Define a right that users have but then set it explicitly to false for the bots group [01:58:46] $wgNamespaceProtection[NS_FOO] = [ 'fooeditor' ]; [01:58:47] $wgGroupPermissions['user']['fooseditor'] = true; [01:58:47] $wgGroupPermissions['bots']['fooseditor'] = false; [01:59:06] bot singular, not plural [01:59:55] Hey there. I'm getting an error of "PHP Fatal Error: Uncaught Error: Class 'Wikimiedia\Rdbms\IDatabase' not found in [...]/w/includes/rdbms/defines.php:9. Recently took over a wiki project, tried upgrading it from ~1.26 to the latest version and I seem to keep hitting error after error. Not sure if this is also down to me or artifacts on the [01:59:56] server. [02:00:20] *Above error is when I run update.php. Site is currently a blank page. [02:00:25] hello i previously had mediawiki installed at /sourcewiki.org now installed at /sourcewiki/w [02:00:58] SamiWei: You're stating a fact, but not telling us what the issue you're having [02:01:12] !blankpage | ffc [02:01:12] ffc: A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [02:01:35] Thank you [02:01:36] ffc: Though, if IDatabase is showing as missing.. You've not updated/replaced all files, and/or your autoload is out of date [02:02:15] The files that need to be replaced, is it not just extensions, localsettings.php, cache and images? [02:02:27] I mean PHP files [02:02:53] php files in every folder? Sorry, I am still incredibly new to this [02:02:59] Yeah [02:03:11] ffc: welcome to your new life ;) [02:03:13] some people think it's easier to extract the php files to a new directory [02:03:22] and then copy/move images, LocalSettings etc to the new dir [02:03:32] Extensions need updating too when you upgrade MW [02:04:20] buZz It's not been a glamorous one so far. I've kept people waiting for three weeks, lmao [02:04:38] hehe thats fine [02:04:43] !upgrade [02:04:43] http://www.mediawiki.org/wiki/Manual:Upgrading [02:04:49] they could have done it themselves if they really wanted it [02:04:50] Reedy - Is there any way of knowing where all the php files will be hiding around? Or is it a case of just going into every folder to find them? [02:04:51] Reedy: I'd rather use the filter so I don't have to make so many requests on LocalSettings (my wiki is on a wikifarm) Also for more "comfort" when making changes [02:05:01] ffc: find . | grep php$ [02:05:02] :) [02:05:16] ffc: most of them will be in includes.. some in maintenance, resources, languages too.. And skins and extensions... [02:05:23] hispano76: As in, an abuse filter? [02:05:31] Thank you guys so much [02:05:36] yes Reedy [02:05:37] Will start looking around [02:05:38] ffc: i think the hint was 'setup your new wiki in a new directory' [02:05:52] If you replace all files, you should be ok [02:05:59] the problem is that the redirection from sourcewiki.org/w to https://sourcewiki.org/wiki/P%C3%A1gina_principal is perfect but it gives me error [02:06:02] then once its working, just tweak the webserver to point to right place [02:06:04] But depending on your OS, file case changes [02:06:43] I can't see anything. Just a 404 error. [02:06:46] hispano76: It should be doable, but my AF is very rusty [02:07:48] a, ok :) [02:07:50] SamiWei: Did you change $wgScriptPath and $wgArticlePath? [02:07:53] ah* [02:09:57] Reedy haven't changed anything, just copy and paste from redwerks [02:13:06] previously it worked perfectly when I was in the main directory but I need to occupy the main directory for something else [02:14:18] If you move paths, you potentially need to change config [02:17:24] for that same reason delete the previous installation and from scratch install again at /w [02:18:10] I don't know what's going on, it's just so weird. [04:19:07] Is it possible to embed a video file in mediaWiki so I can provide my students with video instruction as well as written? [04:56:21] powerhouse_: https://www.mediawiki.org/wiki/Extension:TimedMediaHandler [05:08:29] legoktm, oh wow! YUS! tyvm [10:45:24] Hey, I got an error when I try to bind mediawiki with mysql in the installation process. [10:45:39] It is perrmission error [10:45:57] But the credentials are complately the same [10:46:21] Is someone had suck an issue before? [10:46:30] *such [11:11:29] D-melanogaster: "credentials are complately the same". What do you mean? A permission error is a permission error, you should fix permissions for those credentials [11:21:28] Vulpix: Well I thought it is because of the wrong permissions but I already tried multiple times with many new databases and nothing works. [11:22:08] I mean wrong permissions to database (mysql) [11:22:39] The user you're using for install has not the sufficient permissions to create a database [11:23:17] I have already create the database [11:24:00] then, the user doesn't have permissions to create tables, or see the database, or even connect at all [11:24:11] what's the exact error message btw? [11:24:11] Maybe because it is processing from the browser? [11:24:24] Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'my_wiki_aaas_user'@'localhost' (using password: YES). Check the host, username and password and try again. If using "localhost" as the database host, try using "127.0.0.1" instead (or vice versa). [11:25:35] Because the webserver is running on /var/www/ [11:25:43] The error message is pretty clear to me [11:26:14] mysql user system consists of both username *and* host from where it connects to the database [11:26:35] User 'my_wiki_aaas_user'@'localhost' is a totally different user than 'my_wiki_aaas_user'@'127.0.0.1' in terms of permissions [11:27:24] I tried both of them [11:27:25] Ensure you grant access to the user 'my_wiki_aaas_user'@'localhost', that's what it's being used [11:28:33] do you know in which config it can be modified? [11:29:45] it is not config, you have to run some SQL commands. unless you use some orchestration that creates users [11:30:19] Open a mysql command and type in (replace password and database name with the ones you're actually using): [11:30:22] CREATE USER 'my_wiki_aaas_user'@'localhost' IDENTIFIED BY '*******'; [11:30:23] GRANT ALL ON yourwikidatabasename . * TO 'my_wiki_aaas_user'@'localhost'; [11:30:45] yeah it is done already [11:31:00] Please do it again, because it should work :) [11:31:12] let me check [11:38:07] Vulpix, madness, it works [11:38:36] but I have done this manipulation I think more then 10 times [11:38:46] thanks anyway [13:24:35] I have a weird question, is it somehow possible that the code Jenkins tests in CI is different to the code that I uploaded on Gerrit? like, out of sync [13:24:55] I have Jenkins complaining here https://integration.wikimedia.org/ci/job/wmf-quibble-core-vendor-mysql-php72-docker/28937/console about line 1311 [13:25:00] Error from line 1311 of /workspace/src/includes/Storage/PageUpdater.php: Call to undefined method MediaWiki\Storage\PageUpdater::getOriginalRevisionId() [13:25:14] problem is, there is nothing like that in line 1311 https://gerrit.wikimedia.org/r/c/mediawiki/core/+/602432/7/includes/Storage/PageUpdater.php#1311 [13:25:42] there may have been, in an older patchset of this gerrit change [13:26:26] I... I don't know, I'm so confused right now [13:26:37] I think other files in this patch are fine, just this one [13:27:23] *just not this one [15:26:07] hmpf, tried resubmitting the patch (thanks Jack!), I even made some changes on top of that [15:26:28] still no luck, Jenkins doesn't want to accept it :< [21:46:23] Hey folks, is there a good hook for adding something to the note shown above a preview of a page in MW? The onAlternateEditPreview hook doesn't seem to let you do anything other than just replace the entirety of the generated HTML, and onEditPageGetPreviewContent only replaces the page content. All I want to do is add something to the preview note, leaving all the parsing intact. [22:31:38] Also, if anyone knows why ContentAlterParserOutput doesn't give you a ParserOptions object, I'd love to hear the reasoning :) [23:46:39] Naypta: maybe https://www.mediawiki.org/wiki/Manual:Hooks/EditPage::showEditForm:initial and using one or more of these editForm* properties of the EditPage object? https://github.com/wikimedia/mediawiki/blob/master/includes/EditPage.php#L302 [23:46:59] and re:ContentAlterParserOutput, my guess would be that nobody thought it'd be useful or anything...patches welcome, I'm sure ;)