Extension talk:DeleteHistory

Where do we find the DeleteHistory.php file?

The special page doesn't exist :

'Vous avez demandé une page spéciale qui n’existe pas.

Doesn't work on 1.16.


 * I'm having a similar problem (also 1.16). It doesn't seem to do anything; when I tell it to "simply check" and click the "Validate" button, the "Results:" box is empty. From looking at the php files, it appears that it's trying to call "php $pwd/maintenance/deleteOldRevisions.php". When I go into the "maintenance" directory and run that command manually, it complains about the LocalSettings.php file not being found.  If I copy that file into the maintenance directory, then that works, but the extension still doesn't do anything.  Does anyone know what needs to be changed (do I need to put LocalSettings.php somewhere else) to get this to work as intended? Bfunchess 17:18, 26 May 2011 (UTC)


 * You must rename the files after download
 * DeleteHistory_DeleteHistory.alias.php => DeleteHistory.alias.php
 * DeleteHistory_DeleteHistory.i18n.php => DeleteHistory.i18n.php
 * DeleteHistory_....
 * Lady Whistler 11:46, 14 June 2011 (UTC)

Link on the snapshot is broken. Unikum 06:44, 14 October 2011 (UTC)

No changes with Sysop and Administrator user
Mediawiki 1.14 : The Result section return nothing when I use the extension. Even if I use a sysop and administrator user.

Thanks for help.

Nepomuk (talk) 20:38, 25 March 2012 (UTC)


 * I have this same issue. It can optimize tables just fine, but actually deleting old revisions does not work and returns an empty result.
 * The line that should return a result is $out_logs = shell_exec(escapeshellcmd($command)); and this returns empty.
 * I have checked things and it is finding and trying to run the deleteOldRevisions.php command but nothing happens, and I have no idea why.

--Frug (talk) 21:30, 21 October 2013 (UTC)

Germany
For Germany language add:

to DeleteHistory.alias.php

to DeleteHistory.i18n.php

Then search in "DeleteHistory_body.php" for \"Validate\" and change it to \"Prüfen\"

Enjoy

Portuguese language
For Portuguese language add:

Patch #1 DeleteHistory.i18n.php 56a57,75 > > /* *** Brazilian Portuguese *** */ > $messages['pt-br'] = array( >        'deletehistory' => 'Apagar Histórico', >         'deletehistory-desc' => "Adiciona uma página especial para apagar históricos mais antigos (revisões) de artigos", >         'what_to_do' => "Favor escolher qual ação você irá preferir", >         'check_only' => "Apenas verifica se há o que ser apagado no histórico", >         'del_hist' => "Apaga histórico", >         'del_hist_opt' => "Apaga histórico e otimiza a base de dados (demora um pouco se a base de dados for muito grande)", >     'validate' => 'Validar', >     'result' => 'Resultado', >     'db_size_old' => 'Tamanho da base de dados antes da otimização', >     'db_size_new' => 'Tamanho da base de dados depois da otimização', >     'db_space_won' => 'Tamanho da base de dados recuperado', >     'size' => 'Tamanho', >     'logs' => 'Logs', >     'opt_stat' => 'Status da otimização', > ); >

and another patch

Patch #2 DeleteHistory_body.php 74c74 < 			 --- > 			 194c194 <                        " . wfMsg('db_size_old') . " --- >                        " . wfMsg('db_space_won') . "

Bug detection
The extension say :

MediaWiki 1.20 requires at least PHP version 5.3.2, you are using PHP 4.4.9

I'm using : SetEnv REGISTER_GLOBALS 0 SetEnv ZEND_OPTIMIZER 1 SetEnv MAGIC_QUOTES 1 SetEnv PHP_VER 5_4 and Mediawiki 1.20.....