Extension talk:Maintenance

Pretty Cool
I haven't tried it out yet (and with my non-wiki related worload won't get to for a while...), but this seems very useful. Thanks for making it!

Are you planning to add more scripts to it? If so, I would like to suggest generateSitemap.php.

Looking forward to using this extension. Smaug  21:08, 28 April 2008 (UTC)
 * Yes, I'm planning on eventually supporting the entirety of the /maintenance directory, plus any extension scripts that want to be included as well (but those get scrutinized more). --Skizzerz talk - contribs 22:26, 28 April 2008 (UTC)

It seems very usefull when you can't launch any php script within the maintenance directory ! What about deleteOldRevisions.php ? I am also very interrested by the generateSitemap.php

This is helpful, thanks! I'll keep checking back for the generateSitemap.php script as well.

deleteBatch
Is it not working yet or did I do something wrong? Fatal error: Call to undefined function wfgetlb in /home/deathbyn/club_html/extensions/Maintenance/Maintenance_body.php on line 410 --DeathByNukes 20:34, 21 June 2008 (UTC)
 * Strange, I'm not getting that error myself... Anyway, this extension is still a bit buggy after many tests with it, so I'd recommend holding off on it and using something like PHP Shell instead (google it). -- Skiz zerz  20:48, 21 June 2008 (UTC)
 * Heh, my host already has a lot of tools, I'm just not comfortable trying to modify the database directly.--DeathByNukes 22:42, 21 June 2008 (UTC)
 * The error is due to the fact that wfGetLB and such were added by Tim Starling in 32578. Thus Maintenance won't work on wikis not running 1.13alpha. You should either use an older version of Maintenance or upgrade your MediaWiki to 1.13alpha (or wait for the "full" MW 1.13 release). -- Sayuri 11:27, 22 June 2008 (UTC)

Question
Does this script work on mediawiki 1.15.1?
 * Yes It does. ^^

MW 1.16
Does this work safely with MediaWiki 1.16 ? Preferably with 1.16.0beta3 ? Krinkle 04:00, 23 July 2010 (UTC)
 * The current version does not work with 1.16. I do have an updated version that does work, but I have yet to commit it as I'd like to ideally at least have most of the common scripts supported upon its release. -- Skiz zerz  04:34, 23 July 2010 (UTC)
 * Yay late replies, but the new version in svn works with 1.16+ now. -- Skiz zerz  08:37, 5 March 2011 (UTC)
 * it not work for me the maintenance page is empty (i've changed enabled to 1 and have file on maintenance folder!)

MW 1.17 gives several parser errors
I try to install the Extension, but when I click on Special:Maintenance, I get many errors.

Including:

Please help!
 * also for me when opening Special:Maintenance I get several errors (no scripts shown on that Special page), errors shown are:
 * Warning: Error parsing .../extensions/Maintenance/metadata.ini on line 69 in .../extensions/Maintenance/Maintenance_body.php on line 51
 * Warning: Invalid argument supplied for foreach in .../extensions/Maintenance/Maintenance_body.php on line 349
 * Warning: in_array [function.in-array]: Wrong datatype for second argument in .../extensions/Maintenance/Maintenance_body.php on line 71
 * Warning: sort expects parameter 1 to be array, null given in .../extensions/Maintenance/Maintenance_body.php on line 87
 * Warning: Invalid argument supplied for foreach in .../extensions/Maintenance/Maintenance_body.php on line 88
 * I am using: Maintenance-trunk-r92186.tar.gz, Special:version shows (Version 2.0.0), --Erkan Yilmaz 13:32, 11 August 2011 (UTC)
 * Will look into this, expect a fix in a few days. -- Skiz zerz  04:47, 12 August 2011 (UTC)
 * great, I'll try the fix then, hope that motivates more ;-) --Erkan Yilmaz 04:48, 12 August 2011 (UTC)
 * Also have what seems to be the same errors after upgrade Mediawiki 1.18 and upgrading this extension to the trunk version. Here's a ScreenShot of the errors.  Mlpearc   powwow  11:14, 19 December 2011 (UTC)

Broken in Mediawiki 1.17.1
Downloaded everything for 1.17.1. I had it installed and working fine on a 1.16 install. Here are the particulars. MediaWiki 1.17.1 PHP 5.2.17 (cgi-fcgi) MySQL 5.0.67-log Once enabled, it breaks the Special:SpecialPages and throws a 500 internal. Permissions? Do I have to set something in the maintenance folder? Hutchy68 19:58, 10 January 2012 (UTC)

[Resolved] The metadata.ini file is either corrupted or missing. Please re-download the Maintenance extension
Clean install of Mediawiki 1.18.1, using svn to install and get this error. Tried deleting and downloading again. The ini does exist and I can open it in vi.
 * Fixed in version 2.1.0 -- Skiz zerz  05:15, 21 March 2012 (UTC)

I have the same problem with my site. Site: http://wikibiz.vn, MediaWiki version: 1.19.2. Anyone know how to solve this problem without upgrade to 2xx version? Thamdaocatba (talk) 10:09, 13 November 2012 (UTC)
 * I'm not seeing it listed in Special:Version, but just upgrade to the latest version of Maintenance (2.1.1 as of this writing), which is perfectly compatible with MediaWiki 1.19. -- Skiz zerz  00:49, 19 November 2012 (UTC)
 * It didn't work so I removed it. I downloaded new version and now It's working. Thank you so much. For who needs. Thamdaocatba (talk) 14:36, 22 November 2012 (UTC)

Maintenance page empty
installed on mediawiki 1.18.2 and specil maintenance page is empty
 * I need more information than that. What is your Maintenance extension version, what is your PHP version, and what errors (if any) appear in your error logs? -- Skiz zerz  10:33, 30 March 2012 (UTC)
 * May be this problem == my error, if display_errors=off. Author, try create file named   with string   in your MW root dir and refresh Special:Maintenance for see php's errors. /D.S.Denton/ 92.36.63.4 20:19, 2 April 2012 (UTC)

Maintenance r114476 @ MediaWiki 1.18.2
Warning: Error parsing ~/extensions/Maintenance/metadata.ini on line 69 in ~/extensions/Maintenance/Maintenance_body.php on line 51 Warning: Invalid argument supplied for foreach in ~/extensions/Maintenance/Maintenance_body.php on line 353 Warning: in_array [function.in-array]: Wrong datatype for second argument in ~/extensions/Maintenance/Maintenance_body.php on line 71 Warning: sort expects parameter 1 to be array, null given in ~/extensions/Maintenance/Maintenance_body.php on line 87 Warning: Invalid argument supplied for foreach in ~/extensions/Maintenance/Maintenance_body.php on line 88 /D.S.Denton/ 92.36.63.4 20:12, 2 April 2012 (UTC)
 * Please re-download the extension, it appears your metadata.ini file got corrupted somehow. -- Skiz zerz  20:22, 3 April 2012 (UTC)
 * Re-download... also not working. Video, 2.96MB, WMV9 /D.S.Denton/ 81.177.1.71 11:44, 4 April 2012 (UTC)
 * Please state your MediaWiki version and PHP version, if you can screenshot Special:Version and your phpinfo that would likely be best. I cannot reproduce this error on my own development servers, meaning that it is an issue with something on your end. -- Skiz zerz  05:21, 5 April 2012 (UTC)
 * MediaWiki: Special:Version;
 * phpinfo: if PHP as Apache2 module / if PHP as CGI
 * /D.S.Denton/ 92.36.78.112 16:40, 5 April 2012 (UTC)

The problem seems to be that some setups cannot parse the lines 69-72 since they use \" to escape a ". I fixed the problem by changing this: To this: The authors should fix this, since it appears to be a widespread problem. Hope this helps someone. --ReCover (talk) 15:07, 18 May 2012 (UTC)
 * Thanks for the find, I'll look into why this might be happening and what can be done about it. Unfortunately, changing to single quotes won't make localization work properly, but if you're running in English-only that does not affect you in the least. -- Skiz zerz  03:48, 19 May 2012 (UTC)
 * Can you test if the following works for you?


 * I'd like someone who actually gets the error (it doesn't happen in my test environment) to test that out before I push it into the main repository. -- Skiz zerz  03:54, 19 May 2012 (UTC)

