OpenID for MediaWiki version 1.15.5, 1.17 [SOLVED]
Hi,
Where to find an OpenID version compatible with MW 1.17?
Cheers,
This is an issue because the 'latest' OpenID release (svn) relies on features in version 1.18+ of MW. However, the latest release of OpenID has a convenient Makefile for pulling in (and patching) the required php libs.
You can get round this issue by grabbing a *snapshot* for 1.17 [1], saved as "extensions/OpenID" AND the svn release, saved as "extensions/OpenID-svn". Grab the SVN version like this:
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/OpenID/ extensions/OpenID-svn
Follow the install instructions in the OpenID-svn to pull (and patch) in the required php libs, then simply copy them into the 1.17 snapshot:
cp -r OpenID-svn/Auth/ OpenID/ // updated with information from the follow-up posting. -- Wikinaut 08:08, 12 July 2011 (UTC)
The final step requires you to set up the php include path so that these libs can be found by the script successfully. That's actually easy, so just set:
## Get the right PHP libs for OpenID set_include_path( get_include_path() . PATH_SEPARATOR . 'extensions/OpenID' ); ## Install OpenID include_once("$IP/extensions/OpenID/OpenID.setup.php");
I hope that makes your life easier than mine ;-)
Hi Dmb,
This appears to work for MW 1.15.5 as well, though your copy command is wrong. It should be:
cp -r OpenID-svn/Auth/ OpenID/
Without the recursive flag, the subdirectories of the Auth directory don't get copied, and the extension won't work.
Thanks,
Hello
These instructions work fine with MW 1.17. Thank you!
However, on the first try I got the following error in the web server:
PHP Fatal error: Define Auth_OpenID_RAND_SOURCE as null to continue with an insecure random number generator. in $IP/extensions/OpenID/Auth/OpenID/CryptUtil.php on line 52"
Fixed it replacing the line 23 from: define('Auth_OpenID_RAND_SOURCE', '/dev/urandom); to: define('Auth_OpenID_RAND_SOURCE', NULL);
But I don't know if it is safe, is it? Regards
Previously the title of this 'thread' contained the text "SpecialPageFactory issue with 1.17?". Unfortunately, I forgot to include that text anywhere in the body of the report. I believe that such strings are useful to help people find issues based on the error messages that they see (and search), so I'm writing it here.
It's kinda annoying that there is no edit summary for these 'threads'. I guess you'll just have to ignore the history and read each one.
The original text was "Where to find an OpenID version compatible with MW 1.17?" There was no indication what the issue with SpecialPageFactory really was - I cannot see any. Please can you add this problem with SpecialPageFactory, or file a real bug report in bugzilla system so that everyone can properly track the problem. The Talk page is not a suitable medium for tracking bugs.
I fell into your trap of installing the openID extension to the current stable version of Mediawiki. Very clever of you to redefine "stable" to mean "old and in the way". You're very young aren't you?
I'd also like to point out that stable version 1.17 is the only version currently SPECIFICALLY MENTIONED in the prerequisites, so a careful person will be screwed. It is so blatant that it looks intentional.
How _exactly_ does one recover from this mistake? Is some sort of deinstallation of the openId extension or mediawiki needed or possible? I was in the mode of following clear instructions exactly, and now find myself either starting over from scratch with possibly incorrect instructions (the last set got me into this mess so I don't trust you mediawiki - openID people anymore) or hacking from the instructions in this thread, which seem to be a correction to the installation from scratch instructions.
The page clearly says in the first line: "This is the manual of the OpenID extension (in svn trunk) which is suited for MediaWiki trunk and PHP 5.3.x. If you need older deprecated versions, please consult one of the archived pages."
I can send you a link to a complete version which runs with MW 1.16.1; I do not know of any version which runs with MW 1.17; and I suggest to better go to MediaWiki trunk version - this for example is running live on http://translatewiki.net. "Trunk" does work with OpenID trunk since begin of the year 2011.
Can you post the link of a stable version that runs with MW 1.16.1 as you mention above? Thanks for this great tool. We are using 0.9-dev with 1.16.1 and it is working great, but I would like access to the new features.