[01:25:30] Why is there a white line on my special:all pages and http://wiki.gamepaduniverse.com/w/index.php?title=Special%3AUserLogin&returnto=Main+Page&type=signup ? I am using a modified vector skin. Is this something due to my modifications or the vector skin itself? [01:25:58] the white line is along the top through my logo and below the options bar [01:30:13] sneezejr, it's a bunch of css applied to #mw-page-base [01:33:54] sneezejr, I think you'd want #mw-page-base { background-image: none; background-color: transparent; } to hide it from your skin.css [01:35:22] yep, just figured it out moments before your reply [01:35:25] thanks friend [01:40:33] what about the white speckles found on the special:specialpages ? [01:40:36] what element is that? [01:41:34] you're welcome [01:42:01] for reference:http://wiki.gamepaduniverse.com/wiki/Special%3ASpecialPages [01:44:54] sneezejr, interesting [01:45:45] indeed [01:46:36] sneezejr, .mw-specialpages-table { background: #353332; } [01:47:54] works! Thanks again for your assistance [01:48:24] I really like this community. Truly leading by example. [01:49:13] Basically I found your td { background:#353332; } [01:49:22] and turned it off for a specific element [01:49:32] then tried it against the table instead of the td, which hid the lines [01:49:43] you may want to apply it more broadly than just .mw-specialpages-table [02:01:48] Does anyone here know how to fix "Could not acquire '(database):messages:en:status' lock?" [02:02:22] I've been trying to research it, and it seems to point toward our redis server, but that message is so obscure that I just don't know what to do. [02:02:45] I've restarted nginx, mariadb, and redis. Still has yet to fix that. [02:04:09] Thanks for the explanation, Alex. [02:18:36] If it helps, we use redis for the main, session, and message cache. [03:13:22] justin_zw: have you tired disabling redis and seeing if that error goes away? [03:13:43] I would if I knew how my co-admin set it up ._. [05:00:25] Hi. After vagrant up, when I try opening it on the browser I am getting the following error: https://dpaste.de/6jEL .. Could somebody please help? [05:01:25] ayushi: Did you add that line to your LocalSettings.php? [05:04:39] error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); [05:04:53] Niharika: I added this: error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); [05:05:14] ayushi: Where did you add this? [05:05:53] Niharika: At the end of LocalSettings.php in the mediawiki project inside vagrant [05:06:40] ayushi: require_once(/vagrant/mediawiki/skins/LivingStyleGuide/LivingStyleGuide.php): Did you add this? If not, comment it out, and try again. [05:07:57] Niharika: No I didnot add this. However after commenting it out, I get a similar error with some other require_once. Does it have to do anything with the address of my php/pear installation? [05:09:10] ayushi: First check that the file it is trying to access exists. [05:09:30] ayushi: Does mediawiki/skins/LivingStyleGuide/LivingStyleGuide.php exist? [05:09:33] Niharika: Yes it exists [05:10:41] ayushi: Okay. I'm not sure what's going wrong here. But comment out that require_once() too and try again. Let's try to isolate the error. [05:11:15] Niharika: Okay [05:17:18] Niharika: The new error is this https://dpaste.de/4qKX .. I'll find this and comment this out too. [05:17:58] ayushi: Wait a moment. I'll cross check with my LocalSettings.php. [05:19:03] Niharika: Okay [05:21:37] ayushi: That exists in mine as well, but not at line 90. [05:21:47] ayushi: Is this a fresh vagrant install? [05:22:07] Yes. Installed about 10 days back.. [05:22:43] ayushi: Okay, did you add anything to LocalSettings.php except error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); ? [05:22:58] Niharika: No. Nothing else.. [05:23:31] Okay. Run: 'vagrant halt' Then 'git pull', then 'vagrant up'. [05:24:07] Niharika: Okay [05:30:36] ayushi: I gotta go. I hope that works for you. [05:30:57] /msg NickServ VERIFY REGISTER ameenkhan07 lvnivmblsyee [05:31:52] ... [06:09:25] how can I add myself as an admin on my MW local installation? [06:20:17] ankita_: If you visit the page "Special:Listadmins" on your wiki, there's probably one bureaucrat account there. [06:20:28] Bureaucrats can use the page "Special:UserRights" to make new admins. [06:20:53] If you don't have access to a bureaucrat account, you can use the createAndPromote.php maintenance script. [06:21:09] Or you can temporarily modify your user permissions to allow any user to make an administrator. [06:21:42] Fiona: I added myself as a sysop, bureaucrat and also in an extra group spelladmin (this is to provide restricted access to some special pages of the extension) [06:21:59] Fiona: but I still get the error: You do not have permission to , for the following reason: [06:22:21] Fiona: I am using vagrant and added using mysql commands in the vagrant terminal [06:28:18] Fiona: The Special:UserRights page says: You do not have permission to do that, for the following reason: You do not have permission to add or remove user rights. :( [06:30:30] ankita_: you shouldn't edit the mysql database directly. MediaWiki has caching on top of the database, so unless those caches are updated you'll have issues [06:31:55] ankita_: Sounds like the extension needs additional configuration. [06:32:00] Maybe. [06:32:56] legoktm: oh! how else may I add myself in a group. Actually, the scenario is this: I have 3 special pages which should be restricted and so I created a group spelladmin in my setup file, and added the group in the construct of the special pages. But now I am unable to access them myself, and so I need to add myself to spelladmin group [06:33:57] ankita_: you should use Special:UserRights [06:34:23] if you can't access that page, you should use createAndPromote.php like Fiona suggested [06:34:44] legoktm: okay, i'm trying createAndPromote [06:40:13] legoktm: Fiona done! yayyy! thanks :D [06:40:21] awesome [06:57:45] Hi. When I am trying to run vagrant from my browser I am getting the error https://dpaste.de/goMn ..Can somebody help? [06:58:15] Also, how can I change my include path for php and pear here? [07:46:46] does mediawiki 1.24 work with php 5.6? [07:49:17] yes [07:50:19] the requirements are here: https://www.mediawiki.org/wiki/Manual:Installation_guide [07:59:12] Styles from my common.css aren't being utilized after a restoration from backup. I don't see the common.css included as a stylesheet, is there another method in which it's loaded? Thanks [08:16:05] hello [08:16:21] please see my wiki, wiki.parsintelligent.com [08:16:33] i sidebar i want to change the color of arrow [08:16:38] could anybody help? [08:21:02] strange, it randomly started working...nevermind [08:37:13] could anybody help me?? [08:40:13] Niharika: could help? [09:08:36] no body can answer me????? [09:08:43] i just ask a question [09:57:26] sasan : the concerned people might not be around. I am sure they will get back once they come online. Patience, my friend. :) [11:10:03] no body can answer me? [11:10:09] or can not understand me [11:10:11] ? [11:43:35] legoktm, I am interested in participating in GSOC and Outreach this year. I would like to start working on a project. I was looking around for options. but the micro tasks associated with this project are either assigned or closed. [11:44:01] https://phabricator.wikimedia.org/T89682 [11:44:10] are there any other tasks available? [11:44:13] thanks! [11:45:00] Niharika_ : maybe you could suggest something? [11:45:32] ankita-ks: Looking. [11:47:00] : could you help? [11:50:59] ankita-ks: I am not sure about the microtasks there. But you can work on the things legoktm has listed there. [11:51:18] okay. let me take a look. [11:51:21] sasan: Sorry, I have no idea about your problem. [11:51:44] sasan: It's a sunday. People who can help you are most likely not here. You should ask tomorrow. [11:57:18] Niharika_ : do you mean the bullet points listed? [11:57:31] ankita-ks: Right. [11:58:45] okay. let me start looking around in the codebase. Does it require any setup apart from mediawiki-vagrant? [12:32:51] no body can asnwer me, in my wiki: wiki.parsintelligent.com i want to change the arow color in sidebar to white. could you help me? [12:40:59] A particular form submission (on a special page) requires returning some data from the table and display it again on the same page using $out->addHTML ( Class::function( $paramater ) ); [12:41:28] Hi. On running vagrant provision in my system, it is trying to point to a few files that don't exist, and the errors also have a few failed dependencies which I am unable to understand. The vagrant installation is upto date. The provision.log file reads https://dpaste.de/acxe . Can somebody please help? [12:41:48] Is there a list of wikiids to urls somewhere? Wikiid as returned by eg http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo rather than interwiki? [12:41:50] but this throws an error: Call to a member function addHTML() on a non-object (NULL) PHP Notice: Undefined variable: out [12:43:18] Do I have to redeclare $out in such a case? [12:45:02] Niharika_: Could you please look into this? [12:50:42] https://www.irccloud.com/pastebin/IySaFKhe [12:54:15] I want to fetch the value of a wikidata item. Is there a way to do that in php, or can it only be done by pywikibot? [12:54:22] LOL, 223k revisions of spam on this page (the wiki has 700 pages) http://cfdonline.ir/wiki/index.php?title=%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C&action=history&limit=500 [12:55:12] Nemo_bis: Could you please help me with my problem mentioned above? [12:57:27] Unlikely: lunch time, sorry. [13:00:59] ankita_: what is the exact problem that you're facing? [13:03:29] codezee: i have to display the content returned by a function using $out->addHTML() [13:03:50] codezee: this would give a better view: https://www.irccloud.com/pastebin/IySaFKhe [13:05:29] ankita_, which function here is meant to return the content that you want to display? [13:05:40] ankita_: as the error says $out is not defined anywhere [13:05:48] codezee: foobar [13:06:20] ankita_: or is it declared outside the function? [13:06:23] Glaisher: I declared it in execute as $out = $this->getOutput(); [13:07:26] ankita_, in that case, pass $out as an argument to foobar, if its not globally available [13:07:32] ah, it needs to be a global variable if it should be used ina function [13:11:36] codezee: Passing it as an argument gave this error " Call to undefined method VFormHTMLForm::addHTML() " [13:12:47] Glaisher: I triedt this: global $out; $out = $this->getOutput() in execute. Is this okay? [13:13:10] ankita_: just use $this->getOutput(); instead of using $out. I think that's what I've seen in most of the special pages. [13:14:30] Glaisher: but then statements like this would become invalid: $out->setPageTitle(something here) [13:14:48] that is inside the execute function? [13:15:11] yes [13:15:13] if it's outside the function, you can simply use what I suggested above without removing it from the execute function [13:16:17] Glaisher: this is the source code https://dpaste.de/s8r0 [13:18:32] You don't need to pass $out as a parameter [13:18:38] and I don't think that' [13:18:46] s how it's done in mediawiki code [13:18:56] at least, I've never seen it like that being used [13:19:40] ankita_: the easiest way would be to just use $this->getOutput(); in showSpellings function [13:20:50] Glaisher: I tried doing that too but it says : $this is null [13:20:54] Glashier, ankita_, the showSpelling function us static [13:21:00] *is [13:21:27] oh [13:21:44] ankita_: you cannot get the current instance for a static function [13:22:48] Glaisher: oh! I am removing static and shall I make it protected, since it's being called by a function, and not directly? [13:22:50] ankita_ :changing the function to non-static and doing what Glashier suggested would hopefully do the job [13:23:28] ^ [13:23:39] :) [13:28:31] Glaisher: is it possible to get value stored in a wikidata item using php? [13:29:28] codezee: Glaisher I removed static keyword, and re-initialised $out = $this->getOutput(); in showSpellings [13:29:42] And still get the error- $this is null [13:39:52] codezee: Glaisher any help as to why it throws such an error even after new instance of $ out showSpellings() ? [13:40:18] * $out in showSpellings() [13:41:19] ankita_: its strange, could you paste the new code? [13:42:10] codezee: https://dpaste.de/rqJ3 [13:49:27] ankita_: one suggestion is to declare $out as global, set it in execute() function and use it in others [13:49:37] ankita_: see https://www.mediawiki.org/wiki/Manual:Special_pages#OutputPage.php [13:52:51] hello everyone [13:56:30] codezee: I had tried that earlier, and that is where it had started from with the error : Call to a member function addHTML() on a non-object (NULL) [13:57:44] ankit_: and static or not static the showSpellings function seems not to contain a reference to $this,isn't it? [13:58:20] codezee: yes [14:02:30] ankit_ : I cannot say for sure but I guess that means that the showSpellings function is being called before the SpecialPage instance is loaded [14:02:39] which could lead to $this being null [14:04:17] codezee: but the call to showSpellings function is only made in the form callback! [14:37:37] I wanted to work on pywikibot. Can you please help with the start point? [14:55:33] hello! i've installed mediawiki on my server using nginx + php5-fpm, i'm trying to rewrite to get clean urls. i've done so, but all images are 404 now. anybody have any idea why? [14:55:55] the images all have the correct permissions [14:55:57] running debian [14:58:08] neverm ind [15:35:53] hi [15:36:12] I have a question about mwdumper, anyone here used it ? [15:37:44] i've run java -jar mwdumper.jar --format=sql:1.5 enwiki-latest-pages-articles.xml.bz2 | mysql -u wikiuser -p123 wikidb [15:38:11] for a couple of days an finished with no error at: 15,271,374 pages [15:38:31] wikipedia says: more them 35,000,000 pages [15:38:52] so I'm guessing the full import failed, or I'm missing something ? [15:59:44] sigh, richiamata dalla funzione "SqlBagOStuff::set/single-row". Il database ha restituito il seguente errore "11: database disk image is malformed". http://www.runnersassari.it/wiki/index.php?title=Dietpllsthtwrkfst [16:00:27] ankita_: sorry, I was away [16:00:41] I'm not sure why that error is still there [16:00:42] bttman: pages-articles.xml.bz2 doesn't contain all pages; 15M is even too many [16:01:09] Glaisher: ohh.. the error still persists though : $this is null :/ [16:01:18] ohh what ? is it ? whats the one that has all the pages ? [16:01:21] :( [16:01:21] could you paste the code? [16:02:02] bttman: are you sure you want everything? discussions, process pages, drama etc. [16:02:31] Ok, 15M is about right MariaDB [enwiki_p]> select count(*) from page where page_namespace = 0; +----------+ | count(*) | +----------+ | 11579369 | +----------+ 1 row in set (41.53 sec) [16:02:37] uhhh so the 35 milion is for everything ? Im a little confused [16:02:55] Glaisher: https://dpaste.de/kap7 [16:03:28] bttman: you have Main and Template in that dump https://en.wikipedia.org/wiki/Wikipedia:Namespace#Subject_namespaces [16:05:00] ok man thanks, I got it now, so that means mwdumper they ok [16:05:00] :) [16:07:27] Although. I hope that dump contains modules, or it's not going to do much. [17:24:43] Hi. The vagrant installation takes me to the devwiki page on the browser. How can I see the mediawiki files using vagrant? Can anybody please help? [17:25:19] ayushi: It's in the vagrant directory [17:25:55] cgt: Yeah. So to debug those files I need to set up an IDE? [17:27:46] You can just look at them with a text editor [17:28:02] assuming you mean the PHP source files (and whatever other text files are in there) [17:29:43] cgt: Yeah yeah. But to debug them,.I'll need to set up an IDE right? [17:30:37] Depends on what you mean by debug. I am not familiar with PHP development. I'm also don't really know much about MediaWiki internals, mostly I'm just a user (although I have used mediawiki vagrant a bit) [17:31:07] ayushi: http://www.mediawiki.org/wiki/MediaWiki-Vagrant/Advanced_usage#MediaWiki_debugging_using_Xdebug_and_an_IDE_in_your_host [17:31:51] impacific: Thanks :) [17:52:26] ankita-ks: oops, I'll add some more microtasks in a bit [19:54:59] Hi, I would like to work on https://phabricator.wikimedia.org/T90238 this project in this summer as a part of GSOC15. Can anyone suggest some points to start building a simple extension ? [19:57:17] ciao [19:57:24] \list [20:14:16] When $wgUseFileCache = true; then the Expires http header is set to Thu, 01 Jan 1970 00:00:00 GMT - is this normal? [20:25:17] i just upgraded vom 1.19 to 1.24.1, in the release noted/configuration changes it says $wgProxyKey has been removed, i should include $wgSecretKey. Is it good to just rename the variable and not change the value? [20:25:44] (i have no idea what either does) [20:30:22] docs will teach you [20:30:26] !wg ProxyKey [20:30:26] https://www.mediawiki.org/wiki/Manual:%24wgProxyKey [20:31:03] !wg SecretKey [20:31:03] https://www.mediawiki.org/wiki/Manual:%24wgSecretKey [20:32:02] "When no better sources of entropy are available to MediaWiki, this value is used as a source of cryptographic entropy when generating user_tokens to insert into the users table which is used as a persistent cookie for authentication (when a user checks "Remember my login on this browser") that is resilient to spoofing. On modern PHP versions with access to /dev/urandom, mcrypt random, or... [20:32:03] ...openssl random, these functions are used in lieu of this variable." [20:32:55] basically, I guess you shouldn't even need to fill $wgSecretKey unless you don't have access to /dev/urandom in your system [20:44:00] Vulpix: let me check if i have [20:45:11] Vulpix: works, i will just renamen the variable for the case of failure [20:46:52] Vulpix: thanks for the help [20:46:59] legoktm : thanks! :) [20:47:21] yw [23:45:54] hi all. relatively new to the world of mediawiki. i'm trying to decide between Semantic-Mediawiki/Cargo and Wikibase for storing data on a new wiki site. is there any guidance when choosing one vs. the other? [23:48:24] SMW tends to have performance problems, not sure about wikibase [23:48:38] but ymmv [23:48:52] SMW is much more powerful, and much trickier to install/use. [23:50:24] there are two features I saw large wikis fail: SMW and DPL [23:50:54] for a relatively unpopular one, no problem [23:51:26] For a small new wiki, I'd probably give Cargo a shot first. But ymmv as said above [23:54:54] thanks. my plan is to try Cargo since it looks like a simple solution to storing data in pages. My scope is not huge so i think it should do the trick. [23:55:40] yeah i read about some sites with big scope where SMW couldn't handle it efficiently [23:55:58] but i think Cargo is perfect for me. thx