[03:13:24] How do I get patrolling to work on a private site? [03:21:19] How do you get extension.json to load only if dependencies are loaded? [03:24:01] slushpuppeh: Put it last. [03:24:33] ok basically i got this [03:24:50] in localsettings - wfLoadExtension( 'PluggableAuth' ); [03:24:51] wfLoadExtension( 'IPBAuth' ); [03:25:13] That seems correct. [03:25:41] http://pastebin.com/YqNtvdxB - extension.json of PluggableAuth [03:26:17] Which version of Mediawiki? [03:26:20] http://pastebin.com/L4KFJEk8 - extension.json of IPBAuth [03:26:23] 1.27 [03:26:42] Well, that should work. O_o [03:27:27] basically, inside IPBAuth is class IPBAuth extends PluggableAuth [03:27:55] whereas inside PluggableAuth.php is "abstract class PluggableAuth {" [03:28:16] I get this error however: PHP Fatal error: Class 'PluggableAuth' not found in /www/w/extensions/IPBAuth/IPBAuth.php on line 4 [03:32:06] PluggableAuth should get added to the autoloader and automatically invoked when the PHP parser comes across that class name. That indicates that for some reason the "AutoloadClasses": section in PluggableAuth has something wrong. [03:32:21] Why is IPBAuth in the PluggableAuth extension.json? [03:33:34] Trela, they are 2 separate extensions [03:33:39] 1 extension depends on the other [03:34:09] Right, but someone added IPBAuth's class to the wrong extension. [03:34:30] I see someone ran convertExtensionRegistration.php on PluggableAuth too. [03:35:23] https://gerrit.wikimedia.org/r/#/c/299107/ [03:35:32] this is where i downloaded the PluggableAuth from [03:36:40] Uh. [03:36:53] None of that is going to work(or work well) in MW 1.27. [03:36:54] Oh [03:37:00] sorry about that [03:37:12] Why is IPBAuth in the PluggableAuth extension.json? <-- I added that in, forgot to remove [03:37:32] eh? [03:37:42] New authentication extensions should be developed against AuthManager and SessionManager that are new in MW 1.27. https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager [03:37:58] Older shims like PluggableAuth and such should no longer be needed. [03:38:38] are there any skeleton classes i can build on? [03:39:16] Yep! Let grab the path name. [03:40:22] Generally the auth/session manager stuff is here: https://github.com/wikimedia/mediawiki/tree/master/includes/auth [03:40:31] You want to base against the AbstractPrimaryAuthenticationProvider class. [03:41:05] LocalPasswordPrimaryAuthenticationProvider shows how local built in authentication works. [03:41:13] Oh wow. That's neat [03:41:43] It is! I have been rewriting the authentication system on my wikis for the past two weeks against it. [03:42:06] so simply extending AbstractPrimaryAuthenticationProvider would be suffice? [03:42:14] any namespacing issues I should worry about? [03:42:33] namespace MediaWiki\Auth; <-- that should trigger the autoloading mechanism correctly yeah? [03:43:15] Namespacing it is up to you. Are you planning to implement OAuth to IP.Board's system or just do password checking directly against IP.Board's database? [03:44:10] not password checking, basically piggybacking off IPB's sessions [03:44:24] so if users login into my board, they should also automatically login on MW as well [03:44:39] no password entry into MW [03:45:18] Ah, then you probably want to work more with the SessionManager stuff. https://github.com/wikimedia/mediawiki/tree/master/includes/session [03:45:50] Which I am just barely touching today for learning so I would just as lost as you. [03:45:55] but at least in the context of pluggableauth, it also created a user for me [03:46:29] and i hooked onto the "UserEffectiveGroups" to duplicate group settings from IPB -> MW [03:46:48] MediaWiki will automatically create (autoCreateLocalUser) a local user entry in the database during session setup if there is not one. If not, a very basic AuthManager shim can assist with that. [03:46:54] That hook can help with that. [03:47:41] That hook can help with that. <-- which 1? [03:47:58] UserEffectiveGroups can help with the group permission translation. [03:48:28] ok [03:49:25] thanks Trela [03:50:25] Of course! I messed with Extension:IPBAuth back in 2010/2011-ish when I had to split a wiki from a forum installation. This is weirdly familiar. :P [03:51:21] Haha [03:51:44] that extension is definitely old as heck ;p [03:52:29] MediaWiki will automatically create (autoCreateLocalUser) a local user entry in the database during session setup if there is not one. [03:52:37] where did you getthat information from btw? [03:52:45] https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager#Sessions [03:53:56] Experience! If the external AuthManager says, "That username and/or password are good", MediaWiki will automatically create the database row if it does not exist. [03:54:31] That is why you may need a small AuthManager shim that just helps clue MediaWiki's internal code to what the username is. [03:54:51] ah ok [03:55:21] https://github.com/wikimedia/mediawiki/blob/master/includes/session/SessionProvider.php [03:55:22] * @note The SessionProvider must not attempt to auto-create users. [03:55:22] * MediaWiki will do this later (when it's safe) if the chosen session has [03:55:23] * a user with a valid name but no ID. [03:55:52] Good, that means less for you then. :D [03:57:15] Hmm, but yeah your still right [03:57:33] looking at SessionInfo class, i don't see any email attributes of sorts [03:58:56] Hook into the UserGetEmail hook. https://www.mediawiki.org/wiki/Manual:Hooks/UserGetEmail [03:59:24] The Auth/SessionManager don't care about the email. So I use that hook to update and/or get the email from the remote database when necessary. [03:59:34] ok thx [04:00:05] *doesn't [04:00:24] One handed typing since my left wrist hurts. [04:04:38] thanks :p [04:06:09] Just a guess since I am searching for it, I assume this is for the Shark Brew site? [04:07:30] how did u know :o [04:07:50] I can find anyone with an internet presence. :P [04:08:32] well i run many ipb sites [04:09:17] surprised u narrowed it down to the 1 i am installing MW on xD [04:10:40] Just had to make sure /w/ was giving a 500 internal server error! [04:11:06] yup! [04:34:59] Do you have any ideas what would cause "Error in widget Twitter: Unable to load template wiki 'Twitter'"? [04:36:22] anyone can help me with php sessions ? i can't login "There seems to be a problem with your login session" [04:37:32] alexa1: are you using CentralAuth? [04:39:39] alex1a, what was inside the log file? [04:47:41] here's my log file https://ghostbin.com/paste/h83zo a little bit too long because i'm trying hard today [04:48:43] Reception123, i have a fresh install, no extensions was installed i guess [04:52:02] don't see any peculiar [04:52:20] activity. Are you running this via WAMP? [05:07:39] slushpuppeh, i'm running over lamp, debian jessie [05:10:50] alex1a, local hosting yeah? [05:11:29] i suspect the session ID doesn't match up to your $wgServer settings [05:11:44] yap, you can check it http://wwwht.ml [05:13:25] hmm [05:13:31] don't see anything odd [05:13:45] ur php session path directory is writable yes? [05:17:00] should i give 777 to "/var/lib/php5/sessions" ? [05:17:24] depends on ur php.ini settings [05:17:30] don't go chmod 777 to everything [05:19:37] "session.save_path" parameter is not set in php.ini [05:20:16] i'm thinking that was the folder for sessions [05:21:59] set the path [05:24:30] to where should i set ? [05:52:44] slushpuppeh: you can use the LocalUserCreated hook to fetch user settings from the remote source [05:53:08] to where should i set ? [05:53:10] anywherre [05:53:41] i confirm when is not set, by default session.save_path points to "/var/lib/php5/sessions [05:54:02] ok then chmod that [05:54:10] mediawiki was not a specific folder for sessions ? [05:54:33] tgr, is there a way to intercept newly created users before they are saved to the DB? [05:54:39] UserGetEmail is better if you want to magically keep it in sync with the remote, but it's more expensive since you will be calling it every time the email gets looked up [05:54:59] in general, no [05:55:59] or do you mean, prevent autocreation? [05:56:15] i was thinking of adding the email before it gets saved to the db [05:56:26] because > but it's more expensive since you will be calling it every time the email gets looked up [05:57:02] that is not possible [05:57:14] :( [05:57:18] o well.. [05:57:42] well, not supposed to be possible [05:57:44] under what circumstances does MW send an email? [05:58:18] oh [05:58:28] you can probably abuse semi-unrelated hooks to do it, but user creation is slow enough and rare enough that an extra UPDATE should not be a big deal [05:58:33] but actually with this LocalUserCreated hook, i can just update the user email directly [05:59:03] also tgr [05:59:45] emails are sent on registration, password reset, talkpage change, watched page change, user messaging by default (some of those are opt-in) [05:59:54] extensions can add various other things [06:00:03] if i am extending the SessionProvider class to provide my own session checking functionalities, wheres the hook point for MW to latch onto my new class? [06:00:15] thanks [06:01:22] alex1a, i do believe it defaults to the /tmp directory.. http://de.php.net/manual/en/session.configuration.php#ini.session.save-path [06:01:47] you can register your provider via $wgSessionProviders, MW will cycle through them on every request until one of them says it can handle the request [06:02:27] slushpuppeh, my /tmp folder is full of lessphp_***.lesscache files [06:02:40] should i set session.save_path to /tmp and chmod that ? [06:03:56] slushpuppeh: re wfLoadExtension, it adds the extension to a queue, then all extensions are processed in batches [06:04:25] ie. the autoloaders of all extensions are registered, then the config globals of all extensions are set, etc [06:04:55] if two extensions can only be loaded in a certain order, one of them must be doing something wrong [06:05:09] should i set session.save_path to /tmp and chmod that ? [06:05:10] yes [06:06:15] tgr, so wait, the loadextension checks the child class of each loaded? [06:06:27] i thought i still have to specify the classes to load and whatnot [06:06:55] wfLoadExtension just reads the json file and queues it [06:07:02] then all jsons are merged [06:07:46] do not bother yourself with my session thing problem, i do not understand much about mediawiki framewor. thanks again, i will come later [06:07:55] then the resulting thing is processed in steps, first the the autoloading, then the config... (or not. I am making the steps up.) [06:08:48] alex1a: if you use 1.27, session.save_path should have no effect [06:08:59] MediaWiki is not using PHP session handling anymore [06:10:04] tgr, yeah i'm using 1.27.0. any suggestion why i can't login ? [06:10:32] chances are the wiki cannot save the sessions [06:10:58] see https://www.mediawiki.org/wiki/Manual:$wgSessionCacheType [06:11:22] which I guess is not very helpful [06:11:51] the point is, from 1.27 MediaWiki uses the internal cache for storing sessions [06:12:21] if that's cache is configured to be something that's not really persistent (like CACHE_NONE) sessions won't work [06:13:27] setting $wgSessionCacheType = CACHE_DB should be a good way to check if that's your program [06:13:54] it's not a great setting (slow) but it will work in any environment [06:16:14] er i don't quite get it [06:16:26] in 1.26, i would do something like this: [06:16:51] require_once "$IP/extensions/IPBAuth/IPBAuth.php"; [06:16:51] $PluggableAuth_Class='IPBAuth'; [06:17:20] to specify the classname of the extension. In 1.27, I don't need the 2nd line after calling wfLoadExtension? [06:20:02] searching a little bit i found a thread where you explain that, http://bit.ly/2aXnN1Y [06:20:33] it's better when you understand, so i will come later with more information. thank you again both [06:20:40] slushpuppeh: not familiar with PluggableAuth, but if it uses the extension registry (wfLoadExtension) then whether you are setting $PluggableAuth_Class before or after you are loading either IPBAuth or PluggableAuth should not matter [06:21:03] that's not 1.27-related actually, extension registration is from 1.25 I think [06:23:37] alex1a: T138072 has some vaguely related discussion [06:23:38] T138072: Persistent login session issue on some wikis (due to XCache not saving data across requests?) - https://phabricator.wikimedia.org/T138072 [06:25:07] tgr, what about in the context of a extension that extends SessionProvider? [06:25:16] (i am making this extension myself btw) [06:26:21] what about what? [06:33:05] tgr, lets say my extension extends one of the MW core classes [06:33:44] do I have to explicitly set inside the LocalSettings to call my extension class name? [06:34:40] I'm not sure I understand the question [06:34:48] let me pastebin it for you [06:34:54] you prived a class name => path mapping in extension.json [06:35:14] (before extension.json was a thing you did it in ExtensionName.php) [06:35:28] MediaWiki uses that to load the class when it is first references [06:35:36] *referenced* [06:37:38] tgr, http://pastebin.com/5yZtnVHs this is what I got [06:38:20] yeah that looks fine [06:38:36] other than "UserEffectiveGroups", I don't see any place telling MW to call IPBAuth in an event a script calls the SessionProvider child class [06:39:49] Basically this is class overloading, and I don't see any mechanism in extensions.json telling MW to call the overloaded class [06:40:37] https://github.com/wikimedia/mediawiki/blob/master/includes/session/SessionProvider.php [06:40:38] use https://www.mediawiki.org/wiki/Manual:$wgSessionProviders [06:40:53] or the SessionProviders: key if you use extension.json [06:41:03] Thanks so much tgr! [06:41:19] I guess that manpage could do with an example [06:41:22] oh wait [06:41:25] or the SessionProviders: key if you use extension.json [06:41:26] whats this [06:42:16] like with $wgAutoloadClasses and other system globals, you can set it via extension.json [06:48:38] tgr, so basically like this "SessionProvider" : "PathtoIPBAuth.php"? [06:48:38] slushpuppeh: https://www.mediawiki.org/wiki/Manual:$wgSessionProviders#Example [06:48:52] oh wow [06:48:57] thanks [06:49:12] see the link to ObjectFactory at the top [06:49:24] for the exact syntax [06:49:36] did u just exit that page? [06:49:39] edit* [06:51:06] which 1 takes precedence tgr? [06:51:10] higher or lower [06:51:14] priority* [06:51:25] should be higher number i guess? [06:51:32] that's just a class constructor argument [06:51:47] o [06:53:01] see the docs for SessionProvider::provideSessionInfo / SessionInfo::$priority for how priorities are actually handled [06:53:36] ty [06:53:50] CentralAuthSessionProvider happens to take a priority parameter when it is constructed and passes that on, but it's up to you [06:53:57] kk [06:54:04] thankies [06:54:08] I guess it is not the most helpful example [10:15:38] I get an "Undefined offset: 1"error on this line : 'list( $name, $host ) = explode( "@", $user->getEmail() );' on EmailDomainCheck extension. [10:17:32] Hey ! , I want to represent whole Wikipedia in a graph form, like each article is a node and if one article contains link of other article then they share an edge. Is there any structural data available to help me or will I have to crawl the data ? [10:18:12] afroz, invalid email address [10:20:18] the account creation page does not load,just displaying the error [10:22:39] slushpuppeh, which email address is invalid, the one the user inputs or the one that I am using for the allowed domain? [10:26:03] afroz, wfDebug($user->getEmail()); [10:26:13] put that before that line and enable debugging [10:34:37] slushpuppeh, I still get the same error on that line [10:35:47] silicon_lober: Yes, what you have is rather easily available. You might want to look into https://meta.wikimedia.org/wiki/Research:Quarry [10:38:12] slushpuppeh: This is the relevant lines of code that I have now. [10:38:19] wfDebug($user->getEmail()); list( $name, $host ) = explode( "@", $user->getEmail() ); [10:38:46] Is this what you meant for debugging? Because the error remained the same [10:46:08] afroz, basically [10:46:30] the problem with that line is probably invalid value from $user->getEmail() [10:46:39] you have to see what $user->getEmail() is outputting [10:48:11] so after putting wfDebug($user->getEmail()); before the list(), enable debugging inside LocalSettings using $wgDebugLogFile [10:48:43] https://www.mediawiki.org/wiki/Manual:$wgDebugLogFile [12:36:58] Hi, I have this issue: PHP Fatal error: Class 'IPBAuth' not found in /www/w/includes/libs/ObjectFactory.php on line 144 [12:37:47] extension.json - http://pastebin.com/QcNHMuML [12:38:35] alex1a: still there? [12:43:09] slushpuppeh: which mediawiki version? [12:50:55] saper, 1.27 [12:51:09] i am developing my own custom extension btw [12:51:52] yeah I realize [12:52:08] so autoloading via extension.json does not seem to work, right? [12:52:17] apparently so [12:52:44] it does seems to me that the ObjectFactory seems to initialize my class prematurely or in the wrong namespace [12:53:25] http://repo.or.cz/CustomFancyTree.git the one I wrote recently [12:53:38] a really minimal one [12:54:05] slushpuppeh: do you have a full stacktrace somewhere? [12:54:11] should be in your debug log [12:54:55] i enabled debug logging yeah, but i don't quite see any stacktraces somewhere [12:54:59] is there a place to enable it [12:55:50] yep [12:55:55] !stacktrace [12:56:01] http://www.mpaste.com/p/FrtTD [12:56:04] !stacktrace [12:56:08] eh? [12:56:32] i assume i will receive a pm of some sort [12:56:49] no [12:56:50] !debug [12:56:50] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [12:57:47] !stacktrace is To enable full exception backtrace, set $wgLogExceptionBacktrace=true; [12:57:47] Key was added [12:57:48] ext.CustomFancyTree [12:57:54] !backtrace is To enable full exception backtrace, set $wgLogExceptionBacktrace=true; [12:57:55] Key was added [12:58:01] i note u put prefixed it with "ext." [12:58:40] this is the resource loader module [12:58:55] what about my scenario? [12:59:09] !backtrace | slushpuppeh [12:59:09] slushpuppeh: To enable full exception backtrace, set $wgLogExceptionBacktrace=true; [12:59:26] !backtrace is To enable full exception backtrace, set $wgLogExceptionBacktrace=true; in your LocalSettings.php [12:59:26] This key already exists - remove it, if you want to change it [12:59:32] !backtrace del [12:59:32] Successfully removed backtrace [12:59:35] !stacktrace del [12:59:36] Successfully removed stacktrace [12:59:39] !backtrace is To enable full exception backtrace, set $wgLogExceptionBacktrace=true; in your LocalSettings.php [12:59:40] Key was added [12:59:44] !stacktrace is To enable full exception backtrace, set $wgLogExceptionBacktrace=true; in your LocalSettings.php [12:59:44] Key was added [12:59:50] just enabled it [12:59:57] give me a moment to clear opcache [13:00:31] this is User::load() called pretty early [13:00:51] which 1? [13:02:13] if you show me the stacktrace, we'll see :) [13:03:09] uhm [13:03:18] there's no difference in the log files :o [13:03:30] https://www.mediawiki.org/wiki/Category:Debug_variables [13:04:29] where is your $wgDebugLogFile ? [13:04:47] $wgDebugLogFile = '/log/fpm-php.sb.log'; [13:05:12] writable and everything [13:05:15] eh, there is a stacktrace [13:05:28] it's just that i am not seeing any stacktraces whatsoever [13:05:29] it's a PHP fatal error, not MW exception really [13:05:34] #0 #1 [13:06:01] yeah, is my extension.json file correct? [13:06:12] i feel there is some caveats i am missing [13:06:32] slushpuppeh: you also need $wgShowExceptionDetails=true; [13:06:40] !stacktrace del [13:06:41] Successfully removed stacktrace [13:06:44] !backtrace del [13:06:44] Successfully removed backtrace [13:06:46] kk [13:07:56] er, no [13:09:51] won't work [13:10:04] yeah still no go [13:10:09] it's a php fatal error [13:10:14] let me backtrace at the source [13:12:51] it would be good to have a source code to reproduce this [13:14:08] yup [13:14:22] at no point did it load my extension IPBAuth file before calling the necessary class [13:15:09] the question is: is it a hook or the sessionprovider [13:15:24] http://pastebin.com/pKmSRzzz [13:15:50] i am not sure of the answer, perhaps i can explain the purpose of my extension? [13:16:17] if only JSON was a decent format [13:16:29] Basically what I am trying to do is to piggyback off the login session of my IPB forum [13:16:33] no, just show the code [13:17:13] http://pastebin.com/HsggSxUs [13:18:03] yeah i haven't quite started it yet [13:19:54] error_log("IPBAUTHFILE INCLUDED",0); [13:20:20] just added that to the top of the extension file, nothing in the logs. I suspect MW isn't even including the extension file before trying to call it [13:20:29] here are the https://phabricator.wikimedia.org/T89459 bugs [13:25:24] so wait, what i intend to do now is impossible? [13:27:49] installing a fresh MW [13:28:23] this is 1.27.0 release, right? [13:31:43] yes saper [13:31:52] fresh install too [13:31:59] actually no [13:32:10] it's a fresh 1.26 upgraded to 1.276 [13:32:17] to 1.27* [13:34:15] well it does not install at all [13:34:36] eh saper ? [13:34:50] well I put your php file and extension.json [13:35:04] I can see that you refere to the messages file [13:36:08] my directory is named 'IPBAuth' and I also have a locale file [13:36:38] http://pastebin.com/SbzugFes - en.json [13:36:42] nothing else i can assure you [13:37:31] and ofc wfLoadExtension( 'IPBAuth' ); inside LocalSettings [13:39:02] well it does not install at all [13:39:26] when you say that, are you implying I have to do install an extension hook? [13:41:11] can you put it on git somewhere? [13:41:23] a whole thing? [13:41:28] repo.or.cz or whatever [13:42:24] i'll zip it up for u [13:42:25] hang on [13:44:24] good [13:44:27] reproduced your error [13:45:05] h5 [13:45:28] saper, http://sharkbrew.com/w/extensions/archive.tgz [13:45:37] oh [13:45:41] eh? [13:51:07] got it [13:51:15] slushpuppeh: it's because you namespace [13:52:08] the namespace inside my file? [13:52:19] https://gist.github.com/saper/02c1711e6b0bfbdb13d7b68eeb4ef344 [13:52:20] yes [13:52:38] your class is called MediaWiki\Session\IPBAuth [13:52:41] not IPBAuth [13:52:46] see my gist that fixes it [13:52:58] Ok thanks so much [13:53:18] this breaks with another error from the hook but it takes you past this problem [13:53:31] oh yes [13:53:42] i think that caused me to add that link.. [13:53:48] i think that caused me to add that line*.. [13:54:04] Class 'SessionProvider' not found in [13:54:15] i guess i have to specify that explicitly [13:55:23] class IPBAuth extends MediaWiki\Session\SessionProvider { [13:55:25] that works [13:56:20] but how on earth does this work(apparently) https://gerrit.wikimedia.org/r/#/c/299107/ saper [13:56:22] Invalid callback IPBAuth::onUserEffectiveGroups in h [13:56:23] ooks for UserEffectiveGroups [13:57:51] slushpuppeh: they don't namespace anywhere [13:57:57] they just use [13:58:40] looks like Java knowledge comes pretty handy in those gloomy PHP 5+ days [13:59:42] your hook is not written yet, so my error message is to be expected [14:03:01] saper, thanks for you help, but what anout this: https://gerrit.wikimedia.org/r/#/c/299107/3/PluggableAuthLogin.php [14:10:34] slushpuppeh: about what in particular [14:11:17] they included the namespacing [14:13:30] slushpuppeh: they don't use "namespace" keyword anywhere like you did [14:15:18] http://php.net/manual/en/language.namespaces.nsconstants.php [14:15:55] sorry, this one http://php.net/manual/en/language.namespaces.definition.php [14:16:48] this is not the same as "use" [14:25:11] Oh fuck [14:25:22] yeah saper sorry [14:25:29] i didn't read their code properly [16:19:56] Hallo everyone! I'm having a LOT of trouble with javascript on one of my shiny new foolproof** windows servers and I just noticed something odd in the HTML. The tag contains this tag: class="client-nojs" [16:20:12] Based on the name of that class one could safely assume it would give me JS issues. How do I fix that [16:20:51] hey all, anyone has been using Docker for MediaWiki before? https://github.com/wikimedia/mediawiki-docker [16:21:55] i was wondering why after I run the docker, it ran for few secs, then after that then it stops running [16:27:22] Based on the name of that class one could safely assume it would give me JS issues. How do I fix that [16:27:33] that is just a css class i believe [16:27:50] and css doesn't interfere with JS [16:35:21] ardnet: the program stopped [16:35:28] what's the output of docker logs? [16:42:37] Platonides: oh, i removed the container already, lemme run it again and see how it goes with the docker logs, hang on. I'm really newbie with this Docker-thingy btw :) [16:50:13] slushpuppeh: Well when I try and run javascript in a widget (which worked fine on linux *grumble*) I get a bunch of jquery is not defined errors from places there shouldn't really be any, like jquery-ui straight from the source. Any thoughts? [16:59:35] Ulfr, it is just not possible. Maybe your javascript stops after seeing that class tag [16:59:58] Yeah, that's where I'm at :( [17:01:36] Ulfr: which browser are you trying to use? [17:02:06] saper: Firefox, behavior is similar on chrome. only difference is the site now runs on HTTPS and is running on a shi-- I mean IIS [17:04:16] oh, wow. Nevermind. Works perfectly fine on chrome? [17:04:19] wat. [17:09:27] That's legitimately a first. Something from jquery goes right along in chrome, but firefox says nah bro that ain't me [17:24:36] Platonides: ok, here's what i got after i ran docker logs [17:24:40] PHP Notice: Undefined index: MEDIAWIKI_DB_TYPE in - on line 4 [17:24:40] /entrypoint.sh: line 209: curl: command not found [17:24:40] Could not open input file: composer.phar [17:26:21] ardnet: what image do you use? [17:26:56] A Docker container has an entry point, a process it runs. When this process quits, your container is stopped. [17:27:06] e.g. you create a container to do a "ls" [17:27:17] when you start the container, it will run ls [17:27:36] when the file listing has been determined and the output is done, ls quits, your container quits also [17:28:41] so, now yours logs says there is an issue with /entrypoint.sh, that probably means this script quits when some error occurs [17:29:12] I would recommend to fill a bug, and ask the Docker image author to check sh/bash instructions to die when any error occurs: set -e and set -x [17:29:17] Dereckson: here's the image that i use: wikimedia/mediawiki:latest [17:29:26] /entrypoint.sh: line 209: curl: command not found <- that's where that should fail, not after [17:29:49] yeah, i kinda noticed that... [17:30:10] here's the thing though, first of all I was actually trying to build my own image based on here: https://github.com/wikimedia/mediawiki-docker [17:30:19] i was using master branch [17:30:53] but for some reason the image never build properly [17:30:57] gwicke: ^ [17:31:18] i was checking it using docker images, but i couldnt see the name of the image that i set [17:33:54] anyway, here's the complete command of docker run that i used, please let me know if there's some part that is wrong in it [17:34:35] docker run -it --name loredb-mediawiki --link loredb-mysql:mysql -p 8080:80 -v /Users/ardnet/Documents/Works/loredb:/data:rw -e MEDIAWIKI_SITE_SERVER=http://loredb.dev:8080 -e MEDIAWIKI_SITE_NAME=LoreDB -e MEDIAWIKI_ADMIN_PASS=xxxxxx -e MEDIAWIKI_UPDATE=true -e MEDIAWIKI_DB_USER=loredb-user -e MEDIAWIKI_DB_PASSWORD=xxxnnxxx -e MEDIAWIKI_DB_NAME=loredb -d wikimedia/mediawiki:latest [17:36:08] jsut fyi, i have mysql container running with the database named 'loredb' in it, but it's empty database [17:41:30] Ulfr: anything in the webserver logs, like JS files not found (404) [17:42:33] saper: Excellent question! I have no idea. I don't know how to access the webserver error logs on this box. There's nothing in the clientside error log about failing to load files now that I've updated the urls [17:44:48] saper: I lied! load.php?debug=false&lang=en&modules=site&only=styles&skin=erudite is a 500 error on chrome for a close relative widget. Does that mean anything to you? [17:51:12] Oh, hm. windows seems to be misplacing stuff? OutputPage::transformFilePath: Failed to hash D:\inetpub\wwwroot/../resources/src/mediawiki/mediawiki.searchSuggest.js [17:52:22] saper: Thanks! :D [18:00:54] saper, finnaly i got fix my php session problem. http://stackoverflow.com/a/33075720/2042014 [18:01:12] wgMainCacheType and wgSessionsInObjectCache solve the problem [18:03:04] alex1a: are you behind cloudflare or something like that? [18:03:46] Ulfr: you might to check hashing modules on your PHP installation, it is known to be missing on Windows [18:04:13] yap, but when i try to access by local ipadress (192.168.*.*) the problem was the same [18:04:30] saper: No, it was bloody permissions again. MW wanted to make a hash, IIS was telling MW to pound sand. I took MW's side and just gave it write access xD [18:05:05] Ulfr: is that something a better installer could improve? [18:06:19] saper: I'm not experienced enough with these windows servers to offer an informed opinion. I didn't install the OS or the application, I got handed it after it'd been prepped by someone else. I thought that someone else was going to do this part or I'd've contested it a loooot harder [18:06:59] <-- linux admin [18:07:23] Ulfr: thanks [18:07:34] * Ulfr tried to find the php.ini file to adjust upload sizes, wound up using the wrong search bar and accidentally bing'd a bunch of tutorials on finding the thing [18:07:44] heavens forbid the BIG search bar actually search the freaking computer for a file first [18:10:36] FYI this was the error message that completely buggared jQuery on my pages: http://pastebin.com/sm9XQBs8 [19:32:44] hi! I'm trying to move lot of images from one media wiki install to another. I (foolishly?) copied the entire images/ folder of the old site into the new size. So... all the thumbnails and everything are in place but the database doesn't know it. [19:32:55] will maintenance/ImportImages.php fix this for me? [19:33:29] apparently today https://cdn-images-1.medium.com/max/455/1*snTXFElFuQLSFDnvZKJ6IA.png [19:34:27] i-make-robots: yes, but you'll have to move those images again somewhere else, because the script takes care to move them to the right place, and may fail if they're already in place [19:35:19] also, since you probably want to run it in recursive mode, you may want to delete or move all thumbnails, or else it will try to import them [19:37:50] i-make-robots: in case you plan to have both wikis running, you could also set the source wiki as an image repository (like wikimedia commons) instead of copying images around [19:38:25] that has its pros and cons [19:44:07] the old wiki is going away. [19:44:11] it was fugly and out of date. [19:44:48] i'm copying all of images/ to a new locaiton now. [19:45:01] can you please walk me through correct use of imageImport? [19:49:54] I tried php importImages.php ~/src_folder gif bmp PNG JPG FIG BMP png tga TGA --overwrite --search-recursively [19:50:00] said no suitable files could be found. [19:50:14] i'm concerned if i say "import everything" it will import thumbnails as new images. [19:50:24] which would explode into.... a lot of files. [19:53:06] you should try first with --dry to just print what will be doing [19:54:29] also, you need to specify extensions with the --extensions parameter... apparently this has changed from what's displayed in the example... [19:55:35] well, --extensions will default to $wgFileExtensions if not specified [20:01:10] ankry: :) [20:06:24] hej saper [20:06:58] bawolff: can you help us to regenerate a thumbnall? : [20:07:01] https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Karol_May_-_Cyganie_i_przemytnicy.djvu/page85-1024px-Karol_May_-_Cyganie_i_przemytnicy.djvu.jpg [20:07:19] it is generated from old version of the file [20:07:54] we tried purge, file move, reupload; no effect [20:08:14] ech [20:08:21] hah [20:28:55] hi, trying to trouble shoot my media wiki install + visualeditor + parsoid. I can create new pages with visualeditor but if i try to edit a page it just gives me error loading data from server msg in chrom i dont even see traffic to 8142 on localhost interface of the server [20:31:30] here is localconfig.php snipet https://bpaste.net/show/cef332ae9d82 [20:33:53] Vulpix - how would I cherry pick the original images from the /images folder to import only them? [20:34:57] all I keep getting are "no suitable files could be found for import." [20:37:13] try not using ~/ on the directory, but the full path, it should work anyway but who knows... and don't specify file extensions [20:38:29] will do [20:40:03] php importImages.php /home/me/images --search-recursively --dry same results, nothing found. [20:40:12] cryptic error message is cryptic. [20:41:26] have you tried with --extensions=jpg,png as well? [20:44:47] yep [20:44:49] same thing [20:47:59] i just checked that there are jpg, JPG, and more in the source folders. [20:51:26] what MediaWiki version are you using? [20:54:12] erm, uno momento... [20:55:15] 1.20.3 [21:04:35] i-make-robots: ahhh, in MediaWiki 1.20 it doesn't search files recursively [21:06:08] is upgrading a smooth process? [21:06:26] it depends on the extensions you're using [21:06:33] !upgrade [21:06:33] http://www.mediawiki.org/wiki/Manual:Upgrading [21:40:11] argh [21:40:21] when changing the origin from https: to ssh: [21:40:25] I changed the project, too [21:40:46] that explains why it took it so much time [21:43:30] messing with gerrit? [21:44:48] kind of [21:44:56] just providing a patch [21:54:13] heh. cleaning up mediawiki requires update to php, now upgrading the server... tomorrow you'll find me digging a trench to lay new wire to the house. :P [21:54:38] aaaand it looks like it only upgraded to php 5.3. wut. [21:58:44] :-) [22:00:08] of course. i'm ubuntu 12.04 LTS, they don't support officially anything later than 5.3 [22:00:27] thanks, Obama. [22:01:13] you now have a newer LTS :) [22:01:27] ah, a release from obama's first term... [22:19:05] Hey folks. I'm a bit confused by https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux [22:19:30] That page seems to suggest that Mediawiki 1.27 can be installed on CentOS 6 using the normal system packages for PHP, MySQL, etc. [22:20:32] But, I just tried to upgrade from 1.26.3 to 1.27.0 and got a syntax error in update.php, which I guess is because 1.27 requires PHP 5.5.9 [22:21:24] The CentOS 6 php package is version 5.3.3. So I don't think that page I linked is correct [22:24:08] Also, would you guys recommend to stick with 1.26 (I don't really need any new features), or should I try to get a newer php somehow? [22:24:09] I don't see right now where we list the minimum requisites [22:24:22] https://www.mediawiki.org/wiki/MediaWiki_1.27 [22:24:31] ok [22:24:33] > MediaWiki now requires at least PHP 5.5.9. This corresponds with HHVM 3.1. [22:24:38] I had been on that page just a moment ago [22:25:08] MediaWiki 1.27 was released on June 2016 [22:25:25] Manual:Running_MediaWiki_on_Red_Hat_Linux was last edited on April 2016 [22:25:49] the minimum php version wasn't exactly set at that date [22:25:57] but it explains that it is outdated [22:26:18] php 5.3.3 is old [22:26:33] ohh, I see that 1.27 wasn't edited into that page manually, it uses a template [22:26:50] i would say they are pulling the version numbers from templates (without looking) [22:26:57] esp if they are git commands for example [22:27:09] yep, {{MW stable release number}} [22:29:05] I don't feel competent enough to edit that page, but I think there should be a note somewhere that 1.27 can't be installed on RHEl/CentOS 6 without upgrading php somehow [22:29:26] ARE YOU KIDDING ME? All that upgrade work and it only went to 5.5.33+dontuse. [22:40:03] finally got php upgraded to 7.0, and now mediawiki gives an internal server error. [22:40:25] wtf. [22:40:59] i-make-robots: calming down helps. [22:44:56] Premature end of script headers: index.php [22:55:07] teward - yeah, I'm an emotional guy.