[00:28:00] having some trouble setting up short urls with apache [00:28:26] I'm trying to use this guide: https://www.mediawiki.org/wiki/Manual:Short_URL/Apache [00:29:16] I'm confused as to what steps to take if I'm doing this with xampp localhost [00:29:40] I have root access, and I'm looking at that section [00:29:58] but it doesn't really mention much to change in there, and jumps straight to the .htaccess config method [00:30:06] which I thought I didn't need because I have root access [00:30:13] use htaccess anyway [00:30:25] and I also changed the LocalSettings.php [00:30:27] yeah I tried that too [00:30:35] idk why it isn't working [00:31:09] where are your mediawiki files at relative to document root? [00:31:52] I made a second database and named it sandbox, installed mediawiki to /s [00:32:06] and put an .htaccess file in /s [00:32:16] which has: [00:32:18] RewriteEngine On [00:32:20] RewriteRule ^/?sandbox(/.*)?$ %{DOCUMENT_ROOT}/s/index.php [L] [00:32:29] and that's it [00:32:30] .htaccess goes in the root, not /s [00:33:01] uh [00:33:09] could've sworn the guide says otherwise [00:33:30] so I should just throw this .htaccess file htdocs [00:33:32] alright hold on [00:39:23] yeah see I think the issue is where I'm putting this .htaccess file [00:39:34] I moved it to htdocs but I'm still not getting any result [00:39:40] I'm doing something silly and I just don't know what [00:39:46] ~_~ [00:40:13] I did try stopping and restarting apache after making the changes too [00:41:22] you don't need to restart apache for .htaccess changes, you do for actual conf changes (which is what the root method needs) [00:41:33] I can attempt to help you with either if you'd like [00:41:42] alright [00:41:51] have u done this with xampp before [00:42:07] not xampp in particular, but I've set up mediawiki with apache on windows before [00:42:16] (although right now I'm running it in IIS :P) [00:42:45] do you want to do the root method or the .htaccess method? [00:42:55] I wanted to do the root method [00:42:59] okay [00:43:10] so in that case, you can delete that .htaccess file you already have (you aren't going to need it) [00:43:23] and find your httpd.conf file, I'm not sure where xampp stashes that [00:44:08] are you on Windows, Linux, Mac, or something else? [00:44:14] windows [00:44:18] kk [00:44:22] c:\xampp\apache\conf\httpd.conf ? [00:44:39] ya [00:44:46] so I'm in there [00:44:52] cool, so if you open that file up there should be a bunch of stuff [00:45:10] look for a section that begins with k [00:45:49] AllowOverride none [00:45:50] Require all denied [00:46:18] hmm [00:46:23] there may be more than one Directory section [00:46:28] find the one that points to the web root [00:46:37] [00:46:39] e.g. (or wherever it is) [00:46:46] AllowOverride All [00:46:53] okay [00:47:00] so what's the path that your wiki is installed in? [00:47:14] looks like C:\xampp\htdocs\s? [00:47:18] yes [00:47:21] okay [00:47:31] and you want the wiki to be accessible by doing localhost/sandbox/Pagename? [00:47:36] yea [00:48:59] ok, in that section add the line Alias "C:/xampp/htdocs/sandbox" "C:/xampp/htdocs/s/index.php" [00:49:06] save and restart apache [00:49:47] and that should be it :) [00:49:58] where in that section [00:50:09] anywhere between the and [00:50:22] You'll need to modify your LocalSettings.php to add in $wgArticlePath = '/sandbox/$1'; as well if you haven't yet [00:52:22] hmmm hold on it's failing to start apache now [00:52:49] I'll pastebin what I have [00:53:54] here [00:53:55] it's at the bottom [00:53:56] http://pastebin.com/4xmp4T1d [00:55:11] oh yeah I think I need to update the localsettings like u said [00:55:17] I did it in the past but haven't done it again one sec [00:55:27] we'll see if that's the issue if what I posted looks fine to you [00:56:33] minip: if it's failing to start, can you please find the apache error log and copy the last couple of lines from it? [00:58:38] it just says that I successfully shut it down [00:58:44] there's no reason for why it's failing to start [00:58:50] the error.log is this at the end [00:58:58] [Thu Oct 09 20:40:27.274848 2014] [mpm_winnt:notice] [pid 552:tid 384] AH00354: Child: Starting 150 worker threads. [00:58:58] [Thu Oct 09 20:51:37.736413 2014] [mpm_winnt:notice] [pid 3540:tid 488] AH00422: Parent: Received shutdown signal -- Shutting down the server. [00:58:58] [Thu Oct 09 20:51:39.752183 2014] [mpm_winnt:notice] [pid 552:tid 384] AH00364: Child: All worker threads have exited. [00:58:58] [Thu Oct 09 20:51:39.767809 2014] [mpm_winnt:notice] [pid 3540:tid 488] AH00430: Parent: Child process 552 exited successfully. [00:59:06] hmm [00:59:18] u sure that pastebin I posted looks fine? [00:59:19] yeah, that isn't very helpful [00:59:21] it's not missing anything? [01:00:40] nope, looks good to me [01:01:00] oh [01:01:06] no I'm dumb [01:01:21] change that to Alias /sandbox "C:/xampp/htdocs/s/index.php" [01:01:36] I forgot how Alias worked >_> [01:01:54] also, you mentioned to add $wgArticlePath = '/sandbox/$1'; to LocalSettings.php and this guide is saying to also add $wgScriptPath = "/s"; [01:02:10] also it goes in the VirtualHost, not the Directory >_> [01:02:20] huh [01:02:22] if you don't have a , then just put it outside of any other [01:02:40] the wgScriptPath shouldn't be necessary, but it won't hurt to add it in [01:02:43] no I'm just running xampp on my pc [01:04:46] yeah that works [01:04:48] thanks [01:04:51] I appreciate it [01:05:18] it's a shame the guide they have isn't very specific on which steps to avoid [01:05:28] they kinda blend instructions together [05:01:48] I'm writing a parser hook for a new tag called news: [05:02:23] The skin needs to modify something in the layout based on whether the content has the tag or not. [05:02:34] So I created a new global variable in LocalSettings.php [05:03:02] And in the parser hook for I'm setting the value of this global variable to true. [05:03:29] But the value of this variable, when accessed from the Skin file, isn't reliable. [05:03:37] yeah...that won't work [05:03:53] legoktm: So how should this be handled? [05:04:14] what do you need the skin to do? [05:04:31] the skin needs to change something in teh html [05:04:46] what specifically? [05:04:59] in the right nav of the page, I need to not have a div [05:05:35] I also use page (html) file caching (dunno if that matters here) [05:07:04] legoktm: any ideas? [05:07:45] still thinking... [05:08:10] the parser hook function has $parser as an argument. Can I do something with that to set a global variable? Why don't global variables persist state? Or is it because the hook isn't called at all due to caching? [05:09:08] caching [05:10:27] dhinchax [05:12:31] jazzybee: I'm not really sure. You can workaround your current issue by calling $parser->disableCache(), but that's only a bandaid [05:13:18] legoktm: I tried to inspect $this->data['bodytext'] in the skin to find signs of the widget that embeds. [05:13:41] so can embed in the HTML [05:14:14] And then I figured I could do something like strpos($this->data['bodytext'],'from-news-tag') [05:14:45] Will that work? It's ugly coz very few articles will have but all articles will be checked with strpos at least once before they are cached. [05:14:57] might work, but someone could add in the page's wikitext [05:16:11] yeah that's not a concern. The pages are moderated [05:16:19] but I'm not sure even that's working. [05:20:04] Hey, folks. Asirra is gone. What should I use instead? [05:20:28] legoktm: Can a parser function add Javascript via $wgOut->addScript()? [05:20:34] gleki: have you looked into QuestyCaptcha? [05:20:54] jazzybee: you can add ResourceLoader modules (which are JS or CSS) [05:20:57] !resourceloader [05:20:57] ResourceLoader is the delivery system for JavaScript/CSS in MediaWiki. First released in MediaWiki 1.17. See also https://www.mediawiki.org/wiki/ResourceLoader , https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_%28users%29 and https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers [05:21:16] legoktm: I'm on an ancient version of Mediawiki [05:21:21] oh. [05:21:25] how old are we talking? :P [05:21:57] legoktm: i'll have to try it then [05:22:12] has anyone tried https://www.mediawiki.org/wiki/Extension:Antispam ? How does it work? [05:23:01] gleki: if you're looking for antispam extensions, I'll recommend https://www.mediawiki.org/wiki/Extension:StopForumSpam (which I wrote part of) [05:23:23] legoktm: Old enough that I can't tell you. You will kick me out of this chatroom. [05:23:41] I can't do that :P [05:23:58] but I've only worked with recent versions of MW, so I can't really help much depending on how old it is [05:24:02] yes but you know what i mean :) [05:25:28] Questy is not an option for me. I have a multilingual wiki. In which language should I ask questions? [05:27:46] gleki: not sure, but that seems like a reasonable feature request for the extension. Wikimedia uses FancyCaptcha, which works decently. [05:32:26] legoktm: So I played around with $parser->disableCache() and it works like a charm. [05:32:41] great! [05:32:49] It still uses file caching, so it shouldn't have any performance impact I'm hoping. [05:33:05] file cache is only for logged out users [05:33:09] logged in users will see a performance hit [05:34:08] legoktm: Right. 99% usage is logged out users so we should be ok. [05:34:25] :) [05:34:36] I'd seriously consider upgrading to a more recent version of MW though [05:34:52] legoktm: yes that's technical debt that i have to pay one day [05:34:57] :P [05:35:14] but i'll probably declare bankruptcy before that [06:40:22] Something is broke in API. AWB today outputs: Bot API returned the following error: 'Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (redirlinks, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName().' [06:40:29] on almost every save [06:41:12] Nothing changed on AWB's side. So I suspect there is something on API's side [06:46:40] I found a similar bug reported in bugzilla. So I reported it there [06:46:42] thanks [07:36:45] hello all [07:37:01] last night i told my problem [07:37:16] my problem is: i define smtp settings on wiki [07:37:20] it was working [07:37:25] but 3 days it has problem [07:37:34] show me server inernl error [07:37:45] i saw the eeor logs of my wiki [07:37:59] the logs is not for now, it means no log [07:38:06] what should i do? [07:40:55] are you in here? [07:56:54] no body could answer me??? [08:16:12] Hello. I noticed an issue on Wikipedia and I'm not sure if it's a bug. [08:17:19] On several pages, I've noticed the wikilinks to "Facebook" are not displayed. For example, see https://en.wikipedia.org/wiki/Chris_Hughes. [08:18:19] that's intentional, editors choose which words to link and which not to [08:18:29] In the markup for the pages, you can see [[Facebook]], but the rendered pages don't show the word. [08:19:01] do you know my answer?? [08:19:41] If the word "Facebook" is listed on the page without a wikilink, then the word is visible on the rendered page. [08:22:36] Oops. I just discovered what was happening. I'm using Chrome with AdBlock and it looks like AdBlock is deleting the word. [08:23:04] Sorry. Not a Wikpedia problem. It's an AdBlock problem. [08:23:33] oh! [09:24:23] i found ou this log for my problem [09:24:25] [10-Oct-2014 12:32:30 Asia/Tehran] PHP Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /home/parsinte/public_html/libraries/joomla/cache/controller/page.php on line 199 [09:24:35] could anybody help???? [09:25:28] please any body help me [09:26:35] santhosh: I'm not sure you are in the right chan. This one is about MediaWiki [09:26:41] http://mediawiki.org/ [09:27:16] sasan: I'm not sure you are in the right chan. This one is about MediaWiki [09:27:39] yes, my wiki smtp has problem [09:27:51] i checked the log on apache server [09:27:57] i found out that log [09:28:02] could you help me? [09:40:51] no body face my problem?? [09:54:07] sasan: give version detail please ( os, webserver, mediawiki ) [09:54:31] os:Linux [09:54:43] Mediawiki: 1.23 [09:54:49] Webserver:Apache [09:55:42] :: Apache/2.4.9 (Unix) [09:56:49] oh sorry, i think you have wrong error :) ask #joomla or find a better error [09:57:11] [10-Oct-2014 12:32:30 Asia/Tehran] PHP Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /home/parsinte/public_html/libraries/04joomla/cache/controller/page.php on line 199 [09:57:25] does not look like a wiki to me [09:57:38] you mean the erro of my wiki is based on jomla errr [09:57:47] but my wiki has problem [09:58:19] my wiki has sending email problem [09:59:41] no, i do not mean your wiki error is based on joomla error, i did not say that -- i did say that they are unrelated though and you should look for a proper error message for mediawiki instead [10:00:11] i checked all error log of apache server [10:00:34] no wiki error shown there [10:00:39] it is 203m error [10:01:08] but i searched wiki word [10:01:13] nothing founnd [10:03:00] "203m"? what does it say? [10:03:28] error file volume is 203Mb, [10:03:33] i downlaod it and see [10:03:44] the last errors are what i sent you [10:04:23] "my wiki smtp has problem" -- why do you think so? [10:04:54] becasue when a guy register in my wiki, after entering his inof such as email [10:05:05] then it show internal server erro [10:05:12] insteadof sending email [10:05:49] ok. find that internal server error detail in webserver log. look for his ip or a timestamp. or you could yourself log out, try to register, and look at fresh logs. [10:06:57] i checked webserver log [10:07:09] but it show me just that eror i sent you [10:07:13] so intersting [10:07:15] :( [10:07:31] could you register in my wiki and see [10:07:45] http://wiki.parsintelligent.com [10:10:02] ?? [10:10:18] ... or you could yourself log out, try to register, and look at fresh logs. [10:13:46] I'm surprised that you are not concerned with that each page takes 15 seconds to load. [10:15:07] I tried to register and got a beautiful 500 page. It says: "More information about this error may be available in the server error log.". [10:15:24] Please look at your fresh logs for IP 121.211.246.141. [10:19:55] let me check [10:22:31] there is nothing about your login [10:22:32] :( [10:22:40] please help me:( [10:24:59] You have to find it, or I will lack information. I'm not doing guesswork. [10:26:52] could you remote and see??? [10:26:54] please [10:27:05] maybe you believe me [10:29:04] please [10:29:07] could??? [10:29:51] only if you can do it over ssh without sharing your password, but I doubt you can, hence no. [10:31:05] could you open a private page in this irc [10:31:12] i will send you my id and passs [10:36:40] as I said, I do not support sharing accounts. [10:37:07] all I can suggest is re-reading fresh webserver logs and looking for an error message. [10:47:14] i read all [10:47:17] no message [10:50:42] ask web host for help. say "I have mediawiki, it has a 500 for 121.211.246.141, please find it in my webserver logs". [10:51:39] let me ask [12:31:55] online in here??? [12:33:38] i delete that error_log [12:33:42] why [12:33:43] and generate new one [12:33:45] ok [12:33:51] then i go to my wiki and register again [12:33:57] the i see error 500 [12:34:03] i come back to error_log [12:34:08] ther eis nothing [12:34:09] no error [12:34:11] :(] [12:34:30] so interesting [12:38:32] any idea?? [12:39:04] i would ask the host about this, this may have to do with the webserver configuration [12:39:23] i used to use a prgmr.com vps and it worked fine [12:39:27] i had full control [12:39:35] logs appeared where i expected them [12:39:51] but why in my server log [12:39:59] there is no log [12:40:01] ?? [13:19:40] sasan: do you have error reporting turned on in LocalSettings.php? [13:22:14] i added this just error_reporting( -1 ); ini_set( 'display_errors', 1 ); [13:22:19] is it enough? [13:22:54] error_reporting(E_ALL | E_STRICT); [13:23:04] ini_set("display_errors", 1); [13:23:20] $wgShowExceptionDetails = true; [13:24:12] once you add that, reload the page and see if anything is displayed [13:24:44] a min [13:27:18] : just this [10-Oct-2014 16:53:59 Asia/Tehran] PHP Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /home/parsinte/public_html/libraries/joomla/cache/controller/page.php on line 199 [13:27:24] i think it is not for wiki [13:29:53] nope, that's not caused by MediaWiki [13:30:01] sasan: https://github.com/joomla/joomla-platform/issues/1617 [13:30:29] sasan: you may wish to take this conversation to a Joomla channel now [13:30:58] if the problem is with jomla, it affect on mediawiki?? [13:32:05] unikely [13:32:29] what is omla irc? [13:32:38] no idea [13:32:43] google will though [13:32:57] ok [13:33:01] thanks [13:33:24] good luck [14:15:03] he he, i asked my question in joomla irc and waited half hour [14:15:10] no response [14:15:19] they are not active [14:15:31] Nobody use Joomla. [14:26:33] heh [15:18:26] hello. has anyone managed to employ html5 Application cache to make mediawiki websites available offline? [15:19:52] AppCache doesn’t really mesh well with server-side-oriented systems like mediawiki, unfortunately [18:13:05] hi all, does someone know what CSSs do I have to import from MediaWiki's mediawiki to display Template:Ambox correctly? I tried importing MediaWiki:Gadget-site.css and MediaWiki:Gadget-site.js but it doesn't seem to be enough; the boxes surrounding the text are not shown, although the icons are. [18:15:33] ubsrv, Mediawiki:Common.css [18:16:09] that one seems to be moved to MediaWiki:Gadget-site.css, which I already imported [18:18:09] this is how I see it right now: http://oi60.tinypic.com/2yull04.jpg [18:18:15] the square surrounding the text is missing [19:36:50] Hello all! Can anyone tell me if/how the Database access abstraction layer supports incrementing an int field by 1? and if so, how? [19:38:21] I'm a totally ignorant on that subject, but it should be like any update, I suppose (set field = field + 1) [19:43:45] Vulpix: Yar, I'm just going to poke it with a stick and hopefully nothing crashes. [19:43:45] :P [19:44:02] :D [19:54:49] this is perhaps a strange question, but I have a wiki with a number of pages which contain information that's very noisy and clutters the search results. I want the pages to be on the wiki and discoverable from their category only. Is there any good way to prevent those pages from showing up in search? [19:56:24] Most of the documentation I find is for hiding pages from users, or for hiding pages from crawler bots, but I don't want to do either of those things. [20:07:28] I'm having a bit of trouble with images after I switched over to short URLs. [20:08:34] When I view an uploaded image the image does not display, but using a direct link to the images works fine. Trying to click on a different size (which should redirect to thumb.php) redirects me to the main page. [20:09:13] I used shorturls.redwerks.org to generate an htaccess, but I guess that doesn't work. [20:09:29] Here is an example of my problem: http://wiki.hive13.org/view/File:Rockwell_Shaper.jpg [20:10:10] I tried directly accessing the thumb.php url and that seems to work [20:11:03] oh, that is odd... [20:11:28] after I view the thumb.php url directly it seems that thumbnail size works when I click the link for it [20:28:28] http://forums.wikihow.com/discussion/12675/proposed-changes-to-how-we-share-our-source-code [20:35:09] legoktm: Hmm, address sounds interesting... [20:35:45] it's horrible. [20:36:52] The correct solution would be to... work with upstream and set up a nice mess of git repositories ;) [20:57:24] At least they're doing something, lately [21:03:53] do you only need to change the common.css to enable the lowercase name change? [21:03:53] I added this to my common.css and reloaded my cache and it's still uppercase: [21:04:02] #pt-userpage a[href="/sandbox/User:Minip"], [21:04:03] .mw-userlink[title="User:Minip"] { [21:04:03] text-transform: lowercase; [21:04:03] } [21:39:23] <[twisti]> hey, i use mediawiki, and i would like some pages to display data that comes from elsewhere (i could write some php thing to put it into variables myself). is there some sort of api for that ? i dont want to edit the mediawiki source directly because then i couldnt easily upgrade anymore [21:40:59] [twisti]: have you looked at https://www.mediawiki.org/wiki/Manual:Tag_extensions ? [21:41:24] <[twisti]> i havent, but i will now, thanks [21:43:02] <[twisti]> that looks like what i was hoping for on first glance [22:21:27] Just in case there’re any Emacs users here who aren’t at #emacs at the same time, I’ve just released an alpha version of my MW 0.1 Emacs MediaWiki interface. It’s available from http://am-1.org/~ivan/packages-el/ (as in: C-h v RET package-archives RET.) [22:27:26] ivanshmakov, sweet, thank yoiu. [22:29:43] IanKelling: FWIW, it’s not (yet) as convenient as https://launchpad.net/mediawiki-el, but it has its potential. For one thing, it supports vc-print-log, M-x vc-ediff against an arbitrary revision, and (if you’re lucky) M-x mw-eww-preview. [22:30:45] (I have no plans at implementing mediawiki-mode of any kind right now, so borrowing one from mediawiki.el may make sense, too.)