[09:20:13] hello [09:20:28] i have problem with instaltion [09:21:44] message on site: "You can not find the right database driver! You need to install a database driver for PHP. You can use the following types of databases: MariaDB, MySQL or compatible, PostgreSQL, Oracle, Microsoft SQL Server, SQLite." [09:30:56] ??? [10:14:49] Darek: Hi. Which database driver do you have installed? [17:37:42] hello. how what mean : in [[:{{{1}}}]] ? [18:05:41] test test [19:13:07] is there a decent reference for mediawiki source code somewhere (classes etc) or am I better off just grepping the source? [19:13:23] I've been doing pretty well via grepping, but am a little surprised I couldn't find anything better... [19:13:29] depends what you want... [19:13:39] doc.wikimedia.org does exist [19:13:42] yeah [19:13:44] I more like grepping myself [19:13:51] I find the website a bit complicated to use [19:14:01] and the source lets you see what everything actually does more easily [19:14:23] https://www.mediawiki.org/wiki/Manual:MediaWiki_architecture also exists, although its a little bit out of date at this point [19:14:24] hmm, it seems a little better than I thought actually (the site) now that I look again [19:14:55] right, most of the wiki pages seem kind of patchy [19:15:00] some are ok, bit a lot is missing [19:15:04] but* [19:15:13] for example this on OutputPage: https://www.mediawiki.org/wiki/Manual:OutputPage.php [19:15:21] doesn't clearly mention addHTML which is what I wanted [19:15:42] The manual pages for the individual classes aren't exactly great [19:15:44] it mentions it but only in context of addPrimaryWikiText [19:15:46] yeah [19:15:55] I've been doing better than I expected just reading everything [19:16:08] I am not even really a php programmer but I can pretend to be one I suppose [19:17:51] any suggestion how, given the name of a file (as in /wiki/File:foo.jpeg), I can look up its public URL? I mean the URL that would contain some version of the image, be it full size or thumbnail? [19:17:56] via a hook I mean [19:18:23] maybe LocalFile somewhere? [19:19:43] Try using mediawiki/includes/specials/SpecialRedirect.php as an example [19:20:34] ok [19:21:40] ah, there is wfFindFile [19:23:22] hopefully I can pass it the file name, not title with spaces [19:27:57] cool. it works [19:30:09] for images, does mediawiki store anything other than the original file and thumbnails? [19:30:23] such as? :P [19:30:26] for example, does it auto scale to a range of sizes, convert between formats, or antyhing like that? [19:30:39] I mean files on disk [19:30:42] not whatever is in the db [19:31:24] it seems like it does create a bunch of thumbnails [19:32:05] It doesn't do any conversion between formats, except for thumbnailing some images [19:32:14] ok [19:32:29] You can make it render certain thumbnail sizes at upload time if you want [19:32:39] But that's off by default [19:35:55] MediaWiki has different image handling classes [19:36:16] Sometimes they can define special conversions [19:36:26] like svgs, can have different "language" conversions [19:37:52] Reedy: how/when are thumbnails created by default, then? [19:37:58] on demand [19:38:06] ie you add it to a page, and someone requests it [19:38:09] ok [19:41:19] so basically, I'm adding a hook for EditPage::showEditForm:initial [19:42:09] this is for a type of page that contains a particular image (just one) and I am going to detet whether it's that kind of page, and if so add a js module that will provide an extended editing interface [19:42:19] which among other things will include showing the image on the edit page [19:42:34] (that is, just one image per page, not one image total) [19:42:57] I want to hand off the image stuff to the front-end js code, so I need to send in a url, and I guess I'll just link to the original [19:43:12] but, if I need to, when the hook runs, I could generate thumbnail(s) of appropriate size to be sure they are available [19:43:32] from the front end side, you can use the api action=query&prop=imageinfo to get the url to a scaled thumbnail [19:43:48] thanks, I was looking for that [19:43:49] or you can do it in your hook with the transform method of file [19:43:53] that is for title=File:...? [19:43:55] to generate a url [19:44:13] for the api version, yes (titles plural) [19:44:18] oh, ok [19:44:38] for the server side version you would use wfFindFile to get a File object [19:44:46] I actually think full quality original image is more appropriate as a starting point, because this interface will have zoom in capability and such [19:45:06] I just did it with wfLocalFile, any reason to use wfFindFile instead? [19:45:56] well, it looks like wfFindFile is the intended function for this use [19:46:35] right up until someone uploads something the size of https://commons.wikimedia.org/wiki/File:03_Flat_Image_200dpi_Iglesia_Parroquial_de_San_Guillermo_de_Aquitania_Version_1.0_ProjectKisame_(15214229916).jpg :P [19:46:55] haha [19:46:58] so [19:47:08] we actually mostly know where these will be coming from and how big [19:47:10] but yes, that's a good point [19:47:27] we can't guarantee they will be reasonably sized [19:47:40] wfLocalFile is to ensure its currently on this particular wiki, and is more used for write action [19:47:55] oh, so wfFindFile could potentially be interwiki or something? [19:47:57] wfFindFile is for finding any file, which could be a non local file if you have foreign file repos set up [19:48:00] ok [19:52:54] what would be the easiest way from index.php or api.php (or elsewhere) to list all images on a wiki? [19:52:59] this is for testing setup, there won't be a ton [19:53:12] I just want to make a way to delete them all to start testing fresh [19:53:39] index.php won't tell you [19:54:03] there is a human readable list of files somewhere [19:54:06] api.php?action=query&list=allimages&ailimit=max [19:54:11] thanks [19:54:13] will try that [19:54:27] You can filter the properties and only display the stuff you want [19:55:01] yes, this is exactly what I meant. thanks! [19:55:11] now I have a bit more clue how to use api.php and read the docs [20:49:35] New version of images don't trigger thumbnail recreation (1.30.0) [20:49:36] https://www.mediawiki.org/wiki/Topic:Ue3vm0w9svt3yjb5 [20:49:37] Anyone know why thumbnails won't update after the main image is updated in 1.30? [20:50:03] (I have no idea why the font is so big on that last post.. sorry) [21:04:58] revansx[m]: does purging the image page help? [21:05:34] the purge option is gone from the action menu in 1.30 [21:05:39] only refresh [21:05:44] and refresh does not help [21:07:33] just add ?action=purge to the url [22:40:10] In the Topic I linked from Mediawiki.org a user named "Ciencia Al Poder " stated that the problem could likely be with a failing extension such that the htmlCacheUpdate is never inserted.