Talk:Wikidiff2

Also inline (one column) option now
Since. Apparently it's the default for the mobile version of Wikimedia projects now: 106629. --Nemo 07:14, 21 January 2014 (UTC)

Algorithm?
Is the algo explicitly described somewhere? mentions Dairiki who says to have borrowed from Ned Konz, and GNU diffutils-2.7.

Some people like git diff, which according to uses  which is based on Myers. --Nemo 11:46, 14 September 2014 (UTC)

"wikidiff2: command not found" errors
On an Ubuntu 14.10 server after manually updating from MW 1.19 to 1.23.8, all diff pages reported "No difference," even when a difference was clearly apparent. Diffs worked as expected under 1.19. Apache's logs threw `/bin/bash: wikidiff2: command not found` when loading the diff page. This error appears to be unrelated to the wikidiff2 extension, and setting $wgExternalDiffEngine in LocalSettings.php (which was not previously set) to wikidiff3 had no effect; instead, removing an installed Ubuntu package named `php-wikidiff2` from the server resolved the problem, and diffs worked as expected. A google search unearthed a wmflabs IRC log from 2013, which was the only resource I found when searching for this error message. Users spectie and marktraceur reported the resolution. --75.175.21.212 19:21, 21 December 2014 (UTC)

"php-wikidiff2" vs "wikidiff2" in php.ini
Just pointing out that in my Ubuntu default installation wikidiff2 is installed with the name wikidiff2.so, not php-wikidiff2. This means that "extension = php_wikidiff2.so" should be "extension = wikidiff2.so" The error that indicates the problem is: sh: 1: wikidiff2: not found and on apache restart: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/php_wikidiff2.so' - /usr/lib/php5/20121212/php_wikidiff2.so: cannot open shared object file: No such file or directory in Unknown on line 0

Optimalbpm (talk) 09:39, 22 March 2015 (UTC)

Bug in Debian package (and downstream, such as Ubuntu)
In the debian branch, Wikidiff2 has a bug that was supposed to be fixed on 2016-08-10 in version 1.4.1. The commit did not fix the issue, though, and it is the latest commit in this branch. Debian branch is supposed to hold the Debian-specific packaging files.

In ,

[ "$1" = "configure "] && php5enmod -s ALL wikidiff2

was changed to

[ "$1" = "configure " ] && php5enmod -s ALL wikidiff2

which prevents the  command  from failing due to missing last argument. But the  is still never run, because the first argument to this postinst script  is compared to incorrect value -- it should not contain the trailing space. Ideally, quotes should be omitted in this case&hellip;

To work around this bug, you should execute

php5enmod -s ALL wikidiff2

as root yourself and restart your server. It is the only thing that the package failed to perform.

-- Palec90 (talk) 13:56, 7 November 2016 (UTC)


 * By the way, this causes the  in error log. It comes from   in . Guess the implementation should handle the error better than letting the shell command execute and fail, with a shell-specific error message. --Palec90 (talk) 14:43, 7 November 2016 (UTC)