[01:33:04] I have a mediawiki instance that seems to have no administrative user. When I go to Special:ListUsers none of them have admin or beurcrat permissions [01:33:20] cant find anyone with similar issues via google, any ideas? [01:41:15] jiblet, if you need an admin or bureaucrat you can use this maintenance script: https://www.mediawiki.org/wiki/Manual:CreateAndPromote.php [01:56:01] OH-: wow im so suprised at how hard that was to find thanks [01:56:20] cheers [03:43:20] So guys, I'm trying to figure out what's involved in setting up a server so that Mediawiki can actually send out password resets and stuff. [03:43:35] Dunno what is involved in that or where to start. [04:12:52] Oh, NotASpy is gone. [07:26:28] dear freiends, i have transfer my mediawiki site from local server to real one. Using cPanel I have configure the file "localsettings.php" after creatomg database with access. but my configuration my have some problem so its not working. site: www.databankbd.com/dbwiki [07:28:19] my configuration (localsettings.php) are as follows: $wgScriptPath = "/dbwiki"; $wgServer = "http://databankbd.com"; $wgEmergencyContact = "apache@localhost"; $wgPasswordSender = "apache@localhost"; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "databank_bddb1"; $wgDBuser = "databank_administrator"; $wgDBpassword = "******"; # MySQL specific settings $wgDBprefix = "databank_bddb1"; [08:52:14] This is the first time I've done this but cool [15:14:03] Hi guys hoping someone can help please [15:14:55] Sorry if this is going to sound thick, but Ive spend hours trying to read the docs about upgrading mediawiki and am still unsure how best to proceed. [15:15:15] Current version is 1.22.6 using Cavenidishmw skin [15:15:59] Ive backed up files and db [15:16:39] but does anyone know if theres going to be any foreseen probs doing such a jump. [15:16:51] Should not be any problems for that [15:17:08] You really only have to worry if transitioning from pre 1.5 [15:17:33] So I should just be able to overwrite the existing files? [15:17:58] Its better to extract in a different directory [15:18:07] and copy over LocalSettings.php, extensions and images [15:18:25] Ive been pouring over the update thingies and couldnt see anything that may cause a problem. [15:18:43] aside from I use Enkoder as an extension [15:18:44] If you just directly overwrite files, and the new version no longer has a file, then the overwrite won't replace that file, which can cause problems [15:19:20] An upgrade from 1.22.6 should be very painless. Only possible problems you might encounter is if some of your extensions aren't compatible [15:20:00] If you do run into any problems, the people at this channel should be able to help [15:20:24] Make sure you upgrade your extensions too [15:20:28] So upload files (via ftp) to a new folder say called wiki2 [15:22:08] then copy LocalSettings.php etc to folder 2? [15:22:21] [feeling dumb] [15:22:47] And your uploads [15:23:54] ok so once those are in wiki2 folder, then what? [15:24:30] pressemably I should be able to test wiki by using url mydomain/wiki2? [15:25:00] Probably [15:25:06] You need to run update.php [15:25:07] !update [15:25:07] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [15:25:11] !upgrade [15:25:11] http://www.mediawiki.org/wiki/Manual:Upgrading [15:26:06] ok I run update via wiki2? [15:26:20] will that knacker anything in my db? [15:28:35] update.php will change the db, it shouldn't delete anything [15:28:46] it is good practise to keep a backup just in case [15:30:00] But I have never heard of anyone actually needing a backup due to update.php screwing things up [15:30:04] cheers bawolff. Just done an sql backup. [15:30:43] Will check see if anyupdates for any of the extensions before I go further. I think there was only Enkoder I was concerned about [15:31:07] You should update them all to use the same branched version if the branches exist [15:32:24] ok cheers guys.. I'll go silent & lurk whilst I check extensions and upload to new folder [16:16:36] So guys [16:16:41] here's an oddball question for thee. [16:17:46] Is this possible? Can I install mediawiki files in one central location, and then for each vhost on an NGINX server give it its own little space/instance with a LocalSettings.php, images folder, extensions, etc? So there's only ever one 'install' of mediawiki, and a bunch of different wikis running off of it? [16:18:28] Volund: yeah [16:18:40] heck yeah that's awesome. [16:18:46] although typically people centralize extensions as well [16:18:56] yeah that'd... definitely help my case [16:18:59] !wikifarm [16:19:00] To run multiple wikis, you can simply install MediaWiki in different folders, with different databases or in one with database prefixes. You can also have multiple wikis using a single installation: If you run a farm or want to, join the mailing list: [16:19:25] the docs arent great though, they ramble [16:19:42] S'long as it's possible, I'll figure it out. :D [17:22:57] OK think (hope) that I'm ready to roll with the install:- [17:23:04] sorry upgrade [17:23:16] Ive uploaded /images [17:24:09] updated the extensions, but removed Obfuscator enkoder in the localsettings.php as it doesnt appear to be supported now [17:24:28] Cant see an uploads folder in the old wiki directory [17:25:25] Ive had to change a few things in localsettings.php as I was getting some php errors to do with [17:25:29] #require_once( "$IP/extensions/UserMerge/UserMerge.php" ); [17:25:53] so those have now been changed to wfLoadExtension( 'UserMerge' ); [17:26:59] If I browse to the new wiki2 folder I get the following error "MediaWiki internal error. Original exception: [46b09fa9da0b7c44a9a8d265] 2017-08-12 17:26:19: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" [17:27:15] which I think is ok as Ive not yet run the installer [17:28:18] If I go to http://www.domain/wiki2/mw-config/...... I now see the media wiki installation thingy for 1.29.0 [17:29:04] So I take it that means Im ready to go? [17:37:18] I'm stalling on running the install atm.. Not sure what will happen to the live wiki. Will running the installer on /wiki2 break the database for http://wiki.domain? [17:41:20] Is anyone able to answer please? [17:41:40] You shouldn't need to run install... [17:42:30] If I navigate to the folder I see:- [17:42:44] Is your LocalSettings.php present? [17:42:56] MediaWiki internal error. Original exception: [46b09fa9da0b7c44a9a8d265] 2017-08-12 17:26:19: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information [17:43:31] oh ok, so that's fine [17:43:45] NoobieDoo: Run the maintaince script update.php [17:43:51] Yes local settings is there. [17:44:04] NoobieDoo: do you have command line access? [17:44:18] No.. doing via the web access page [17:44:31] ok, navigate to the mw-config directory [17:44:38] I can see domain/wiki2/mw-config/ [17:44:58] So what happens when you go there with your web browser? [17:45:12] on that page it shows MediaWiki 1.29.0 installation [17:45:47] It should ask you for an upgrade key [17:46:13] Hmm.. Does 1.22 have the upgrade key in place? [17:46:22] yes I think it did [17:46:43] If it doesn't you'll get instructions on how to ad [17:46:44] $wgUpgradeKey [17:46:45] d [17:46:54] 1.17 [17:47:03] NoobieDoo: Its on the second page (After clicking through the language questions) [17:47:44] ah right. got confused cause it said Installation [17:48:01] Yeah, I can understand that, its slightly confusing [17:48:03] A LocalSettings.php file has been detected. To upgrade this installation, please enter the value of $wgUpgradeKey in the box below. You will find it in LocalSettings.php. [17:49:44] PHP 5.5.25 is installed. Warning: Could not find APCu, XCache or WinCache. Object caching is not enabled. [17:50:11] Warning: The intl PECL extension is not available to handle Unicode normalisation, falling back to slow pure-PHP implementation. [17:50:53] The environment has been checked. You can install MediaWiki. :) [17:51:48] OK as soon as I run that... I take it that it will break the live site if it does any DB changes? [17:52:20] NoobieDoo: Not really [17:52:27] most upgrades don't break back compat [17:52:41] OK then... here goes. Wish me luck [17:52:46] some do though, I don't know off the top of my head if 1.22 -> 1.29 would actually break it [17:53:18] There are MediaWiki tables in this database. To upgrade them to MediaWiki 1.29.0, click Continue. [17:54:05] Whoops lol [17:54:24] http://wiki.kitz.co.uk/index.php/Main_Page :( [17:55:50] cant get anything at /wiki2/ [18:00:30] old wiki now gives "A database query error has occurred. This may indicate a bug in the software." [18:05:21] OK what if I change the old wiki directory to wiki_old and make /wiki2/ into wiki? [18:06:45] wb bawolff [18:07:23] Im clutching at straws: - OK what if I change the old wiki directory to wiki_old and make /wiki2/ into wiki? [18:07:51] Both now seem broken :'( [18:09:20] OK gonna try it anyways since both are b0rked [18:09:37] NoobieDoo: yeah, rename the directories, [18:11:32] Well thats done something :) [18:11:47] I now have a wiki again :) [18:11:56] http://wiki.kitz.co.uk/index.php/Main_Page [18:12:57] Oh, I just noticed what your website actually is NoobieDoo [18:13:04] <3 Kitz [18:13:22] o0ooo you do? [18:13:27] Yeah [18:13:32] I'm English [18:13:34] :blush: [18:13:40] so... I'm used to dealing with BT stuff [18:13:43] Cabinet photos etc [18:13:56] haha yep :D [18:13:59] HG612 unlocking [18:14:01] etc :) [18:14:08] http://wiki.kitz.co.uk/index.php/Main_Page says DB error for me though [18:14:20] lol yep.. Im crap at mediawiki though :( [18:14:27] working now [18:15:23] What else do you still need to do? [18:15:43] I think (hope) thats it [18:16:06] There's a couple of extensions Ive disabled [18:16:17] Shouldn't be too hard to get them re-enabled [18:16:57] nope. [18:17:26] Apart from just having heart failure when the db failed, I think I can breathe again now [18:18:00] Sorry, I probably should have told you to rename the directory from the get-go [18:18:35] nps.. we got there in the end :) [18:19:09] Thank you for the hand-holding [18:31:31] okay.. Think everything is working fine. Extensions back in place bar one which is no longer compatible. [18:32:27] Thanks ever so much for your help. esp bagoat & reedy [18:32:37] Happy to help [18:32:42] Which extension OOI? [18:33:30] Obfuscator enkoder [18:33:41] wassat? [18:34:01] Got a link to the source code? [18:34:05] We can probably fix it up [18:34:08] its supposed to hide email addresses [18:34:20] I think it said on the wiki its no longer supported [18:34:41] extensions/enkoder-mw.php [18:34:52] Is it just one PHP file? [18:35:09] https://www.mediawiki.org/wiki/Extension:Enkoder [18:35:26] http://ninecoldwinters.com/code/enkoder-mediawiki/ [18:35:28] no works [18:36:03] NoobieDoo: Want me to take a look at it? [18:36:21] its 2 php files [18:36:53] enkoder.php & enkoder-mw.php [18:37:28] Do I need it? [18:37:51] Are you actually using it? [18:37:52] I originally installed it about 10yrs ago to protect email addresses [18:38:02] heh [18:38:19] The wiki is only editable by content team members [18:38:34] Would need to search if you've got enkodemail anywhere in text [18:38:48] I think I read somewhere at the time it was one of the recommended extensions which is why I installed it way back then [18:38:54] heh [18:41:07] Do I need anything like that these days? Media wiki has got a lot more included now than since I very first installed it. Even used to have to install the Wikieditor as an extension [18:42:29] Do you list email addresses on pages? [18:45:20] No [18:48:39] Wouldn't bother with it then [18:48:41] Ive just checked and even logged in you cant see others email addresses. I'm sure I only installed it because it was on the recommended list [18:51:44] Just checked my notes, it looks like I used some other obfuscator until that was also deprecated. I see no need for it now [18:57:54] Anyways... I'm outa here now... there's a bottle with my name on waiting. [18:58:18] Have a good evening you guys and thanks again :) [20:34:26] !goat [20:34:48] !goat is https://phabricator.wikimedia.org/project/profile/2926/ [20:34:48] Key was added