Extension talk:DidYouMean

From IRC with Rob Church on how to purge from the cache pages affected by editing another page:


 * title::purgelinksto or somesuch
 * and various bits probably referenced in article::editupdates

installation
How do I install it? I downloaded DidYouMean.php didyoumean.sql  DYMNorm.php  install.php files but when I run install.php I get this message : "This script must be run from the command line"

Although it sounds like a really silly question, but where do I get the sources from? I'm obviously too stupid to find the link. -- Lemming 20:14, 9 May 2007 (UTC)
 * Not a silly question. I would also like to know where to get the source from. --Magick 09:12, 2 October 2007 (UTC)


 * Go to the command line, cd to the mediawiki extensions directory, and run:
 * sudo svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/DidYouMean/
 * The to install, I'd assume you'd run "php install.php" from the DidYouMean directory. --Naught101 09:40, 7 October 2008 (UTC)

I installed MediaWiki software on a remote web server, but I cannot access it by command line... Is it possible to install DidYouMean extension from a web browser?? Thanks Riccardo79 07:00, 12 June 2009 (UTC)

HowTo ?
How do I install this? There is no download Link in the Article and no clue on how to install it! Please add these soon. Thanks --62.245.208.114 08:07, 13 June 2007 (UTC)
 * Also need help installing this!

Where to get the code
Sorry for not answering your questions. I was off travelling the world for a while. DidYouMean is only available from MediaWiki svn at the moment: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/DidYouMean/

I've lost familiarity with it while I was away but I plan to resume MediaWiki hacking soon. This extensions seems relevant to the "Aliases" topic on wikitech-l currently. &mdash; Hippietrail 02:52, 26 October 2007 (UTC)

stemming, stemming, stemming
Stemming would be useful on ALL wikis, not just wiktionary, as EVERYONE accidentally links pages to their plural sometimes. Would be good for gerunds too.

Also, the test page listed on the Extension page (http://wiktionarydev.leuksman.com/) doesn't work. Wrong host, apparently. --Naught101 09:52, 7 October 2008 (UTC)

A little mod to install.php
I modified the beginning of install.php to allow it to install to a wiki independent of path. Just specify the path to the wiki with the Good extension! Thanks for the code!

Also need help
do you need to do a command line "php install.php" to make this work? i need to make it work just like any other extension with out any command like stuff, can u make such a thing happen? pls contact me, my messenger id is discipol333

I already install it from de command line now i need to make it work on my wiki
Hello every body, i install the DidYouMean extension using command line in windows and it added some tables to my data base. Now i need it to run un my wiki but after installation, when i try to search something it doesn't apear to be working. Does any body have the same problem ? Do i need to setup any other variable on my localsettings.php file ? Please help me.


 * Ater running the install.php successfully, just insert the usual require_once command into your LocalSettings.php

require_once("$IP/extensions/DidYouMean/DidYouMean.php");

New Bug
Using MW:1.17 Untoldpromise 02:12, 11 November 2010 (UTC)

Detected bug in an extension! Hook DidYouMeanHooks::titleMoveComplete has invalid call signature; Parameter 4 to DidYouMeanHooks::titleMoveComplete expected to be a reference, value given Backtrace:
 * 1) 0 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Title.php(3161): wfRunHooks('TitleMoveComple...', Array)
 * 2) 1 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/specials/SpecialMovepage.php(398): Title->moveTo(Object(Title), true, '', true)
 * 3) 2 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/specials/SpecialMovepage.php(90): MovePageForm->doSubmit
 * 4) 3 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/SpecialPage.php(578): MovePageForm->execute(NULL)
 * 5) 4 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Wiki.php(249): SpecialPage::executePath(Object(Title))
 * 6) 5 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
 * 7) 6 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/index.php(115): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
 * 8) 7 {main}

solution

replace line 111 of DidYouMean.hooks.php with following syntax : public static function titleMoveComplete( &$title, &$nt, &$wgUser, $pageid, $redirid ) {

mailto:sancelot@free.fr

-- Thanks! That fix is working for me on MW 1.25.3

Extension has been reviewed
Please see this comment for Brion Vibber's review of this extension; before it can be deployed on Wikimedia Foundation sites, it needs various improvements. Thank you! Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator (talk) 18:11, 29 March 2012 (UTC)
 * Removed from Review queue until the author revises the extension in response to the review. Thanks. Sharihareswara (WMF) (talk) 22:01, 16 November 2012 (UTC)

Working for 1.24.1?
MediaWiki	1.24.1 PHP	5.4.37 MySQL	5.6.22

Has anyone gotten this extension to work with the above config? I installed it per the instructions but I never see any "Did You Meanː" suggestions. It was working for me on my 1.17 deployment of MW, but I've never gotten it to work on 1.24.1. I also have Sphinx installed for search, if that matters ... any suggestions/tips from anyone on 1.24.1?