PHP changes throwing warning in wiki code -- fixed
Moderator: Moderators
PHP changes throwing warning in wiki code -- fixed
Since upgrading to PHP 5.3, the following warning was being thrown:
Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /home/ndwiki/www/w/includes/StubObject.php on line 58
Bug reference: http://www.mediawiki.org/wiki/Special:C ... Wiki/55429
Looks like a one-line fix (removal of "&" character (reference declaration) in the function argument).
Since the fix is only available in MediaWiki 1.6 -- which isn't out yet -- I decided to modify www/w/languages/Language.php to include the one-line fix.
Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /home/ndwiki/www/w/includes/StubObject.php on line 58
Bug reference: http://www.mediawiki.org/wiki/Special:C ... Wiki/55429
Looks like a one-line fix (removal of "&" character (reference declaration) in the function argument).
Since the fix is only available in MediaWiki 1.6 -- which isn't out yet -- I decided to modify www/w/languages/Language.php to include the one-line fix.
It appears that the reCAPTCHA also needs to be updated for PHP 5.3; otherwise, no changes to a page can be saved.
Warning: Parameter 1 to ReCaptcha::confirmEdit() expected to be a reference, value given in /home/ndwiki/www/w/includes/Hooks.php on line 117
Internal error
From Nesdev wiki
Jump to: navigation, search
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
One-line fix for extensions/recaptcha/ReCaptcha.php. Includes line numbers:
Old code:
New code:
Can you test again, tepples? I was able to do an update but I wasn't prompted for the captcha.
Old code:
Code: Select all
100 function confirmEdit( &$editPage, $newtext, $section ) {
Code: Select all
100 function confirmEdit( $editPage, $newtext, $section ) {
The CAPTCHA happens only if you register or add an external link. (Wikipedia disables CAPTCHA for "autoconfirmed" users with 4 days and 10 edits; nesdevWiki appears not to.) This edit went through.koitsu wrote:Can you test again, tepples? I was able to do an update but I wasn't prompted for the captcha.
It seems to be working... Since the spammers were able to add some link I don't now why those human spammer for essays seems to target the nesdev wiki. duh.
edit:
In a way I know why to put link to random site: just to increase their SEO on google since they don't link back to our site. Wiki are easy targets..
edit:
In a way I know why to put link to random site: just to increase their SEO on google since they don't link back to our site. Wiki are easy targets..