Daniel3356 / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 1 forks source link

Mediawiki 1.18 no longer uses $wgMessageCache, which is referenced in recaptcha extension code #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use MediaWiki 1.18
2. Install recaptcha extension
3. Try to load a page

What is the expected output? What do you see instead?
Once the extension is installed, pages will not load due to a php error.  In 
the apache error logs you will see something like:

'Call to a member function addMessages() on a non-object in 
/usr/share/wiki/extensions/recaptcha/ReCaptcha.php on line 44'

The problem is that $wgMessageCache is not used any more in MediaWiki 1.18 (see 
http://www.mediawiki.org/wiki/Manual:$wgMessageCache).  There are two places in 
the recaptcha extension code that try to access this variable, and by 
commenting out these sections I was able to get things working.

Original issue reported on code.google.com by cbdavis0...@gmail.com on 12 Sep 2011 at 9:40