[03:55:44] graph viz makes nothing ... the picture does not appear, i did run the update script and also the path to the executables i did try with or without endind slash, ... how do i get this to run? [04:40:50] how to install the graphviz extension on windows? i only get blank paragraphs with no picture [08:44:29] I'm trying to install mediawiki on win32 and am confused abot how I make Apache serve the wiki under hostname/w/ instead of hostname/ for better URLs [09:05:48] mkesper, setup rewrite rules 1st then verify rewrite is working.... [09:07:36] https://bpaste.net/show/29ae1c7fe4b4 [09:08:03] that's my rewrite rules in /var/www/localhost/htdocs/mediawiki/ which has a link to /w/ [09:08:31] think of it as webroot/w/ ie your mediawiki is unpacked in /w/ [09:10:44] the urls of the tests are webroot/mediawiki/testing.html && mw/modrewrite.html, if its working both links will return 1 page only [09:21:38] threesixes: ATM, I get redirected from host/ to host/w but then I get just an index dir and when I click on the w/ it tells me: The requested URL /wiki/Hauptseite was not found on this server. [09:23:50] ok now you need to setup the config file [09:24:07] htdocs/mediawiki/LocalSettings.php [09:24:50] $wgScriptPath = "/mediawiki"; $wgArticlePath = "/wiki/$1"; [09:25:02] for you its /w/ if your mediawiki is unpacked in /w/ [09:25:12] on the 1st script path [09:25:24] uhh mkesper [09:28:34] threesixes: hmm that's there. I guess I'm having problems with my virtualhost definition [09:29:22] rewrites are tough, you'll get it [09:29:58] my urls are localhost/wiki/Main_Page [09:50:08] why does this have to be so complicated? [11:36:11] Hi all [11:37:49] Does anyone know how to return a error message in hook like "onPageContentSave" ? Thanks. [11:51:50] hi! [11:52:00] i'd like to curl -F text=@file [11:52:30] however, all i get is code: notext [11:53:12] somewhere (SO i think) somebody said that you can't do that [11:53:48] you have to --data @file and roll your own multipart boundaries and whatnot... [11:53:52] really? [11:59:07] threesixes: I had set the rewritr rules outside of the virtual host declaration. Fixed that, now it works! Thanks! [12:00:20] good work, took me 3 months to figure that noise out [12:00:51] * threesixes hugs mediawiki for letting me document that [12:01:58] :) [12:02:14] In other words, I got the following error message "Edit aborted by hook. It gave no explanation.", and I want to give an explanation... [12:04:13] threesixes: the Installation instructions on mediawiki.org should be streamlined somehow. (Would be a lot of work, probably...) [12:04:38] is there a simple way i can use the API to Edit a page? [12:05:01] it needs to authorize with apache, i.e. mwclient for python won't f.ex. [12:05:20] Kallys: hmm [12:05:30] problem with that mkesper is that nginx is nothing like apache with rewrites [12:06:13] threesixes: is it easier? [12:06:20] yes MatmaRex, an idea ? :) [12:06:41] no lol, it runs much better though.... i can shuck out 10,000 mediawiki pages a second [12:06:44] Kallys: looks like the hook takes two more parameters than it is documented :/ and the last one is $status, containing a Status object, you can call ->fatal('message-name') on it to give that abort message [12:08:13] mkesper, u mind pming me your url so i can look at yer wiki? =D [12:08:41] threesixes: sorry, it's an internal-only one. :( [12:08:52] (in addition to returning false from the hook) [12:09:06] k i pmed you with info on where my wiki tips are ;-) [12:09:20] threesixes: and with Apache, at how many pages did you get then? [12:09:27] 4-20 [12:09:37] WHAT? [12:09:44] apache is slow [12:10:03] ab -n 5 -c 5 http://url [12:10:13] gotta put it behind a cache [12:10:22] wikipedia's behind varnish [12:11:21] MatmaRex: how could i get the right function signature then ? I can't find hook calls in master source code :/ [12:12:04] threesixes: and nginx works without a cache? [12:12:23] nginx is a cache.... [12:12:43] Kallys: /includes/page/WikiPage.php, like 1720 onward [12:12:45] $hook_args = array( &$this, &$user, &$content, &$summary, [12:12:45] $flags & EDIT_MINOR, null, null, &$flags, &$status ); [12:12:46] if ( !Hooks::run( 'PageContentSave', $hook_args ) [12:12:55] line* [12:13:15] Requests per second: 110.92 [#/sec] (mean) puma cluster 3 workers: same cluster behind varnish mkesper Requests per second: 10268.42 [#/sec] (mean) [12:13:50] impressive [12:14:16] yeah that's ruby... php-dso handler is slow, php-fpm can have 20+ workers [12:15:02] ok perfect ! [12:15:47] I used to search using searchengine of doxygen online [12:16:15] but it is not very efficient... [12:16:30] the files in the tarball belong to mah/mah (UID/GUID=1000), is this only irritating (being my UID here) or could it be a problem? [12:16:57] So thanks a lot MatmaRex, now I'll be able to find real hooks' definitions by myself :D ! [12:17:17] And solve my problem in the same way [12:20:12] I didn't search more when I saw no parameter of PageContentSave has write access in manual... So I'll correct it ! Thanks again [12:32:46] EdePopede: you could do a chown -R user:group [12:36:50] Are you using VisualEditor? what would I have to care about when installing/activating? [13:30:24] I'm trying to find documentation, but it's not really documented anywhere [13:30:48] I get "Cannot create directory mwstore://local-backend/local-public/0/0a" [13:31:13] which is fine, but not a linux directory. I want to find the actual underlying linux directory that mediawiki thinks it's trying to access [13:31:52] google and searching mediawiki.org only ever refer to error messages, and I am now reduced to reading FileBackend.php [13:32:26] I want to be sure it's actually referring to /opt/bla/bla/www/htdocs/actualwiki/images [13:32:40] rather than some random location, due to some random reason [13:34:55] why does this exist, and what is it trying to achieve? I don't even .... (tries finding info on filebackends on mediawiki.org) [13:35:48] Hi kim_bruning [13:35:53] Hi Nemo_bis [13:36:08] I'm bashing head on table atm, probably it's completely obvious once I get it ;-) [13:36:43] can you check the permissions of $IP/images [13:36:50] yes I can [13:37:14] Old releases also used https://www.mediawiki.org/wiki/Manual:$wgFileStore [13:37:43] I'm not sure about local-backend [13:39:07] wait ... waht? [13:40:23] why is the owner wiki [13:40:28] and not apache apache? [13:42:53] drwxrwxr-x. apache apache images [13:43:00] it is now [13:43:02] but same error [13:43:59] Okay [13:44:28] so now i still want to find out what mwstore://local-backend/local-public actually translates to in my case [13:52:44] * kim_bruning is re-reduced to reading source code [13:52:46] wtf? [13:54:12] how do I find out where mediawiki thinks it's going to store the file [13:57:11] Ok, so how do I access the live instance of FSFileBackend, so that I can query resolveToFSPath ? [14:23:05] Why on earth did my upgrade from 1.23 to 1.24.1 delete my Main Page (=Hauptseite)? [14:32:15] mkesper, it did? i could see it redirecting back to Main_Page but not deleting content [14:33:30] threesixes: yes, it did [15:10:59] mkesper: did the database upgrade to make it work with 1.24 not go well? [15:11:28] i would try restoring the db from a recent backup and doing it over [15:12:34] RobotsOnDrugs: there were no errors reported [15:13:19] hi, after my last git pull, my created forms are giving errors: "Cannot change display format after creation, use HTMLForm::factory() instead" [15:13:25] RobotsOnDrugs: and I had just to undelete that page and fiddling with language settings then it seemed normal again [15:14:02] I tried using "new HTMLForm( 'vform', $formDescriptor, $this->getContext(), 'add-word' );" but this is also throwing errors, any help please [15:14:03] ? [15:18:58] fixed anyways! :) [16:03:36] Can anyone help how can I fix this error: https://www.mediawiki.org/wiki/Thread:Project:Support_desk/fatal_error_to_create_accounts [16:24:55] JacksonIsaac: The MediaWiki user mail feature relies on http://pear.php.net/package/Mail. On the WMF cluster and in MediaWiki-Vagrant we install this using deb packages: apt-get install php-pear php-mail php-mail-mime [16:25:43] Then the /usr/share/pear directory is added to the global php include path via php.ini settings [16:28:35] I am using Mac OS X [16:28:47] I have installed that using pear install mail and pear install smtp [16:29:32] but seems like the install path is somewhere else like /Users/Jackson/ and not /usr/bin/pear/lib something like that [16:30:21] pear was also installed in /Users/Jackson somewhere I added the path to the environment variables [16:30:37] by adding the path in ~/.bash_profile [16:35:34] JacksonIsaac: Ah. Pear needs to be in PHP's include_path, not your shell search path. On a standard OSX PHP install this means making an /etc/php.ini file based on the package provided /etc/php.ini.default file [16:38:14] bd808: https://dpaste.de/0SKg Here is the output of installation checking of pear as given at http://pear.php.net/manual/en/installation.checking.php [16:40:45] JacksonIsaac: *nod* You need "/Users/JacksonIsaac/pear/share/pear" in your include_path then. Running `php -i | grep include_path` will show you the current include_path (probably will say ".:") [16:42:08] Look in /etc/php.ini.default for examples of setting include_path [16:42:36] \j wikimedia-operations [16:44:51] bd808: yes the output was .: and I thought that there was some error in that [16:45:56] Nope. that says look in "." (current working directory). The ":" is the path separator. So you want it to say something like ".:/Users/JacksonIsaac/pear/share/pear" when you are done [16:48:09] You can think of this as equivalent to $PATH in your shell. When PHP wants a file and you haven't told it an absolute path to the file to include it will first look for it in the current working directory (.) and then in the pear dir (/Users/JacksonIsaac/pear/share/pear) [16:56:55] need to uncomment this part ? ; UNIX: "/path1:/path2" [16:56:55] ;include_path = ".:/php/includes" [16:57:21] and replace php/includes with Users/Jackson/pear/share/pear [17:27:01] bd808: seems like wikimedia-operations is kinda going through some test output [17:27:03] JacksonIsaac: that sounds right [17:27:37] JacksonIsaac: ^ was about your prior statement "and replace php/includes with Users/Jackson/pear/share/pear" [17:28:14] But I dont get how php/includes and pear/share would be similar [17:28:22] yeah operations is full of outage alerts at the moment. We are having a networking equipment event in our primary data center [17:28:42] does that mean if my installation path was configured correctly pear/share/pear would be placed under /php/includes ? [17:29:00] No, it is just a semi-random example [17:29:26] the typical install path for pear would be something like /usr/share/php/pear on a debian box [17:30:02] but it really doesn't matter where it is as long as you know where it is and set the config properly [17:30:09] so there too we would need to add the path in our php.ini [17:30:18] *nod* [17:30:37] There is no "default" location other than "." (current working directory) [17:30:40] okay, just wanted to know where I went wrong. So I keep that in mind [17:56:43] bd808: Still getting this error https://dpaste.de/CVhN :( [18:09:59] uhm, can mw.org sysops look at RC and delete some? [18:18:23] <^d> Revi: I saw 2 things worth deleting, took care of them [18:26:51] thanks, there was 2 more in CSD tag, but handled by GS [18:32:40] JacksonIsaac: I just noticed that you are using MediaWiki-Vagrant. I thought you were running bare metal on OSX? [18:33:36] JacksonIsaac: The fix for the mailer error in MediaWiki-Vagrant was just merged last week. Update your mediawiki/vagrant git clone and run `vagrant provision` to fix the VM [18:33:43] There was this easy installation [18:33:50] oh okay :) [18:34:10] I have to add the mail account and password in the LocalSettings.php correct ? [19:02:47] hello? [19:03:03] first time here, total noob. can haz help? [19:03:34] !ask | sp144 [19:03:34] sp144: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [19:04:46] I have a user interface design suggestion, and am having trouble figuring out how to relay it to the proper people / channels. [19:05:13] phabricator should work in most cases [19:05:20] though, there's some mailing lists that might help [19:06:22] sp144: What's the suggestion? [19:07:53] uh well pretty simple really, and this may have been suggested many times already, not sure, but i'm wondering if it would be possible to make the banner on the left collapsible? [19:08:31] The sidebar? I think that's something designers are already working on [19:08:36] Mobile already basically does that [19:08:38] oh ok cool [19:08:39] yea [19:08:44] the mobile site is nice [19:08:53] i'd love for the non-mobile site to look more like the mobile site [19:08:57] e.g., more minimalist [19:09:02] less chrome [19:09:13] sp144: I have a feeling you're going to get your wish relatively soon. [19:09:19] wunderbar [19:09:49] well what are the odds on that. i feel like the current wiki UI design has been in place for quite a while. [19:10:09] not going to resonate well with some hardcore editors which replace the logo with a bunch of on-wiki links [19:10:10] True [19:10:14] :) [19:10:31] we've had a set of simple skins with collapsible sidebar afair :> [19:12:24] which is the steward channel? [19:13:20] Andyrom75: sent you an invite to #wikimedia-stewards [19:13:42] thanks [19:16:30] sp144: you can already use the mobile skin on desktop, if you really want to [19:17:09] sp144: https://en.wikipedia.org/wiki/Archodonata?useskin=minerva [19:17:44] you can get the Minerva skin by installing the MobileFrontend extension and twiddling some well-hidden configuration settings that i don't quite remember right now [19:29:12] hypergrove: did you get your problem solves (re: translate?) [19:33:33] bd808: Got this output "Class undefined: Net_SMTP" now. Do I need to set some SMTP variable too ? [20:36:27] Nikerabbit, yes i did thank you for asking, working on setting up a dns and squid now, arghh [20:36:44] :/ [20:40:50] hello. i have a problem with mediawiki pictures/images ... i can upoad imeages and they appear also in the wiki as expected, but when i use graphViz (on windows) the pictures do not appear, also the semantic wiki has some grafical plot functions for tables which do not work, the picture that should appear stays some how blank, no error no message but with graphViz it makes a paragraph, nothing more [20:41:49] i did set the path to graphViz and i did also enable and disable imagemagic and it did not change much [20:41:53] hypergrove: ok [20:42:45] i did also download mscgen for the graphViz extension but this also returns no picture ... what could the problem be? [20:43:52] Rabutz: enable the debug log and look for any error or possible failure [20:43:56] !debug [20:43:56] 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 [20:54:34] here is a debug log for my GraphViz problem http://pastebin.com/8DmEYCrt but i dont see a error, but still no picture by graphViz in the page ... just a paragraph with nothing [21:04:30] Rabutz: in your logs I see a request to File:Test_msc_mscgen.png to commons, but that image does not exist there. Then it's trying to access it from W:\WWW_DOC\(tester.tld)\WWW-ROOT\mediawiki\images\graphviz\images\Test_msc_mscgen.png [21:04:42] I don't know if that makes sense at all [21:04:59] well, I know nothing from graphviz [21:09:32] some how true ... i never saw a picture by graphViz in the wiki/images or wiki/images/graphviz directory... i thoght its maybe because the pictures may only exist temporarely or i dont know what ... but i think there is some thing about that ... because graphviz or mscgen or gd or imge magic seem to be seen by the wiki, if i give a wrong path i get a clear error so i think the given pathes are ok, just some thing with the picture gets wr [21:10:56] I wonder if you have an embedded image called Test_msc_mscgen.png in that page, or it's inside GraphViz or whatever [21:53:30] Hi mediawiki [21:53:59] Are people using SASS in their skins? Are there reasons not to, or tools to help one do so? [21:54:37] firebus: MediaWiki ships with LESS, actually [21:54:43] Which is slightly different but also useful [21:54:57] okay - i'm still using $ancientVersionOfMW [21:55:06] Trying to write SASS would be possible, but you'd need to compile it before distributing [21:55:07] i should install a clean copy of latest and see how it works [21:55:28] whereas I can do LESS and distribute as is, and expect MW to compile it for me? [21:55:44] Yeah [21:55:47] thanks! [21:56:05] ResourceLoader will compile the LESS for each request (caching may prevent it though, depending on your settings) [21:59:50] !debug [21:59: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 [23:29:05] am trying to hide the IP address in the userlinks nav but the solution I found is not working [23:29:26] which solution are you trying? [23:29:58] $wgShowIPinHeader = "false"; [23:30:17] And, thank you so much [23:30:46] that's in the localsettings file [23:30:56] first of all, "false" evalueates to true [23:31:02] remove the quotes [23:31:20] oh, and welcome to the wonderful world of PHP! :P [23:31:53] but $wgShowIPinHeader = true; should work :) [23:33:46] hi! [23:33:59] It's still there, but there may be a lag with the server [23:34:38] I want to add an AdSense ad to the footer and the header of each page on a private MediaWiki installation. What would be the apropiate hook to do this? [23:35:22] eh, adsense on a private site? [23:36:12] * personal [23:38:48] Cleared the browsers, but still get IP address when anonymous [23:39:10] And, MC8, thank you! [23:39:26] eh, so you set it to true? [23:39:44] Yes, and no quotes [23:40:06] using v 1.24 [23:40:15] and what did I tell you? false without quotes, right? ;P [23:40:22] sorry, I'm telling lies [23:40:25] my mistake [23:41:43] OMG, that was it! Thank you everyone!! THNX. [23:50:59] Guys, I solved the problem. I used OutputPageParserOutput. [23:51:00] Thanks!