Jump to content

Extension talk:DidYouMean

Add topic
From mediawiki.org
Latest comment: 12 years ago by Sharihareswara (WMF) in topic Extension has been reviewed

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

  • <robchurch> title::purgelinksto or somesuch
  • <robchurch> and various bits probably referenced in article::editupdates

installation

[edit]

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)Reply

Not a silly question. I would also like to know where to get the source from. --Magick 09:12, 2 October 2007 (UTC)Reply
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)Reply


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)Reply

HowTo ?

[edit]

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)Reply

Also need help installing this!

Where to get the code

[edit]

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. — Hippietrail 02:52, 26 October 2007 (UTC)Reply

stemming, stemming, stemming

[edit]

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)Reply

A little mod to install.php

[edit]

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 -w option

<?php
if (!isset($argv[1])){
	echo "USAGE:
	php5 {$_SERVER['SCRIPT_NAME']} [ options ]
	
	 -w [ path to wiki]
          
";
	exit;
}
$params = getopt('w:l');
if (isset($params['w'])){
	$wikipath = $params['w'];
} else {
	die("Please use the -w flag to set a path to the wiki.\n");
}
require_once("$wikipath/maintenance/commandLine.inc");
/*
$maint = dirname( dirname( __FILE__ ) ) . '/maintenance';
if( is_file( $maint . '/commandLine.inc' ) ) {
	require_once( $maint . '/commandLine.inc' );
} else {
	$maint = dirname( dirname( dirname( __FILE__ ) ) ) . '/maintenance';
	if( is_file( $maint . '/commandLine.inc' ) ) {
		require_once( $maint . '/commandLine.inc' );
	} else {
		# We can't find it, give up
		echo( "The installation script was unable to find the maintenance directories.\n\n" );
		die( 1 );
	}
}
*/

Good extension! Thanks for the code!

Also need help

[edit]

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

[edit]

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

[edit]

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


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:
#0 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Title.php(3161): wfRunHooks('TitleMoveComple...', Array)
#1 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/specials/SpecialMovepage.php(398): Title->moveTo(Object(Title), true, '', true)
#2 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/specials/SpecialMovepage.php(90): MovePageForm->doSubmit()
#3 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/SpecialPage.php(578): MovePageForm->execute(NULL)
#4 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Wiki.php(249): SpecialPage::executePath(Object(Title))
#5 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#6 /home/xxxxxxxxxx/xxxxxxxxxx.com/wiki/index.php(115): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#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

[edit]

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)Reply

Working for 1.24.1?

[edit]

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?