[00:21:05] any idea why if i put session_start() on one of my php file [00:21:05] i cannot login? [00:21:36] ... why would you do that? [00:21:39] it directs me to this url http://www.example.com/wiki/index.php?title=Main_Page (but shows me the login page) instead of main page [00:21:58] urms.. because [00:22:24] my like counter dun increase when i press f5 , only when i press ctrl f5 it increases [00:22:35] when i put session_start(), it will increase when i press f5 [00:22:41] i thought that was the way to solve the issue :/ [00:23:25] ... [00:23:43] urms........... [00:24:04] anw, why my counter only increase only after ctrl f5 is hit? [00:24:15] i have this $parser->disableCache() though :/ [00:24:16] caching? [00:24:36] Presuming you are using MediaWiki, you cannot just throw session_start() at the beginning of index.php (or wherever you put it) [00:24:43] oh [00:24:45] i am using mediawiki [00:26:30] but how should i solve the caching problem? [01:13:51] I am running Windows Server 2012 R2 and I have installed the GIT version of that on it, but when I go to the https://wiki.gamepaduniverse.com/w/mw-config/ and walkthrough the installation it does not recognize that git is installed on the server. How do I get it recognized?> [01:27:53] for how do I set the link when you click the actual image. It's not really described on the wiki. [01:29:16] Or is it not possible to do that if using ? I just like the on hover caption for the gallery. [01:47:33] nvm could just put link=Page also in gallery. [06:02:26] Hi all, I am trying to upgrade to the latest version. Using Putty I run the update.php script : ngw.nl@one.com/www/heraldrywiki$ php maintenance/update.php I then get : Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information. I did that, but nothing happens, I keep getting the same message. What is this and how to continnue [06:09:43] Why can nobody write easy to understand standards documents? [06:10:04] The image related one's make the HTML spec look simple to understand by comparision [06:10:40] Knorrepoes: You set it at the bottom of LocalSettings.php ? [06:11:58] Bawollf : yes [06:16:23] can anyone tell me how to get developer access [06:17:12] utal: Developer access to what? [06:17:31] Knorrepoes: hmm. Must be erroring before it reads LocalSettings.php [06:18:23] utal: If you want to submit a patch, you can just create an account on wikitech.wikimedia.org and use that account on gerrit.wikimedia.org, you don't need any special permission or access [06:21:01] OK, suddenly it works, but I get: [701aec26] [no req] MWException from line 150 of /customers/6/6/a/ngw.nl/httpd.www/heraldrywiki/includes/objectcache/ObjectCache.php: CACHE_ACCEL requested but no suitable object cache is present. You may want to install APC. Backtrace: #0 [internal function]: ObjectCache::newAccelerator(array) #1 /customers/6/6/a/ngw.nl/httpd.www/heraldrywiki/includes/objectcache/ObjectCache.php(94): call_ [06:21:02] utal: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker has some general info to contributing to mediawiki, that might be of interest [06:21:30] Knorrepoes: Oh. I'm surprised we don't handle that case, we really should [06:22:04] Knorrepoes: Most of the time APC is only enabled on the webserver and not the command line, and mediwiki is getting confused looking for it [06:22:51] Knorrepoes: In LocalSettings.php, temporary comment out any line with CACHE_ACCEL in it. Run update.php, and then uncomment those lines (Uncommenting is important because removing the caching can cause things to be much slower) [06:24:04] How to comment out, just delete temporarily ? [06:25:15] bawolff, i have read that but how to get the developer access [06:26:58] Oh, I guess they are using that phrase in the docs. Makes it sound like there's some special secret area, which there isn't [06:27:34] utal: If you create an account at https://wikitech.wikimedia.org/wiki/Special:UserLogin/signup , you can use it at https://gerrit.wikimedia.org which is all they really mean by developer access [06:28:05] utal: What sort of things are you interested in doing? [06:28:23] Knorrepoes: In LocalSettings.php, if you start a line with the character #, it will be ignored [06:28:37] Knorrepoes: So commenting out a line just means adding the hash symbol before the line [06:29:29] bawolff, thanks [06:41:10] bawolff, i am interested in web dev [06:41:24] cool [06:42:02] bawolff, are u into webdev [06:43:09] I develop things for the web, so yeah I guess [06:43:24] but I like the more backend behind the scenes stuff [06:43:44] and "webdev" as a term makes me more think of frontend things (JS, CSS, etc) [06:45:32] utal: For example, I'm currently working on trying to figure out what's happening with this image https://upload.wikimedia.org/wikipedia/commons/archive/e/e3/20121207154620!Ijazah3.jpg (Its really bright blue in some web browsers) [06:45:47] bawolff, i am also into backend .. i mostly contribute in mailman .. but i want to try out media wiki ...i know php and python will so can you help me get started [06:46:39] utal: Anything specific backend wise you are interested in? [06:46:59] Most of mediawiki is php [06:48:29] There's a list of easier bugs at https://phabricator.wikimedia.org/search/query/uNw6vXu_ZQQD/#R [06:48:32] bawolff, i dont have any specific choise .. [06:49:19] bawolff, where r you from [06:49:28] I'm from Canada [06:50:00] bawolff, do you know anyone from india . [06:50:18] Yes I know a couple people from India [06:50:43] bawolff, can you help me to get connected to one [06:54:40] Some people can be sensitive about revealing personal details online, and I wouldn't want to accidentally reveal information about someone's nationality if they were trying to stay private about it and I wasn't aware [06:55:07] bawolff, i am not accustomed with mediawiki repo so i need to look into it to find something of my interest .. but i am into backend stuff [06:56:35] bawolff, thats ok .. [07:00:50] bawolff, is there any media wiki event in india recently [07:01:50] I'm not aware of any [07:02:10] qgil (not here right now) might be the person to talk to about that [07:02:25] Last major event was in France [07:06:46] bawolff, thanks for the info ... [07:14:33] errrrrrrrrrrr i would like to ask [07:14:43] why my counter nv increase when i press f5 in chrome? [07:15:13] only if i press ctrl f5 then it will increase the count ? [07:19:30] realised is a caching issue, how to disable caching for that particular page/file? [07:25:38] four: Ok, so there's like seventy billion types of caching [07:25:58] In your case you are probably running into the if-modified-since cache check [07:26:10] i used [07:26:18] $parser->disableCache(); [07:26:34] but it is not working on my chrome and firefox, (i still have to do ctrl f5) to see the counter being updated [07:26:37] in ie , it works though [07:27:42] yeah, that only disables parser cache, which is a different layer [07:28:20] You can disable if-modified-since (304) caching by changing $wgCachePages, but that disables it for all pages, which is probably not what you want [07:28:36] ya . i only want to disable in that php file ? [07:28:39] is it possible or so? [07:28:43] it is actually a like counter [07:29:48] what if i put these 2 in my like.php file? [07:29:49] $wgEnableParserCache = false; $wgCachePages = false; [07:30:01] does it disable all caching for all pages? or only in my like .php file? [07:31:02] Hmm, that would kind of do it for neither [07:31:21] depends on scope and things, and how stuff is loaded. You probably shouldn't do that [07:31:34] So, to override it for just one page is kind of hacky [07:31:48] Best bet would probably be to implement it in some way that's not a parser tag [07:32:05] but if you want to do as parser tag, then you'd need to use the OutputPageCheckLastModified hook [07:33:24] some how from that hook detect what page you are on, and detect if that page is one you want to disable cache for [07:33:35] and then add a modified time that's in the future or something [07:33:54] Also if you ever use file caching, or varnish caching this won't work [07:33:59] but you probably won't do that [07:34:59] soooooooooooooooooo [07:35:11] i have to add another function from this website? https://www.mediawiki.org/wiki/Manual:Hooks/OutputPageCheckLastModified? [07:36:12] yeah, you can register a function, that function gets an array, and you can add an item to the array that's in the future to say that this page definitely should not be cached [07:37:03] actually wait, there might be a better way [07:37:19] :o [07:38:37] Ok, you need to register a parser Output hook [07:39:26] that output hook will eventually call a function, where the first argument is an OutputPage object, you need to call the enableClientCache( false ); method of that first argument [07:40:08] hmm ,s o i still have to use the outputpagecheck.... thingy? [07:40:10] Output hooks can be registered with $wgParserOutputHooks['hookname'] = 'wfMyOutputHookCallback'; [07:40:26] four: No, you don't have to use OutputPageCheckLastModified [07:40:55] And then during your parser function you have to call $parser->getOutput()->addOutputHook( 'hookname' ); [07:41:09] ohh [07:41:12] hmm, that sounds complicated also, but its less messy in other ways [07:41:23] let me go get my hands dirty now~ [07:41:44] definitely i will face issue, soooooooooooo i'll ask for ur advices later on (:p) [07:52:00] seriously have no idea wad am i doing [07:52:15] https://dpaste.de/9Qyq (set up the hooks from line 15-19) [07:52:32] parser function in 291 [07:54:02] four: ok the line [07:54:03] $out = enableClientCache(false); [07:54:05] should be [07:54:10] $out->enableClientCache(false); [07:54:33] Also, on the line function wfDisableCacheHook(OutputPage &$out) [07:54:46] you don't need the & (since php5) [07:54:52] but it doesn't really make a difference [07:58:31] hmm [07:58:35] ok let me modify and see the result [08:00:31] four: Also, this will only disable cache on future things, it won't clear the existing cache entry [08:01:03] what ya mean? [08:01:22] if i press "like" on one of the article, it will not show (1 like) when i press f5? [08:02:09] Like right now, you have a version cached on your browser from before you wrote this code, so the new code won't take affect until after that cached version is gone [08:02:20] but ctrl+f5 should be enough to clear your browser cache I think [08:03:30] hmm [08:04:22] nooooooooooo, still not reflecting when i press f5 sigh [08:06:17] In firefox developer console (or equivelent for whatever browser you're using), go to the network tab, and check what the response headers are set for the page [08:16:33] it gives me this what does it mean [08:16:34] http://postimg.org/image/4m0f17vvz/ [08:21:30] what's the output when you load the page by doing ctrl+f5 [08:22:07] it will +1 like [08:24:20] i mean for the response headers [08:24:35] hold on i try, [08:24:41] php error log give me this error (PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'wfDisableCacheHook' not found or invalid function name in C:\inetpub\wwwroot\wiki\includes\OutputPage.php on line 1596) [08:25:15] oh, that's probably the problem [08:26:13] also in your pastebin, you have a bunch of random header() function calls, probably best to remove those [08:26:55] when i press ctrl f5 , it gives me this [08:26:56] http://postimg.org/image/d29vmo8on/ [08:27:03] what does it mean? [08:27:14] by random header, do you mean "echo" ? [08:28:28] four: No, I mean 5-8 of what you put in dpaste [08:29:46] oh yeah i removed those [08:29:53] i thought it could work apparently it could not sigh [08:31:39] I don't know why php can't find your wfDisableCacheHook function, but that would be why the headers aren't changing [08:31:55] hmm [08:32:49] does the function on line 167 matter? [08:32:55] should i put my hooks function in there? [08:35:39] you can if you want. it shouldn't make a difference [08:36:07] yeah no difference sigh [08:38:42] Well I'm off for now, good luck [10:17:09] my varnish server is set up to probe the health of the apache servers. The apache log shows "GET / HTTP/1.1" 500 253 "-" "-" when it's being probed. So I get 503 Backend fetch failed error. Any ideas about this? thanks alot [10:17:41] the servers are running mw 1.25.1 [10:21:12] varnishadm backend.list shows all my backends as 'sick'. I can successfully curl the ip:port raw address; when requesting through varnish, I get these 503 errors in reply [11:12:45] varnish q: what's the best setting for a varnish probe url for mediawiki? And thoughts? [11:12:57] Any [11:14:47] maybe ask in #varnish ? [11:20:15] hypergrove: I don't know, /w/api.php?action=query&meta=siteinfo maybe? [11:31:59] Vulpix, theres a varnish channel? [11:32:08] saper, perfect thx [12:17:05] Hi there, which mailinglist is the place to ask mediawiki extension development related questions? [12:20:53] wikitech-l [14:23:03] Hello friends! I am having an issue with getting my confirmation email after registration to work. It has to do with PEAR not be properly configured. I am using Windows 2012 R2. You can view the phpinfo() here:https://wiki.gamepaduniverse.com/phpinfo.php I believe pear is installed correctly its just a matter of configuration. I am guessing I would need to add something to the php.ini file located at [14:23:08] C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini ? [14:23:17] Any help would be awesome [14:25:09] LoyalSneezel: do you get any error message when sending the confirmation email? [14:26:06] [61ca2130] /w/index.php?title=Special:UserLogin&action=submitlogin&type=signup&returnto=PadPedia MWException from line 268 of C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\mail\UserMailer.php: PEAR mail package is not installed Backtrace: #0 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\User.php(4208): UserMailer::send(MailAddress, MailAddress, string, string, NULL) #1 C [14:26:23] that's truncated [14:26:27] but i think that is all you need [14:27:58] LoyalSneezel: apparently you need to install pear, and/or add pear to the include_path [14:28:18] !pear [14:28:18] There is no such key, you probably want to try: !deleteuser, !interface, !logo, !sitenotice, !sortkey, [14:28:29] oh, how deceiving, wm-bot [14:28:42] i mean, i believe pear is installed just not hooked into the php.ini file [14:28:51] but i dont know what include path to have really [14:29:06] can there be multiple include paths on a php.ini file? [14:29:17] lines i mean [14:30:06] LoyalSneezel: no, not multiple lines. You need to put multiple paths separated by semicolon [14:30:40] right [14:30:49] you'll need to find where's PEAR installed, and add that path in include_path [14:31:04] i think i need to reboot the server...hold on!!! [14:45:45] This isn't doing the trick: include_path = ".;.\includes;.\pear;C:\cygwin64\usr\share\pear" [14:45:53] but i dont know if i have the right directory [14:46:02] how do i know i have the right one? [14:51:51] LoyalSneezel: I think your current include_path makes sense only if pear is installed in \pear [14:54:03] i used cygwin64 to install it so I am pretty sure the directory is C:\cygwin64\usr\share\pear [14:54:08] does that make sense? [14:54:20] only if that directory contains .php files [14:55:20] ah, yes, didn't notice that path on the include_path [14:56:05] in that directory there are php files for: Mail, PEAR, PEAR5, pearcmd, peclcmd, System [14:56:08] apart from pear, you need to install those pear packages: Mail and Net_SMTP [14:56:12] does that seem like the correct path? [14:56:18] yes [14:56:23] i believe have installed those [14:56:37] do i need like a period before C:\cygwin64\usr\share\pear pr something [14:56:45] i don't understand why it's not hitting [14:57:36] $ pear install mail pear/mail is already installed and is the same as the released version 1.2.0 install failed [14:57:39] is it displayed in phpinfo, but only in "master" value, not "local", so you may be overriding it somewhere [14:58:06] $ pear install NET_SMTP pear/NET_SMTP is already installed and is the same as the released version 1.6.2 install failed [14:59:09] local value:.;C:\cygwin64\usr\share\php\php [14:59:20] master value: .;.\includes;.\pear;C:\cygwin64\usr\share\pear [15:00:18] C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini is overrriding include_path maybe [15:01:17] That path is the Loaded Configuration File [15:01:42] I am sorry I am really bad at php configurations, so act as if i am a child using php for his first time [15:02:44] if you open C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini and search for include_path, what do you see? [15:05:17] that's the file i have been modifying [15:06:16] include_path = ".;.\includes;.\pear;C:\cygwin64\usr\share\pear" [15:07:06] damn, so something is overriding it [15:07:29] maybe some configuration in IIS? [15:07:44] or .htaccess? (I don't know if IIS supports this) [15:08:03] iis has a web.config file alternatively [15:08:36] for my own sake, we are basically trying to local the local value and remove it so that the master value doesn't get overriden, correct? [15:09:07] .;C:\cygwin64\usr\share\php\php is causing the trouble? [15:09:55] locate the local modification and remove it or update it, yes [15:10:29] and yes, the problem is that local value doesn't include the PEAR path [15:10:49] thanks captain, i look around. I am just going to do a search for php.ini files on my server [15:11:25] I doubt you'll find more, at least the phpinfo page doesn't list more [15:11:51] if those values are being overriden, that's done in IIS [15:12:06] what is Configuration File (php.ini) Path [15:12:17] it says C:\Windows [15:12:23] does that mean a file is located there? [15:12:44] idk man Windows Servers with Plesk on them is confusing [15:13:19] add utilities like cygwin on top you basically have three parts you have to figure out [15:13:43] > Loaded Configuration File C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini [15:13:53] > Scan this dir for additional .ini files (none) [15:13:59] > Additional .ini files parsed (none) [15:22:07] fiddle sticks [15:28:38] i want to cry [15:30:09] installing MediaWiki on a Windows server is usually not a good idea anyway [15:34:58] using Windows server is usually not a good idea anyways [15:35:37] It's been really rough Vulpix [15:35:39] real rough [15:36:02] sounds like some old Windows soldiers swapping war stories in here [15:38:13] LoyalSneezel: last I can think of is using ini_set in LocalSettings.php to change that value. Or maybe http://php.net/manual/es/function.restore-include-path.php does the trick [15:38:34] try using restore_include_path(); before phpinfo to see if it has any effect [15:40:09] I feel all used up. Like MSFT has had his way with me. I was too gullible. Got taken advantage of. And now I starting to come to my senses about this whole matter. [15:42:58] Yeah...it's a kind of war i guess [15:44:26] omg [15:44:27] wait [15:44:33] Eureka!!!! [15:44:48] it my stupid .user.ini file [15:44:57] omg sorry for wasting your time Vulpix [15:45:21] well,stupid phpinfo for not listing it as an included ini file... [15:45:34] sneeze on you once shame on me... [15:55:58] fiddle faddle^n [15:56:05] it still gives the error [15:56:42] i hate my life [16:10:59] <_`_> [✔] same [16:14:49] PEAR mail package is not installed may be the last error message i ever see... [16:14:58] i don't understand what I have done wrong [16:15:05] I feel like it should just work [16:15:49] It's like the world is out to get to me for using Windows Server and no matter how much forgiveness i request i get rejected everytime [16:16:24] Ah man this parallels irl romantic life too much :( [16:18:57] LoyalSneezel: the error message "PEAR mail package is not installed" happens when MediaWiki can't find the file "Mail.php" in the include_path... well, just double-check "Mail.php" is in C:\cygwin64\usr\share\pear [16:19:45] it is [16:24:37] $ php -c /path/to/php.ini -r 'echo get_include_path()."\n";' .:/usr/share/pear:/usr/share/php/php [16:24:47] looks like something is wrong] [16:25:47] /path/to/php.ini must exists [16:28:06] so what do i do [16:28:31] replace /path/to/php.ini by the correct path of your php.ini [16:34:10] Hi there. Is there an extension that allows us to protect pages such that only users with > n edits can edit them? [16:34:30] Moussekateer: you can use teh autoconfirmed group for that [16:34:42] autoconfirmed is automatically assigned after n edits [16:34:52] Im a dumb dumb [16:35:14] the correct path is C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com/.user.ini [16:35:19] where/how do i change taht [16:35:53] DanielK_WMDE: Sure, but we don't mind new users editing most pages so is there a way to mark certain pages as only editable once autoconfirmed? [16:36:39] DanielK_WMDE: Nevermind, I am a dumb dumb :) Thank you [16:36:40] Moussekateer: yes, that's what "semiprotection" on wikipedia is. not quite sure whether it's configured this way per default though [16:37:03] Yea I just remembered, been a while since I dived into our config. Thanks again [16:37:50] Moussekateer: if you go to action=protect, you should per default get the option to restrict editing to autoconfirmed users [16:54:32] ....i feel so alone.... [18:38:50] hello [18:40:30] my job queue won't stop growing, even with a runJobs.php continously running [18:40:37] it's more than 750k now [18:41:01] it ridiculous, it works even without any edits [18:41:04] any ideas? [18:47:38] Axelei: do you have logging enabled? [18:47:47] not at this moment [18:47:58] or you mean for runJobs.php? [18:48:58] yeah [18:49:44] ori: hi [18:49:52] i'll paste you some output [18:49:54] in pastebin, wait [18:50:30] http://pastebin.com/EAX5Af7E [18:51:54] for some reason the main page (Portada) is processed again and again [18:52:03] but can't figure out why [18:53:14] these are the stats: http://www.frikipedia.es/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm [18:57:14] any clues? [18:59:37] Mifos_ hi [18:59:44] Who are you talking about? [18:59:56] Mifos_ what [18:59:57] Can you rephrase the question please? [19:00:06] what are you telling? [19:00:15] Mifos_ what are you telling? [19:00:16] Ok I will add that fact aboutMifos whatto my database. [19:00:43] Mifos_ tell me something [19:00:44] We have never talked about it before. [19:00:55] Mifos_ so we will [19:00:56] Are we still talking about Mifos tell you something ? [19:01:07] Mifos_ yes [19:01:08] Where are you located? [19:01:21] Mifos_ why should i tell you [19:01:22] What if it didn't happen? [19:01:39] Mifos_ shut up [19:01:41] How far up? [19:01:52] Mifos_ xd [19:01:53] Does "it" still refer to Mifos? [19:02:02] Mifos_ no [19:02:03] What is your name? [19:02:13] Mifos_ Vipul [19:02:14] Nice to meet you, Mifos Vipul. [19:02:29] Mifos_ ok bye [19:02:30] What kind of food do you like? . See you later. [19:54:34] hi - my apache log shows this when probed by varnish: "GET /api.php?action=query&meta=siteinfo HTTP/1.1" 500 253 "-" "-".... what could cause the 500 error? [19:56:21] !blank | hypergrove [19:56:21] hypergrove: A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [20:01:36] hypergrove: Does that only happen when someone tries to access through varnish ? [20:02:15] oh i think i've got it... need to return (hash); [20:02:29] in my vcl [20:13:16] Lord-Simon, thanks, it's only happening for varnish's probes.... api.php?action=query&meta=siteinfo ... works fine from the browser or curl [20:52:40] where does Special:Upload page text come from? I don't have a MediaWiki:Uploadtext page. [20:55:16] wmat, all special pages are generated programmatically [20:55:31] that's what makes them special [20:56:58] to change the text on the page, you have a couple options. Holding aside hacks, the preferred approach is to change the text message displayed on the special page by (a) identifying the stringname (b) edit MediaWiki:stringname [20:57:38] your content at MediaWiki:stringname will override the default text shown now on your special page [21:09:56] hypergrove: thanks, I assume string names are in /include/specials/SpecialPagename.php? [21:10:00] * wmat looks [21:14:26] no the stringnames are in localization files. eg see om tje /languages directory. [21:15:51] wmat, when i would want to change text on the special page, i'd grep the language files for that text to find out its name, and then edit that page in the MediaWiki namespace [21:16:48] hypergrove: thx [21:20:15] hmmm, so MediaWiki:Upload-maxfilesize shows me "Maximum file size: $1" but where does $1 come from? [21:20:43] upload max file size is set in php.ini [21:22:49] $1 comes from the php, in this case it would access $GLOBALS['wgUploadSizeWarning'] i think [22:31:00] for $wgMaxUploadSize = 1024 * 1024 * 100 = 100MB, what would 200MB be? Changing 100 to 200 got me 128MB. [22:31:58] wmat: There is also a maximum upload size enforced by PHP, so maybe that was set to 128M [22:32:42] RoanKattouw: I think you could be right, as regardless of what I set that calculation to, it maxes out at 128MB [22:33:04] RoanKattouw: although, I do have the setting in php.ini set to 200MB [22:33:15] I suspect it's in some other place [22:34:22] On many systems there are two different php.ini files, one for CLI and one for web [22:37:44] I think I found it, post_max_size is set to 128M [22:50:09] oh [22:50:17] know I have the pear problems :D [22:50:21] moving to an other server [22:50:25] php pear is installer [22:50:28] installed [22:50:32] but gettin the mail problem