[15:42:58] Hi. Sorry for spamming yesterday.. I will ask again question, but without spamming [15:46:17] I tryed to use updating from webbrowser to enable extension Echo on vezba.in.rs but this method no create in database what extension need and then I got error... You can see on vezba.in.rs now [15:47:25] I can not to use ssh on site, because my provider forbidde port 22 [15:52:35] !upgrade [15:52:35] http://www.mediawiki.org/wiki/Manual:Upgrading [15:52:57] I working it [15:53:10] But go on vezba.in.rs and see errors [15:54:29] Zoranzoki21: did you follow https://www.mediawiki.org/wiki/Manual:Upgrading#Web_browser [15:54:38] Zoranzoki21: I do not see errors, but a main page with red links [15:55:31] Vulpix: same [15:55:32] Wait to on pastebin put all errors to no spam here [15:56:10] https://pastebin.com/t9zMHvzT [15:56:52] Zoranzoki21: did you follow https://www.mediawiki.org/wiki/Manual:Upgrading#Web_browser ? [15:56:56] Yes [15:57:10] that should have created the tables you need [15:57:25] But, it is not created tables [15:57:30] I seen in phpmyadmin [15:58:53] Zoranzoki21: you ran the web interface to update.php and it didnt create the tables? [15:58:59] yes [15:59:53] Zoranzoki21: try re-running https://vezba.in.rs/wiki/mw-config/ [16:00:20] I tryed twice [16:00:28] No effects [16:00:33] does it give any errors? [16:01:46] I run update without errors.. And on end I got: update complete.. You can start using wiki.. When i go on site, then I got errors [16:02:02] https://pastebin.com/t9zMHvzT [16:03:07] Zoranzoki21: does the webservice account have rights to create database tables? [16:03:17] !e echo [16:03:17] https://www.mediawiki.org/wiki/Extension:echo [16:03:44] Yes.. [16:05:02] I only have a problem with echo extension [16:06:53] Other extensions which need creating tables work normal [16:07:05] I only have a problem with echo extension [16:08:21] Zoranzoki21: have you looked at the debug logs? [16:08:34] where is it? [16:08:47] !debug [16:08:47] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [16:09:03] I enabled $wgShowExceptionDetails = true; [16:09:03] $wgShowDBErrorBacktrace = true; [16:09:33] You can see result on vezba.in.rs or on https://pastebin.com/t9zMHvzT [16:11:17] Zoranzoki21: what that means is that you dont have the database tables echo needs, running update.php should fix that, but isnt for some reason. [16:13:22] https://pastebin.com/vfc8H9Wf [16:13:36] Output of upgrading [16:13:38] Zoranzoki21: you could set $wgDebugLogFile and run the updater and see if it shows anything [16:13:51] ok.. I will do it [16:14:55] the updater should print a list of the action it takes when it finishes [16:15:36] the only reason I see it may not update is if you have defined $wgEchoCluster in LocalSettings.php https://phabricator.wikimedia.org/diffusion/ECHO/browse/master/Hooks.php;1cae6b4f51341be017eb3381355f670c641f8d85$184 [16:16:09] I have not defined $wgEchoCluster in LocalSettings.php [16:18:07] Where to find log? [16:18:53] there's a textbox (textarea) with the output of the upgrade script when it says it's done [16:19:15] if it's empty something may be wrong [16:19:53] Zoranzoki21: where did you tell it to log to ? https://www.mediawiki.org/wiki/Manual:$wgDebugLogFile [16:20:10] Vulpix: https://pastebin.com/vfc8H9Wf [16:20:29] Vulpix: almost seems as if thats a dry run [16:20:50] oh missed that [16:21:49] I defined /images but I can not to found log [16:22:37] https://snag.gy/CpIy8z.jpg [16:24:20] Zoranzoki21: try setting: [16:24:27] $wgUploadDirectory/debug.log [16:24:52] might need full path\ [16:25:40] no work it too [16:27:32] Can I create tables by hand? [16:27:43] But with which parameters? [16:29:21] Zoranzoki21: yes, but its not really reccomended. There should be .sql files that come with the echo extension [16:34:11] and it no work [16:35:17] Hi! which part in mwapi can get me the templates associated with a page? [16:36:59] Creating tables by hand no work [16:39:09] Good news.. Work [16:39:13] Thank you bawolff [16:39:20] And other users too [16:41:26] codezee, https://www.mediawiki.org/w/api.php?action=parse&page=MediaWiki&prop=templates [16:42:23] OH-: thanks... [16:42:41] have fun [16:43:32] Too thanks for help for echo extension.. I am happy now :D [19:53:14] Is there an API for downloading the list of all currently supported mediawiki versions? [19:53:30] (including the minor version) [20:00:56] any mediawiki extension devs here? how can I use CSS in an extension so that people can customize the output? [20:09:07] t355u5: I guess it depends on exactly what you mean, but if you use css classes for styling and document the class names then the styles could be overridden in the site's MediaWiki:Common.css [20:13:29] dalcde: I don't know of an API, but there are a collection of templates related to this on mediawiki.org -- https://www.mediawiki.org/wiki/Category:MediaWiki_version_information_templates [20:15:02] That's helpful. Does that only list currently supported versions? [20:15:56] the lua module that's behind all of these tracks the current version of the LTS, Legacy, and Stable branches [20:16:28] which is the set of releases that are still receiving some level of security updates [20:17:22] the version numbers are manually updated in https://www.mediawiki.org/wiki/Module:Version when new releases are made [20:20:26] I see. [20:20:35] So LTS, Legacy and Stable are always the only supported branches. [20:21:51] bd808: yes, that is exactly what I mean, but I want to know what I have to do in the extension to do this. how do I load CSS from a css file and pass it to the output? do I have to register the CSS file in the extension.json, how do I return the css with the output, and so on. [20:21:52] And is there a good way to retrieve that information without having to parse the html code? [20:22:07] (I suppose it might be easier to read https://www.mediawiki.org/wiki/Template:MW_legacy_lts_release_number but my question stands) [20:23:31] dalcde: there can also be a "Legacy TLS" branch for a brief time, but yeah 3 major versions usually. Someone may have built a tool in Toolforge or elsewhere that does some scraping already, but I don't know where it is if it exists. [20:23:56] t355u5: ResourceLoader will let you add css files. [20:24:33] t355u5: https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers [20:25:02] Hmm maybe I can get something out of https://www.mediawiki.org/wiki/API:Query [20:26:15] legoktm: Do you know if there is a json/machine readable API that dumps out the current versions for the supported release branches? [20:26:38] (if there is one legoktm will know where it lives) [20:28:01] dalcde: I found https://tools.wmflabs.org/mwpackages/ (a tool legoktm made) [20:28:51] it doesn't seem to have a json api, but that probably wouldn't be too hard to add [20:29:30] ah ha -- https://www.mediawiki.org/w/api.php?action=expandtemplates&text={{MW_stable_release_number}}|{{MW_legacy_release_number}}|{{MW_legacy_lts_release_number}}&format=json&formatversion=2&prop=wikitext [20:29:49] Wow thanks [20:30:11] bd808: thx, but this only describes .js usage. It does not tell me how to use it for CSS files. [20:31:13] bd808: I'd need a simple example, like the output of a table with a CSS class called ext-foo-bar. [20:31:29] that's all I need. [20:32:10] But I couldn't find a simple extension that does exactly that. [20:33:33] t355u5: see https://www.mediawiki.org/wiki/Manual:Extension_registration and https://www.mediawiki.org/wiki/Manual:$wgResourceModules [20:35:18] t355u5: this isn't competely simple, but as an example, here are some links to CentralAuth using a css-only module [20:35:38] First the module is declared in extension.json -- https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/master/extension.json#L325-L327 [20:36:11] Vulpix: and here we go again. I don't understand it. it states: it will create a module called '…' and so on. I don't need a module, or wouldn't know what to do with the module. [20:36:23] and then a special page adds the css to the output -- https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/0d0514e290852ebd47ff802d48dc9c34bd8e17fa/includes/specials/SpecialGlobalRenameUser.php#L50 [20:37:11] a resource loader module can be just javascript, javascript + css, or just css [20:38:33] Hi [20:38:34] ok, but as I am not really a CSS guy (nor JS for that matter), it would be nice, if there was an example (a very simple one like I described earlier) that shows how to use CSS [20:38:45] Can echo extension be faster? [20:40:33] Zoranzoki21: in what way? [20:40:56] Extension loading slow.. Site loading normal [20:40:59] the vague answer is always going to be "yes, if we know what is slow and fix it" [20:41:06] bd808: I can read all the resource loader documentation again, but I doubt that it will help me to figure it out. that's why I asked here, what I have to do to get this done [20:41:39] When I click to see notify, it start with loading but without response [20:42:55] t355u5: https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#CSS is the "best" I can find right now [20:43:34] and I agree that's not a clear stepwise tutorial [20:44:19] bd808: I don't have an issue with PHP, I just need to know how to glue the CSS to the output. so let's say I output a table with a class name of ext-foo-bar. what else do I have to do that the css of ext-foo-bar is sent along [20:45:07] bd808: thanks, I will try to read it again. as mentioned before a simple test extension should not be that complicated, I believe it wouldn't take more than 50 lines of code. [20:45:16] $outputPage->addModuleStyles( 'my.cool.style.module' ); [20:45:25] bd808: but nobody ever thought of writing such an example [20:50:20] bd808: hmm, the funtionparser hook returns the output as a string: $output = " t355u5: you may have to use an additional hook. I've never done it with a parser function. [20:52:42] when I'm looking for an example of something in the code, I often go to https://github.com/wikimedia/ and use the "This organization" search at the top of the page [20:55:24] bd808: yep, I thought of that, but the examples and/or results were too complicated. js that lazy loads css and whatnot. all I need is a very simple example and I could go from there, but nothing of the sorts is available. or at least I couldn't find it. [21:03:11] t355u5: a simple example may be https://www.mediawiki.org/wiki/Extension:InputBox [21:03:30] it's a parser hook and has css-only resource loader modules [21:05:57] Vulpix: thx, will check it out.