Emilio: I tried the code above (the one with single quotes) and it WORKS! Testing now. I need to change the language of my wiki from en to it: so I need the script rebuildmessages. Thank you.

Thanks to ReCover for fix. Working. Second variant stops on string 72: with error as my first message, only string number = 72 Warning: Error parsing ~/extensions/Maintenance/metadata.ini on line 72 in ~/extensions/Maintenance/Maintenance_body.php on line 51 (...cut...) /D.S.Denton/ 92.36.78.191 20:50, 17 July 2012 (UTC)
 * It is unlikely that this will be fixed as the issue is a PHP 5.2 bug, and PHP 5.2 will no longer be supported by MediaWiki as of version 1.20 (which needs PHP 5.3.2+). If you have access to your webserver's PHP installation, upgrading to PHP 5.3 will fix your issue. -- Skiz zerz  20:52, 29 July 2012 (UTC)

Extension Distributor delivers wrong files for Master branch
Downloading the Development version (trunk) from http://upload.wikimedia.org/ext-dist/Maintenance-master-2248296.tar.gz results in 10 MB of Git repository. Better use https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Maintenance.git;a=snapshot;h=refs/heads/master;sf=tgz to get the actual PHP files for the extension. --Nakohdo (talk) 11:52, 28 December 2012 (UTC)

importDump.php
How to add importDump.php?--Juandev (talk) 21:52, 20 October 2013 (UTC)

mw 1.24.1, not working Check images
The check images isn't working, everything is missing.

My wiki is a private one.

removeUnusedAccounts Script
Hi,

I have configured this script on metadata.ini:

[removeUnusedAccounts]

enabled = 1

option[] = "delete check 0"

but I am not able to use the option check to set delete on/off, where off means just list the users to be deleted.

How should I do?

Thx

RunJobs doesn't work
Hello, Here's my config : Since I upgraded my wikis from 1.21, launching  from Special:Maintenance no longer works while   still works. Am I alone to experience this problem? Thanks in advance for your help ! --Megajoule (talk) 17:01, 13 April 2018 (UTC)
 * MW : 1.30.0
 * Maintenance : 2.3.1
 * wiki farm (I use  to run scripts)
 * I think I found the solution: comment the line  in extensions/Maintenance/metadata.ini
 * --Megajoule (talk) 17:11, 13 April 2018 (UTC) (again...)