Extension talk:PageProtection/Sourcecode

Does not work with MediaWiki 1.6.7
Thanks for a great extension! However, PageProtection does not seem to work after upgrade from MediaWiki 1.6.6 to 1.6.7 :(

Does anyone know of ways to make it work in 1.6.7 ?


 * Hmmm - I just spent an hour trying to get this extension to work with 1.7 and failed. I ran into several problems which I fixed but am stuck now.
 * Problem 1: The PageProtection extension tries to include some PEAR stuff, including Crypt but the include_path was not set to include the root of the PEAR directory so the files couldn't be found.
 * Problem 2: After fixing that problem, I got stuck at a line in Encryption.php. The line is

$str = $keypair->toPEMString; but the method toPEMString does not exist. I'm stuck at this point - obviously there is more than one version of the Crypt_RSA_KeyPair class but I don't know how to get the right one, given that I just installed the latest available version from PEAR.
 * Minor problem - the PageProtection code is using a deprecated style for call-by-ref which needs to be updated.

DavidJameson 20:21, 1 August 2006 (UTC)