Extension talk:DeleteHistory

Doesn't work on 1.16
''' FIXED in 0.2 version

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)

'''You need to install php-cli to make it work


 * Same issue here. I have the extension installed and shows up in the Special pages, but when clicking the 'validate' it returns nothing. I checked with my host and php-cli is indeed installed (it's on a CentOS server) but not sure if the path/location of it is correct or not. If someone could let me know what needs to be where the in the file structure and/or what needs to be set up how and where to get this running it would be great. Running MediaWiki 1.20.2, PHP 5.3.28 (cgi-fcgi) Lestatdelc (talk) 19:07, 10 May 2014 (UTC)

Germany
'''Added in 0.6 version

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
''' Added in 0.8 version

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.....

how to fix in MW 1.23 ?
I have installed V 0.8 for MW 1.23.3 but got this messages after using the DeleteHistory Special Page: Any idea to fix that? --Dg.de (talk) 09:55, 24 September 2014 (UTC)
 * Warning: escapeshellcmd has been disabled for security reasons in /www/htdocs/w00635e5/mediawiki/extensions/DeleteHistory/DeleteHistory_body.php on line 89
 * Warning: shell_exec has been disabled for security reasons in /www/htdocs/w00635e5/mediawiki/extensions/DeleteHistory/DeleteHistory_body.php on line 89

Doesn't work on 1.27.0
Hello all.

I have updated my wiki to fresh 1.27.0 and the extension doesn't work! The message appears when I click to DeleteHistory at Special Page:

Fatal error: Call to undefined function wfMsg in /var/www/admin/www/wikijournal.ru/extensions/DeleteHistory/DeleteHistory_body.php on line 64

Any ideas how to fix it?

JLTRY 17:30, 03 August 2016 (UTC)

You can replace wfMsg with wfMessage

You can also replace with

Talk_Pages MediaWiki 1.27.1
The extension doesn't detect the history of the Talk/Discussion pages. Could it be fixed?